[Lazarus] fpPDF: cannot embed DejaVu font
Michael Van Canneyt
michael at freepascal.org
Wed Apr 13 14:52:34 CEST 2016
On Wed, 13 Apr 2016, José Mejuto wrote:
> El 13/04/2016 a las 13:42, Michael Van Canneyt escribió:
>>
>> The support for compressed images and embedding of raw JPEG is in SVN too,
>> sample program adapted to demonstrate this (-i -j command line options).
>>
>
> Hello,
>
> Does the library detect the same image used multiple times ?
You must add images manually in a list.
Drawing an image means: "draw image N here at (X,Y)"
It is up to you to add an image only once and re-use that.
> In the past I
> was using a pdf generator for a report that has an image as background
> watermark. The report could be more than 100 pages and the pdf was
> multi-megabyte because the library adds each page watermark as a new graphic
> object, instead reuse the same object.
The fpreport engine will add the image only once and will reuse it.
Michael.
More information about the Lazarus
mailing list