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
 TIEPDFBuilder Quality
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JoelZ

Switzerland
1 Posts

Posted - Dec 10 2024 :  08:51:32  Show Profile  Reply
Is there a way to adjust the quality of the TIEPDFBuilder?
If IEGlobalSettings().PdfViewerDefaults.DPI is set, nothing seems to change.
When a PNG is inserted into a PDF, the quality of the PDF is reduced, for example:

oPDFBuild := TIEPDFBuilder.Create;
oBMP := TIEBitmap.Create;
try
  oBMP.ParamsEnabled := True;
  oBMP.LoadFromFile(sFilePNG):
  oBMP.Params.PDF_PaperWidth := Round(oBMP.Width / oBMP.Params.DpiX * 72);
  oBMP.Params.PDF_PaperHeight := Round(oBMP.Height / oBMP.Params.DpiY * 72);
  oPDFBuild.AddPageWithImage(oBMP, oBMP.Params);
  oPDFBuild.SaveToFile(sFilePDF);
finally
  oPDFBuild.Free;
  oBMP.Free;
end;


Section of the image with Text in the...
...original PNG:

...exported PDF:

xequte

38682 Posts

Posted - Dec 10 2024 :  17:20:03  Show Profile  Reply
Please email or attach your sample PNG.

Also, before this code, please set:

IEGlobalSettings().PDFEngine := ieenNative;

Just in case iepdf32.dll is on your path.


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