Skip to main content
10-Marble
September 12, 2024
Question

How to add file properties for PDF representation created from office worker

  • September 12, 2024
  • 3 replies
  • 1474 views

Version: Windchill 12.0

 

Use Case: Document with docx file as primary content is released Result: PDF representation created.


Description:

PDF representation is created using office worker using AEM (Adobe Experience Manager).

Cover page and water mark is created without any issues.

 

Problem statement:

How to add custom file properties to PDF created through AEM?

Refer attached image.

 

Note: In similar line there is a need to add file properties for PDF created for CAD drawings from CAD workers.

3 replies

avillanueva
23-Emerald I
23-Emerald I
September 12, 2024

This article says that its not possible:

https://www.ptc.com/en/support/article/CS426417?source=search

You might have to customize and post process the file if you really need it.

jbailey
18-Opal
September 19, 2024

I would also add that you should be careful not to extend the use of AEM beyond what PTC has licensed it for. There are a lot of AEM capabilities that are not part of what PTC paid Adobe to include it in their tools...

HelesicPetr
22-Sapphire II
22-Sapphire II
September 20, 2024

Hi @jbailey 

You right.

Also If you write own code with existing API (that is not part of AEM) to manipulate the PDF file then you could be able to add the file properties couldn't you? 

PetrH

18-Opal
January 5, 2025

@HelesicPetr , as usual you are correct.

 

Using pdfbox I added properties to a pdf file created by publishing a Creo drawing.

d_graham_0-1736094898503.png

 

The new properties are definitely in the pdf.

The code accepts argument input pdf and writes its properties to the shell.

Then adds the new properties and saves the pdf as a new pdf.

Then writes the new pdf's properties to the shell.

 

However, @Vedamurthy   if I go to the pdf and select properties only the OOTB properties are displayed.

I'm guessing which properties to display are hardcoded. 

d_graham_1-1736095267996.png

 

10-Marble
January 5, 2025

Refer below topic in PTC help center.

Customizing Encryption Filter for Content Download

 

Trying to leverage this to add file properties (instead of encryption) and download the content file.

This will help to add file properties for primary, and secondary contents as well before download.

Adding file properties for Microsoft documents is working.

However, as of now facing problem in PDF file.