pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Begley <christopher.beg...@outlook.com>
Subject Parse dictionary given as a string.
Date Tue, 17 Jan 2017 16:23:52 GMT
Is it possible to use PDFBox to parse a dictionary given as a string? (Possibly generated/originating
from another source)

 For example, if I have:

<</Type/Page/Parent 2 0 R/Resources<</Font<</F1 6 0 R/F2 9 0 R/F3 11 0 R>>/ExtGState<</GS8
8 0 R>>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/MediaBox[ 0 0 612 1008] /Contents
5 0 R/Group<</Type/Group/S/Transparency/CS/DeviceRGB>>/Tabs/S/StructParents 0>>

Is there a way to take this string and load it into a COSDictionary object and then parse
key/value pairs?

I've looked at the COSDictionary documentation and there doesn't seem to be any (obvious)
way to do this.

If PDFBox is not able to do this, does anyone know of any open source parsers out there that
would accomplish this?  Thanks in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message