1. Bernhard Stoeter
  2. PowerBuilder
  3. Tuesday, 17 December 2024 08:44 AM UTC

PowerBuilder 22R3

 

Hi,

I have to add XMP MetaData to a PDF document generated by my PowerBuilder app (datawindow.object.DataWindow.Export.PDF...) . Can I do that with PowerBuilder PDF classes?

Thanks in advance,

Bernhard

Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 17 December 2024 10:46 AM UTC
  2. PowerBuilder
  3. # 1

Hi.

While saving a datawindow as pdf, you can set some properties (before save). Those are:

  • Subject (Export.PDF.NativePDF.Subject)
  • Author (Export.PDF.NativePDF.Author)
  • Keywords (Export.PDF.NativePDF.Keywords)

Generally, PDFDocument control supports to set also title and application. Take a look at the following link.

Properties - - Objects and Controls

If you need to set custom XMP Metadata, I don't believe this is currently supported. You should submit an enhancement request.

Andreas.

Comment
  1. Bernhard Stoeter
  2. Tuesday, 17 December 2024 14:39 PM UTC
Hi Andreas,



I expected this.

Thank you.



Bernhard
  1. Helpful
  1. Andreas Mykonios
  2. Tuesday, 17 December 2024 15:13 PM UTC
In my original answer, I stated: "PDFDocument control supports to set also author and application". I wanted to mention: title an application. Author is available when exporting from datawindow. But I guess you need custom xmp metadata...

Andreas.
  1. Helpful
  1. Andreas Mykonios
  2. Tuesday, 17 December 2024 15:16 PM UTC
I do remember that pdfforge was allowing to do that. There is a method called SetMetadataKey... Don't know if you can find it. It was part of older versions of PDFCreator...

Andreas.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.