Glyph & Cog, LLC
search:  
 
     


Home
Products
       - XpdfInfo
       - XpdfText
       - XpdfViewer OCX
       - XpdfViewer
       - XpdfPrint
       - XpdfRasterizer
       - XpdfAnalyze
       - XpdfPS
       - Source license

Services
Tips & Misc
Buy
Tech Support
Company
Contact
 
XpdfAnalyzeTM Library

The XpdfAnalyze library allows you to determine the object types and colors used on one or more pages in a PDF file. Object types are:

  • images
  • text strings
  • strokes (lines)
  • fills (filled polygons)

Object type information can be used to detect image-only, text-only, and image-and-text PDF files.

Color information includes color spaces (DeviceRGB, DeviceCMYK, Separation, etc.), as well as information on which process colors (CMYK) and/or custom colors (spot colors) are used.

XpdfAnalyze is easy to use:

PDFHandle pdf;
int n;

pdfLoadFile(&pdf, "MyFile.pdf");
pdfAnalyzePages(pdf, 1, 4);  // analyze pages 1-4
n = pdfGetNumImages(pdf);    // number of images on pages 1-4

Supported platforms:

  • Windows: DLL
  • Windows: COM component - usable from Visual Basic, Delphi, etc.
  • Linux: shared library
  • Solaris: shared library
  • other platforms: portable C++ source code for the library is available

Contact Glyph & Cog for more information, including pricing, documentation, and evaluation copies.

 
   
    Copyright 2008 Glyph & Cog, LLC