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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SaveToPDF: Paper_Size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AScomp Posted - Nov 15 2021 : 19:53:56
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
2   L A T E S T    R E P L I E S    (Newest First)
AScomp Posted - Nov 17 2021 : 10:02:24
Hi Nigel,

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

Kind regards

Andreas
xequte Posted - Nov 17 2021 : 01:00:30
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