DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Update/control PDF properties using DIAdem script

Solved!
Go to solution

Hi,

 

Call Report.Sheets.ExportToPDF(OutPutPath & test.pdf, False)

 

How can update Title of PDF using DIAdem scripts? currently I have control over PDF name only. How other PDF document properties can be controlled using Diadem script, especially title of PDF.

 

Currently default title is "DIAdem-REPORT_NONAME.TDR" , PDF file having TDR as title and not giving proper meaning to user. It gives same title for all PDFs generated which is not expected.

Durai26_0-1687796308180.png

 

PDF opened in chrome,

Durai26_1-1687796719979.png

 

 

regards,

Durai

 

0 Kudos
Message 1 of 2
(923 Views)
Solution
Accepted by topic author Durai26

Hi Durai,

 

by default the title of the PDF document is set to DIAdem-Report_ plus the name of the currently loaded REPORT layout file. You can change this by adding export properties tor the report settings. You can change title, author, subject and keywords by adding these properties like follows:

 

call Report.Settings.Export.Properties.Add("Title", "My layout",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Author", "Me",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Subject", "My Test Export",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Keywords", "DIAdem, Report, Test",ePropertyDataTypeString)

 

regards

Rainer

Message 2 of 2
(889 Views)