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