I like to know about how can i get the order of items and their respective IDs that are shown in a particular page. Given that there are three objects, with the text shown first followed by two images, how can I gain access to the order they are shown. Am i able to tap into any similar functionality within the library?
I've looked through the src code and documentation but can't find any. Appreciate any help.
Your question is somewhat ambiguous: when you ask about content item "IDs" are you referring to PDF's interchange facilities (logical structure and marked content) or are you (wrongly) assuming that page contents have plain&simple IDs like (say) HTML page counterparts do?
Anyway, if you need to parse page contents, then ContentScanner is your class - you can find plenty of examples among the samples included in the downloadable distribution, such as ContentScanningSample.
Let us know if you have any further doubt.
i'm new to pdf and I wanted to import a pdf into an application in the correct order like which items come first. Sorry if i'm unclear.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.