Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / Image2PDF inconsistent page size
Author Message
KA
# Posted: 17 Sep 2005 10:33


I am trying to create pdf from 2 or more images. Each image will be on separate page filling the entire page. The images are of fixed width and height. After setting the pdf page size with
PDF->PDFPAGE_Width = (long)(width*72.0);
PDF->PDFPAGE_Height = (long)(height*72.0);

and then adding all the images.
What I see is that only the first page comes up with required size (8.5 x 5.5 inch in this case) and all other pages come up with 8.26 x 5.35 inch.

I tried many things, but don't see a way to make all the pdf page of same size (8.5 x 5.5 inch)

Am I missing something? Please help.
The help file is not so helpful.

Here's code snippet:
PDF->PDFPAGE_Width = (long)(width*72.0);

PDF->PDFPAGE_Height = (long)(height*72.0);

//... other codes here

// initialize Image engine

Image->StartImageEngine("demo", "demo");

Image->ConnectToPDFLibrary(PDF);

Image->AddImageFromFile("C:\\aa.bmp");

Image->AddImageFromFile("C:\\bb.bmp");

Image->SetOutputPosition(0, 0);

Image->ScalePagesToImageSize(TRUE);

Image->ProcessAllImages();

Image->DisconnectFromPDFLibrary();

Thanks

Stanislav
# Posted: 17 Sep 2005 14:32


Dear Kazi,

We'll answer you soon.

Thank you very much !

Best regards,
Stanislav
Two Pilots

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top