Use the SynPDF library in Delphi to generate PDFs of system reports.
The generated report ( pReport
) allows at run time through a loop I to go through all the generated items ( label's, shape's, images and etc ) and within that loop I go Assembling a PDF.
Works perfectly except with images ...: /
I use the command lPdf.VCLCanvas.StretchDraw(Rect,Picture.Graphic);
With one or two images in the report, blz ... no problem.
But when I have more images, sometimes OutOfMemory
occurs or sometimes only exports a few images - - 3 or 4.
Does anyone work with this library or have any suggestions on how to resolve this issue?
PS: I do not use mORMot
( even within the library ).