Main Page | Modules | Class Hierarchy | Class List | Class Members

IpePdfWriter Class Reference

Create PDF file. More...

List of all members.

Public Member Functions


Detailed Description

Create PDF file.

This class is responsible for the creation of a PDF file from the Ipe data. You have to create an IpePdfWriter first, providing a file that has been opened for (binary) writing and is empty. Then call EmbedFonts() to embed the IpeFontPool, EmbedBitmaps() to embed the IpeBitmapPool, and CreatePage() to embed the pages you wish to save. CreateXmlStream embeds a stream with the XML representation of the Ipe document. Finally, call CreateTrailer to complete the PDF document, and close the file.

Some reserved PDF object numbers:


Constructor & Destructor Documentation

IpePdfWriter::IpePdfWriter IpeTellStream stream,
const IpeStyleSheet sheet,
int  compression,
bool  cropBox,
const IpeRect media
 

Create PDF writer operating on this (open and empty) file.

IpePdfWriter::~IpePdfWriter  ) 
 

Destructor.


Member Function Documentation

void IpePdfWriter::EmbedFonts const IpeFontPool pool  ) 
 

Write all fonts to the PDF file, and fill in their object numbers. Embeds no fonts if pool is 0, but must be called nevertheless.

void IpePdfWriter::CreatePage const IpePage page  ) 
 

Create PDF pages presenting this Ipe page.

void IpePdfWriter::CreatePageView const IpePage page,
int  view
 

Create contents and page stream for this page view.

void IpePdfWriter::CreateXmlStream IpeString  xmldata,
bool  preCompressed
 

Create a stream containing the XML data.

void IpePdfWriter::CreateTrailer const IpeDocument::SProperties props,
IpeString  creator
 

Create the root objects and trailer of the PDF file.


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