Page 1 of 1

Set Subject and Producer of a PDF-File

Posted: Mon Jul 22, 2019 10:48 am
by VBandOoffice
Hi all,
I'm generating PDF-Files automatically from LibreOffice-Calc.
In the past, their are only some asian style characters mentioned at producer. Now, I get "LibreOffice 6.2".

I want to set Subject and Producer in my macro, while generating the PDF-File.
Does anyone know how to do it?

Thanks in advance!
VBandOoffice

Re: Set Subject and Producer of a PDF-File

Posted: Mon Jul 22, 2019 11:06 am
by VBandOoffice
Hi,
Subject, I found by myself, but Producer is not a property of DocumentProperties:

oDoc.DocumentProperties.Author=sAuthor
oDoc.DocumentProperties.Title=sTitle
oDoc.DocumentProperties.Subject=sTyp
oDoc.DocumentProperties.Description=sDescription
oDoc.DocumentProperties.Keywords=sKeywords()
REM oDoc.DocumentProperties.Producer="XXX GmbH"

Regards,
VBandOoffice

Re: Set Subject and Producer of a PDF-File

Posted: Mon Jul 22, 2019 11:47 am
by JeJe
"LibreOffice 6.2" is what you should get for Producer when that is what is producing the document... if something else produced it that name would be in that field.

Re: Set Subject and Producer of a PDF-File

Posted: Mon Jul 22, 2019 11:49 am
by Zizi64
Please, download, install and use an object inspection tool, like the MRI or XrayTool.