
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:
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:
Contact Glyph & Cog for more information, including pricing, documentation, and evaluation copies.