On Tue, 2015-09-08 at 21:39 +0930, Domonic Tom wrote:
> Is there a way of obtaining 'Missing Width' from the FontDescriptor
> dictionary using Podofo.  It doesn't seem to be
> in the documentation?

        Hi,
I didn't try it myself, but as it's part of the FontDescriptor object,
then you can use PdfDictionary to get the value:
   PdfObject *fontDescriptor = ...;

   if (fontDescriptor->GetDictionary().HasKey("MissingWidth")) {
      // get as object
      PdfObject *obj;
      obj = fontDescriptor->GetDictionary().GetKey("MissingWidth");

      // or directly the value
      pdf_int64 value;
      value = fontDescriptor->GetDictionary().GetKeyAsLong("MissingWidth");
   }

You can use also PdfDocument::GetObjects() to get the vector of the
document objects and find the right object in it.
Hope it helps.
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz



------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to