Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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.
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.
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...
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
@HelesicPetr , as usual you are correct.
Using pdfbox I added properties to a pdf file created by publishing a Creo drawing.
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 We can view PDF document custom properties in Adobe reader.
We are using Open PDF library available in Windchill installation to add custom properties.
Adding custom properties is working fine.
As of now, we are facing issue during download.
Issue is very specific to PDF file.
For Microsoft files we are using POI library. which is working fine.
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.