#1 Re: PDF Engine » Document info is not saved » 2011-10-18 11:46:21

ab wrote:

You set PDFA1 to TRUE AFTER the info fields.
So your document information is reset.

Setting the PDFA1 property will flush the current document.
It is even preferred to specify it at the constructor level.
...

Many thanks, this was (my) error. roll
Now it works beautifully. smile

#2 Re: PDF Engine » Document info is not saved » 2011-10-18 10:05:01

What I doing wrong? sad

I create a PDF file with "PdfDocument.Canvas.RenderMetaFile (Metafile)".
This works wonderfully!
Only, it is not saved the document info to the PDF file (when "PdfDocument.PDFA1" is set).

#3 Re: PDF Engine » Document info is not saved » 2011-10-18 07:46:14

Hi,

i've downloaded the last version (1.15).

When I add the option PdfDocument.PDFA1:=true (or false!) then the document info (Author, Title, Creator...) not saved to the PDF file.

...
PdfDocument:=TPdfDocument.Create;
PdfDocument.Info.Author :='Author';
PdfDocument.Info.Creator:='Creator';
PdfDocument.Info.Subject:='Subject';
PdfDocument.Info.Title  :='Title';
PdfDocument.PDFA1:=true; // or :=false
PdfDocument.AddPage;
...

But when I not add this option then the document info saved to the PDF file.

Thanks in advance for your help.

Board footer

Powered by FluxBB