Impossible to retrieve font from document
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
Hi all,
I have a small document which uses in its stream a font named '/F2' but such font can't be looked up by the attached code, which simply compiles a main which takes two parameters: doc file and font name.
./main test.pdf F1
It won't be able to look the font up even if it exists as the line
PdfFont * font = document.GetFont( pdfObject );
Return a pointer to NULL.
I inspected the PDF with i7j and I can find the font under the page
'/Resources' -> '/Font' dictionary therefore it is there indeed,
am I using the library incorrectly or doing anything silly ?