Set Subject and Producer of a PDF-File

Creating a macro - Writing a Script - Using the API

Set Subject and Producer of a PDF-File

Postby VBandOoffice » Mon Jul 22, 2019 10:48 am

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
LibreOffice 5.4, Windows 7, VB.net 2010
VBandOoffice
 
Posts: 27
Joined: Tue Jul 31, 2018 10:11 am

Re: Set Subject and Producer of a PDF-File

Postby VBandOoffice » Mon Jul 22, 2019 11:06 am

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
LibreOffice 5.4, Windows 7, VB.net 2010
VBandOoffice
 
Posts: 27
Joined: Tue Jul 31, 2018 10:11 am

Re: Set Subject and Producer of a PDF-File

Postby JeJe » Mon Jul 22, 2019 11:47 am

"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.
Openoffice 4.1.2
Windows 8
JeJe
Volunteer
 
Posts: 584
Joined: Wed Mar 09, 2016 2:40 pm

Re: Set Subject and Producer of a PDF-File

Postby Zizi64 » Mon Jul 22, 2019 11:49 am

Please, download, install and use an object inspection tool, like the MRI or XrayTool.
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.5; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8354
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary


Return to Macros and UNO API

Who is online

Users browsing this forum: musikai and 6 guests

cron