Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to understand if a document is PDF or PDFA

Avatar

Level 1

Hi guys, i'm new in this fantastic community, so hello everyone!

I have a problem with a process in LiveCycle Workbench ES4:

how can i understand if a input document is a simple pdf or a pdfa?

I've tried with

getDocContentType(/process_data/@inputDocument)

but either it's pdf or pdfa it always gives me the same result:

"application/pdf"

How can I resolve this problem???

1 Accepted Solution

Avatar

Correct answer by
Level 1

I resolve it!

I used the "Validate PDF / A" process which returns a "ValidationResultPDFA" object from which the "@isPDFA" string can be extracted. Later I made a simple check on that string (true).

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

I resolve it!

I used the "Validate PDF / A" process which returns a "ValidationResultPDFA" object from which the "@isPDFA" string can be extracted. Later I made a simple check on that string (true).