The XpdfAnalyze™ library/component 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:

pdf = new XpdfAnalyze.XpdfAnalyze pdf.loadFile("input.pdf") pdf.analyzePages(1, 4) ' analyze pages 1-4 n = pdf.getNumImages() ' number of images on pages 1-4

Supported platforms:

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