Thanks, that one piece of advice was actually a big help, I didn't
realize you could get the underlying object that way.
Once you have a PoDoFo::PdfFont, I was able to get to the differences
array with:
PoDoFo::PdfObject* fntobj = fnt->GetObject();
if (fntobj)
{
PoDoFo::PdfObject* fntdic =
fntobj->GetIndirectKey("Encoding");
if (fntdic)
{
PoDoFo::PdfDifferenceEncoding
diff(fntdic);
PoDoFo::PdfArray diffarray;
PoDoFo::PdfEncodingDifference
d(diff.GetDifferences());
d.ToArray(diffarray);
}
}
(2013/06/15 1:27), Dominik Seichter wrote:
Try getElement ()-> getObject () on the encoding
Cheers
Dominik
Am 14.06.2013 18:02 schrieb "Jesse" <gdjss2...@gmail.com
<mailto:gdjss2...@gmail.com>>:
Thank you for a nice library.
I couldn't find a way to access the /Differences array in the encoding
dictionary. Is there a way to access it in Podofo?
I thought I could call "GetEncoding" after getting the font like the
following:
PoDoFo::PdfObject* resobj =
pg->GetFromResources(PoDoFo::PdfName("Font"), fontname);
PoDoFo::PdfFont* fnt = pdf.GetFont(resobj);
// fnt->GetEncoding()
But from there I couldn't find any way to access the /Differences
array.
Any help would be appreciated. My problem is the differences array
contains code for litagures and special fonts that I need to access.
Thanks,
Jesse Good
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
<mailto:Podofo-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/podofo-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users