Scribus
Open source desktop publishing at your fingertips
PDFAnalyzer Class Reference

#include <pdf_analyzer.h>

Inheritance diagram for PDFAnalyzer:
Collaboration diagram for PDFAnalyzer:

Public Member Functions

 PDFAnalyzer (QString &filename)
 
bool inspectPDF (int pageNum, QList< PDFColorSpace > &usedColorSpaces, bool &hasTransparency, QList< PDFFont > &usedFonts, QList< PDFImage > &imgs)
 

Detailed Description

PDFAnalyzer provides the facility to report various properties of a PDF. At the moment, it can parse/analyze and record used color spaces, the use of transparency, used fonts, and existing images in a page of a PDF.

This class will be used by DocumentChecker's class to preflight and report any incompatible properties according to a checker's profile.

Constructor & Destructor Documentation

PDFAnalyzer::PDFAnalyzer ( QString &  filename)

Instantiate a new PDFAnalyzer that will operate on the PDF specified by `filename'.

Parameters
filenamePath to the PDF being analyzed.

Member Function Documentation

bool PDFAnalyzer::inspectPDF ( int  pageNum,
QList< PDFColorSpace > &  usedColorSpaces,
bool &  hasTransparency,
QList< PDFFont > &  usedFonts,
QList< PDFImage > &  imgs 
)

Perform the actual inspection on one page of the PDF.

Returns
A boolean is return indicating whether the process is successful.
Parameters
pageNumSpecifying the page's number (zero-based) in the PDF where the analyzing process is opearted on.
usedColorSpacesList of used color spaces in the page which will be filled while processing.
hasTransparencyA boolean which will be set to true after analyzing if the page contains transparency.
usedFontsList of used fonts in the page which will be filled while processing.
imgsList of images that this page contains.

The documentation for this class was generated from the following files: