#1 Re: PDF Engine » TGDIPages & Jpeg Compression » 2013-09-16 09:25:01

To answer my own question...

I was using TGDIPages from SQLite3Pages.dcu which is the stand alone report generator. By including mORMotReport.dcu, ExportPDFForceJPEGCompression is available.

Setting ExportPDFForceJPEGCompression := 60 took my PDF document from 30+mb to 2mb.

#2 PDF Engine » TGDIPages & Jpeg Compression » 2013-09-13 16:52:12

gavinsbtm
Replies: 2

Hi, Sorry if this has been answered elsewhere but I can't find the help I need.

I am using TGDIPages to create a PDF document by calling  pdfDoc.ExportPDF('test.pdf', false, true).
The resulting PDF is quite large in filesize as it contains several JPEG images.

I have seen references to TPdfDocumentGDI.ForceJpegCompression but how do you use this on an instance of TGDIPages?

Thanks

Board footer

Powered by FluxBB