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
 TIEPDFBuilder Quality

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
JoelZ Posted - Dec 10 2024 : 08:51:32
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:
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 10 2024 : 17:20:03
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