Menu

#70 Impossible to retrieve font from document

SVN TRUNK
open
nobody
None
2019-10-23
2019-10-23
Pietro
No

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 ?

1 Attachments

Discussion

MongoDB Logo MongoDB