|
Scribus
Open source desktop publishing at your fingertips
|
#include <pdf_analyzer.h>


Public Member Functions | |
| PDFAnalyzer (QString &filename) | |
| bool | inspectPDF (int pageNum, QList< PDFColorSpace > &usedColorSpaces, bool &hasTransparency, QList< PDFFont > &usedFonts, QList< PDFImage > &imgs) |
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.
| PDFAnalyzer::PDFAnalyzer | ( | QString & | filename | ) |
Instantiate a new PDFAnalyzer that will operate on the PDF specified by `filename'.
| filename | Path to the PDF being analyzed. |
| 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.
| pageNum | Specifying the page's number (zero-based) in the PDF where the analyzing process is opearted on. |
| usedColorSpaces | List of used color spaces in the page which will be filled while processing. |
| hasTransparency | A boolean which will be set to true after analyzing if the page contains transparency. |
| usedFonts | List of used fonts in the page which will be filled while processing. |
| imgs | List of images that this page contains. |