Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

PoDoFo::Impose::PdfTranslator Class Reference

#include <pdftranslator.h>

Collaboration diagram for PoDoFo::Impose::PdfTranslator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addToSource (const std::string &source)
void impose ()
void loadPlan (const std::string &planFile, PoDoFo::Impose::PlanReader loader)
void setSource (const std::string &source)
void setTarget (const std::string &target)

Public Attributes

std::string boundingBox
double destHeight
double destWidth
int pcount
double scaleFactor
PdfMemDocumentsourceDoc
double sourceHeight
double sourceWidth
PdfMemDocumenttargetDoc

Private Member Functions

bool checkIsPDF (std::string path)
void drawLine (double x, double y, double xx, double yy, std::ostringstream &a)
PdfObjectgetInheritedResources (PdfPage *page)
void mergeResKey (PdfObject *base, PdfName key, PdfObject *tomerge)
PdfObjectmigrateResource (PdfObject *obj)
void signature (double x, double y, int sheet, const std::vector< int > &pages, std::ostringstream &a)
int sortLoop (std::vector< std::string > &memfile, int numline)

Private Attributes

std::map< int, PdfRectartRect
std::map< int, PdfRectbleedRect
std::map< int, PdfRectcropRect
int duplicate
double extraSpace
PdfReference globalResRef
std::string inFilePath
std::map< std::string,
PdfObject * > 
migrateMap
std::vector< std::string > multiSource
std::string outFilePath
std::map< int, PdfDictionary * > pDict
ImpositionPlanplanImposition
std::map< int, PdfObject * > resources
std::map< int, PdfRecttrimRect
std::string useFont
PdfReference useFontRef
std::map< int, int > virtualMap
std::map< int, PdfXObject * > xobjects

Detailed Description

PdfTranslator create a new PDF file which is the imposed version, following the imposition plan provided by the user, of the source PDF file. Pdftranslate does not really create a new PDF doc, it rather works on source doc, getting all page contents as XObjects and put these XObjects on new pages. At the end, it removes original pages from the doc, but since PoDoFo keeps them --- just removing from the pages tree ---, if it happens that you have a lot of content in content stream rather than in resources, you'll get a huge file. Usage is something like : p = new PdfTranslator; p->setSource("mydoc.pdf"); p->setTarget("myimposeddoc.pdf"); p->loadPlan("in4-32p.plan"); p->impose(); p->mailItToMyPrinterShop("job@proprint.com");//Would be great, doesn't it ?

Definition at line 57 of file pdftranslator.h.


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

Generated by  Doxygen 1.6.0   Back to index