Class PDFGeneration#

Inheritance Relationships#

Base Type#

Class Documentation#

class PDFGeneration : public SgTopDownProcessing<PDFInheritedAttribute>#

Public Functions

inline PDFGeneration()#
virtual void generate(std::string filename, SgNode *node)#

Protected Functions

virtual PDFInheritedAttribute evaluateInheritedAttribute(SgNode *node, PDFInheritedAttribute inheritedValue)#
std::string text_page(SgNode *node)#
virtual void edit_page(size_t pageNumber, SgNode *node, PDFInheritedAttribute inheritedValue)#
virtual std::string get_bookmark_name(SgNode *node)#
void create_textlink(const std::string &text, HPDF_Destination target, int hitboxextender = 0)#
void pdf_setup(std::string filename, size_t numPages)#
void pdf_finalize()#
void begin_page()#
void end_page()#

Protected Attributes

HPDF_Doc pdfFile#
HPDF_Font theFont#
std::vector<HPDF_Page> pages#
std::vector<HPDF_Destination> pageDests#
std::string filename#
size_t currentPageNumber#
HPDF_Page currentPage#
int topMargin#
int leftMargin#
HPDF_Rect fontBBox#