#include <PdfStreamedDocument.h>
Inheritance diagram for PoDoFo::PdfStreamedDocument:
Public Member Functions | |
PdfStreamedDocument (PdfOutputDevice *pDevice, EPdfVersion eVersion=ePdfVersion_Default, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default) | |
PdfStreamedDocument (const char *pszFilename, EPdfVersion eVersion=ePdfVersion_Default, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default) | |
void | Close () |
virtual EPdfWriteMode | GetWriteMode () const |
virtual EPdfVersion | GetPdfVersion () const |
virtual bool | IsLinearized () const |
virtual bool | IsPrintAllowed () const |
virtual bool | IsEditAllowed () const |
virtual bool | IsCopyAllowed () const |
virtual bool | IsEditNotesAllowed () const |
virtual bool | IsFillAndSignAllowed () const |
virtual bool | IsAccessibilityAllowed () const |
virtual bool | IsDocAssemblyAllowed () const |
virtual bool | IsHighPrintAllowed () const |
Page contents, fonts and images are written to disk as soon as possible and are not kept in memory. This results in faster document generation and less memory being used.
Please use PdfMemDocument if you intend to work on the object structure of a PDF file.
One of the design goals of PdfStreamedDocument was to hide the underlying object structure of a PDF file as far as possible.
PdfStreamedDocument document( "outputfile.pdf" ); PdfPage* pPage = document.CreatePage( PdfPage::CreateStandardPageSize( ePdfPageSize_A4 ) ); PdfFont* pFont = document.CreateFont( "Arial" );
PdfPainter painter; painter.SetPage( pPage ); painter.SetFont( pFont ); painter.DrawText( 56.69, pPage->GetPageSize().GetHeight() - 56.69, "Hello World!" ); painter.FinishPage();
document.Close();
|
Create a new PdfStreamedDocument. All data is written to an output device immediately.
|
|
Create a new PdfStreamedDocument. All data is written to a file immediately.
|
|
Close the document. The PDF file on disk is finished. No other member function of this class maybe called after calling this function. |
|
Get the PDF version of the document
Implements PoDoFo::PdfDocument. |
|
Get the write mode used for wirting the PDF
Implements PoDoFo::PdfDocument. |
|
Checks if it is allowed to extract text and graphics to support users with disabillities Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if text and graphics extraction is allowed. Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if it is allowed to insert, create, rotate, delete pages or add bookmarks Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if modifiying this document (besides annotations, form fields or changing pages) is allowed. Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if it is allowed to add or modify annotations or form fields Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if it is allowed to fill in existing form or signature fields Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Checks if it is allowed to print a high quality version of this document Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |
|
Returns wether this PDF document is linearized, aka weboptimized
Implements PoDoFo::PdfDocument. |
|
Checks if printing this document is allowed. Every PDF consuming applications has to adhere this value!
Implements PoDoFo::PdfDocument. |