#include <PdfMemDocument.h>
Inheritance diagram for PoDoFo::PdfMemDocument:
Public Member Functions | |
PdfMemDocument () | |
PdfMemDocument (const char *pszFilename) | |
virtual | ~PdfMemDocument () |
void | Load (const char *pszFilename) |
void | Load (const char *pBuffer, long lLen) |
void | Load (const PdfRefCountedInputDevice &rDevice) |
void | Write (const char *pszFilename) |
void | Write (PdfOutputDevice *pDevice) |
void | SetWriteMode (EPdfWriteMode eWriteMode) |
virtual EPdfWriteMode | GetWriteMode () const |
void | SetPdfVersion (EPdfVersion eVersion) |
EPdfVersion | GetPdfVersion () const |
void | SetPassword (const std::string &sPassword) |
void | SetEncrypted (const std::string &userPassword, const std::string &ownerPassword, int protection=PdfEncrypt::ePdfPermissions_Print|PdfEncrypt::ePdfPermissions_Edit|PdfEncrypt::ePdfPermissions_Copy|PdfEncrypt::ePdfPermissions_EditNotes|PdfEncrypt::ePdfPermissions_FillAndSign|PdfEncrypt::ePdfPermissions_Accessible|PdfEncrypt::ePdfPermissions_DocAssembly|PdfEncrypt::ePdfPermissions_HighPrint, PdfEncrypt::EPdfEncryptAlgorithm eAlgorithm=PdfEncrypt::ePdfEncryptAlgorithm_RC4V1, PdfEncrypt::EPdfKeyLength eKeyLength=PdfEncrypt::ePdfKeyLength_40) |
void | SetEncrypted (const PdfEncrypt &pEncrypt) |
bool | GetEncrypted () const |
bool | IsLinearized () const |
const PdfVecObjects & | GetObjects () const |
PdfVecObjects & | GetObjects () |
PdfObject * | GetCatalog () |
const PdfObject * | GetCatalog () const |
const PdfObject * | GetTrailer () const |
PdfObject * | GetStructTreeRoot () const |
PdfObject * | GetMetadata () const |
PdfObject * | GetMarkInfo () const |
PdfFont * | GetFont (PdfObject *pObject) |
const PdfMemDocument & | InsertPages (const PdfMemDocument &rDoc, int inFirstPage, int inNumPages) |
void | DeletePages (int inFirstPage, int inNumPages) |
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 |
void | FreeObjectMemory (const PdfReference &rRef, bool bForce=false) |
void | FreeObjectMemory (PdfObject *pObj, bool bForce=false) |
const PdfEncrypt * | GetEncrypt () const |
PdfMemDocument was designed to allow easy access to the object structur of a PDF file.
PdfMemDocument should be used whenever you want to change the object structure of a PDF file.
When you are only creating PDF files, please use PdfStreamedDocument which is usually faster for creating PDFs.
|
Construct a new (empty) PdfMemDocument |
|
Construct a PdfMemDocument from an existing PDF (on disk)
|
|
Close down/destruct the PdfMemDocument |
|
Deletes one or more pages from this document It does NOT remove any PdfObjects from memory - just the reference from the pages tree. If you want to delete resources of this page, you have to delete them yourself, but the resources might be used by other pages, too.
|
|
Tries to free all memory allocated by the given PdfObject (variables and streams) and reads it from disk again if it is requested another time. This will only work if load on demand is used. Other- wise any call to this method will be ignored. Load on demand is currently always enabled when using PdfMemDocument. If the object is dirty if will not be free'd.
|
|
Tries to free all memory allocated by the given PdfObject (variables and streams) and reads it from disk again if it is requested another time. This will only work if load on demand is used. Other- wise any call to this method will be ignored. Load on demand is currently always enabled when using PdfMemDocument. If the object is dirty if will not be free'd.
|
|
Get access to the internal Catalog dictionary or root object.
Reimplemented from PoDoFo::PdfDocument. |
|
Get access to the internal Catalog dictionary or root object.
Reimplemented from PoDoFo::PdfDocument. |
|
|
|
|
|
Creates a PdfFont object from an existing font.
|
|
Get access to the MarkInfo dictionary (ISO 32000-1:2008 14.7.1)
|
|
Get access to the Metadata stream
|
|
Get a reference to the sorted internal objects vector. This is an overloaded function for your convinience.
Reimplemented from PoDoFo::PdfDocument. |
|
Get a reference to the sorted internal objects vector.
Reimplemented from PoDoFo::PdfDocument. |
|
Get the PDF version of the document
Implements PoDoFo::PdfDocument. |
|
Get access to the StructTreeRoot dictionary
|
|
Get the trailer dictionary which can be written unmodified to a pdf file. Reimplemented from PoDoFo::PdfDocument. |
|
Get the write mode used for wirting the PDF
Implements PoDoFo::PdfDocument. |
|
Copies one or more pages from another PdfMemDocument to this document
|
|
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. |
|
Load a PdfMemDocument from a PdfRefCountedInputDevice
|
|
Load a PdfMemDocument from a buffer in memory
|
|
Load a PdfMemDocument from a file
|
|
Encrypt the document during writing using a PdfEncrypt object
|
|
Encrypt the document during writing.
|
|
If you try to open an encrypted PDF file, which requires a password to open, PoDoFo will throw a PdfError( ePdfError_InvalidPassword ) exception. If you got such an exception, you have to set a password which should be used for opening the PDF. The usual way will be to ask the user for the password and set the password using this method. PdfParser will immediately continue to read the PDF file.
|
|
Set the PDF Version of the document. Has to be called before Write() to have an effect.
|
|
Set the write mode to use when writing the PDF.
|
|
Writes the complete document to an output device
|
|
Writes the complete document to a file
|