All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pdftron::Layout::FlowDocument Class Reference

#include <FlowDocument.h>

Public Member Functions

 FlowDocument ()
 
 ~FlowDocument ()
 
Paragraph AddParagraph ()
 
Paragraph AddParagraph (const UString &text)
 
List AddList ()
 
Table AddTable ()
 
void SetDefaultMargins (double left, double top, double right, double bottom)
 
void SetDefaultPageSize (double width, double height)
 
ContentNode GetBody () const
 
PDF::PDFDoc PaginateToPDF ()
 

Public Attributes

TRN_FlowDocument m_impl
 

Detailed Description

The class FlowDocument. Encapsulates document creation API.

Definition at line 17 of file FlowDocument.h.

Constructor & Destructor Documentation

pdftron::Layout::FlowDocument::FlowDocument ( )

A constructor. Creates an empty document.

pdftron::Layout::FlowDocument::~FlowDocument ( )

Destroy the FlowDocument object

Member Function Documentation

List pdftron::Layout::FlowDocument::AddList ( )

Adds a list to the document.

Returns
The list object
Paragraph pdftron::Layout::FlowDocument::AddParagraph ( )

Adds a paragraph to the document.

Returns
The paragraph object
Paragraph pdftron::Layout::FlowDocument::AddParagraph ( const UString text)

Adds a paragraph to the document and sets the text.

Returns
The paragraph object
Table pdftron::Layout::FlowDocument::AddTable ( )

Adds a table to the document.

Returns
The table object
ContentNode pdftron::Layout::FlowDocument::GetBody ( ) const

Gets the body of the document.

The body is the root of the content tree. It can be used to traverse the content tree via the ContentNodeIterator object.

Returns
The body of the document
PDF::PDFDoc pdftron::Layout::FlowDocument::PaginateToPDF ( )

Paginates the content tree into a PDFDoc object.

Returns
The PDFDoc object
void pdftron::Layout::FlowDocument::SetDefaultMargins ( double  left,
double  top,
double  right,
double  bottom 
)

Set the default margins for the document.

Parameters
leftThe left margin in points
topThe top margin in points
rightThe right margin in points
bottomThe bottom margin in points
void pdftron::Layout::FlowDocument::SetDefaultPageSize ( double  width,
double  height 
)

Set the default page size for the document.

Parameters
widthThe width in points
heightThe height in points

Member Data Documentation

TRN_FlowDocument pdftron::Layout::FlowDocument::m_impl

Definition at line 95 of file FlowDocument.h.


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