Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to understand if a document is PDF or PDFA

salvo91cantoro
Level 1
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
salvo91cantoro
Correct answer by
Level 1
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
salvo91cantoro
Correct answer by
Level 1
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