Previous | Next | (P-PDF) Developers
Topic: Problem inserting a Image file
Conf: (P-PDF) Developers, Msg: 33487
From: sunilranganath
Date: 1/24/2002 06:24 AM
Hi everyone,
I have problem inserting JPEG image file into PDF. I am using pdflib 3.0.1
Here is the code.
int image = 0;
image = PDF_open_image_file(page_info>p, "jpeg", "D:\ArgusWeb\ASP\img\pic.jpg", "", 0);
if(image != -1)
{
PDF_place_image(page_info->p, image, (float) 10.0, (float) 10.0, (float) 100.0);
PDF_close_image(page_info->p, image);
}
PDF_open_image_file function returns -1.
Any help would be appreciated.
Thanks,
Sunil