ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SaveToPDF: Paper_Size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AScomp

Germany
17 Posts

Posted - Nov 15 2021 :  19:53:56  Show Profile  Reply
Hello,

I use the following code as suggested in your help/samples to save an image to a PDF file:


        ImageEnViewPDF.IO.CreatePDFFile('C:\temp\PDFImager Test\test.pdf');
        ImageEnViewPDF.IO.LoadFromFile('C:\temp\PDF Imager Test\windows11_logo.png);
        ImageEnViewPDF.IO.Params.PDF_Compression := ioPDF_LZW;
        ImageEnViewPDF.IO.Params.PDF_PaperWidth := 0;
        ImageEnViewPDF.IO.Params.PDF_PaperHeight := 0;
        ImageEnViewPDF.IO.SaveToPDF;


As stated in the documentation, setting PaperWidth and PaperHeight to 0 should automatically set the page size to the image size. Unfortunately, the resulting page is larger than the original image size (see attached sample, the source file in 100% resolution as a jpg file, and with 100% in the pdf file):



Any ideas?

Thank you very much and best regards

Andreas

xequte

38180 Posts

Posted - Nov 17 2021 :  01:00:30  Show Profile  Reply
Hi Andreas

Like most things with PDF the reason this happens is not well documented.

However we have a solution in our current beta. You can email me for it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

AScomp

Germany
17 Posts

Posted - Nov 17 2021 :  10:02:24  Show Profile  Reply
Hi Nigel,

thank you for your reply, I sent you an e-mail.

Kind regards

Andreas
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: