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: