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
 Saving as PDF - don't enlarge
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
27 Posts

Posted - Apr 27 2021 :  03:59:06  Show Profile  Reply
I have a ImageEnMView containing a mix of large and small images. I set the paper size to A4, and save the images to a PDF file.

Images that are smaller than the page are resized to fit the page. Is there a setting to only resize images that are larger than the page, and keep the original size of the smaller images?

Or do I have to manually resize the images myself by adding a white border?

Thanks in advance.

Ray

yeohray2

Malaysia
27 Posts

Posted - Apr 28 2021 :  04:50:20  Show Profile  Reply
Ok, I got it working manually using the PDF builder class.
Go to Top of Page

zerob

107 Posts

Posted - May 01 2021 :  05:15:50  Show Profile  Reply
How did you solve it?
Go to Top of Page

xequte

6040 Posts

Posted - May 03 2021 :  19:46:52  Show Profile  Reply
Hi

In 10.0.1 you will be able to use:

// Save all pages to PDF (A4) with centered images (and no scaling of small images)
ImageEnMView1.MIO.Params[0].PDF_PaperSize  := iepA4;
ImageEnMView1.MIO.Params[0].PDF_PageMargin := Round( 0.5 * 72 );
ImageEnMView1.MIO.Params[0].PDF_ImageOptions := [iepioShrinkOnly, iepioCentered];
ImageEnMView1.MIO.DuplicateCompressionInfo(TRUE);
ImageEnMView1.MIO.SaveToFilePDF('d:\test.pdf');


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: