|
|
| PdfMemDocument () |
| | Construct a new PdfMemDocument.
|
| |
|
| PdfMemDocument (std::shared_ptr< InputStreamDevice > device, const std::string_view &password) |
| |
|
| PdfMemDocument (std::shared_ptr< InputStreamDevice > device, PdfLoadOptions opts=PdfLoadOptions::None, const std::string_view &password={ }) |
| |
|
| PdfMemDocument (const PdfMemDocument &rhs) |
| | Construct a copy of the given document.
|
| |
| void | Load (const std::string_view &filename, const std::string_view &password) |
| | Load a PdfMemDocument from a file.
|
| |
| void | Load (const std::string_view &filename, PdfLoadOptions opts=PdfLoadOptions::None, const std::string_view &password={ }) |
| | Load a PdfMemDocument from a file.
|
| |
| void | LoadFromBuffer (const bufferview &buffer, const std::string_view &password) |
| | Load a PdfMemDocument from a buffer in memory.
|
| |
| void | LoadFromBuffer (const bufferview &buffer, PdfLoadOptions opts=PdfLoadOptions::None, const std::string_view &password={ }) |
| | Load a PdfMemDocument from a buffer in memory.
|
| |
| void | Load (std::shared_ptr< InputStreamDevice > device, const std::string_view &password) |
| | Load a PdfMemDocument from an input device.
|
| |
| void | Load (std::shared_ptr< InputStreamDevice > device, PdfLoadOptions opts=PdfLoadOptions::None, const std::string_view &password={ }) |
| | Load a PdfMemDocument from an input device.
|
| |
| void | Save (const std::string_view &filename, PdfSaveOptions opts=PdfSaveOptions::None) |
| | Save the complete document to a file.
|
| |
| void | Save (OutputStreamDevice &device, PdfSaveOptions opts=PdfSaveOptions::None) |
| | Save the complete document to an output device.
|
| |
| void | SaveUpdate (const std::string_view &filename, PdfSaveOptions opts=PdfSaveOptions::None) |
| | Save the document changes to a file.
|
| |
| void | SaveUpdate (OutputStreamDevice &device, PdfSaveOptions opts=PdfSaveOptions::None) |
| | Save the document changes to an output device.
|
| |
| void | SetEncrypted (const std::string_view &userPassword, const std::string_view &ownerPassword, PdfPermissions protection=PdfPermissions::Default, PdfEncryptionAlgorithm algorithm=PdfEncryptionAlgorithm::AESV3R6, PdfKeyLength keyLength=PdfKeyLength::Unknown) |
| | Encrypt the document during writing.
|
| |
| void | SetEncrypt (std::unique_ptr< PdfEncrypt > &&encrypt) |
| | Encrypt the document during writing using a PdfEncrypt object.
|
| |
| bool | HasOwnerPermissions () const override |
| | Checks if document has been opened with full owner privileges.
|
| |
| const PdfEncrypt * | GetEncrypt () const override |
| |
|
size_t | GetMagicOffset () const |
| |
|
bool | HasBrokenXRef () const |
| |
|
virtual | ~PdfDocument () |
| | Close down/destruct the PdfDocument.
|
| |
| PdfOutlines & | GetOrCreateOutlines () |
| | Get access to the Outlines (Bookmarks) dictionary The returned outlines object is owned by the PdfDocument.
|
| |
| PdfNameTrees & | GetOrCreateNames () |
| | Get access to the Names dictionary (where all the named objects are stored) The returned PdfNameTrees object is owned by the PdfDocument.
|
| |
| PdfAcroForm & | GetOrCreateAcroForm (PdfAcroFormDefaulAppearance eDefaultAppearance=PdfAcroFormDefaulAppearance::ArialBlack) |
| | Get access to the AcroForm dictionary.
|
| |
|
void | CollectGarbage (PdfGarbageCollectionFlags flags=PdfGarbageCollectionFlags::None) |
| |
|
std::unique_ptr< PdfImage > | CreateImage () |
| | Construct a new PdfImage object.
|
| |
|
std::unique_ptr< PdfXObjectForm > | CreateXObjectForm (const Rect &rect) |
| |
|
std::unique_ptr< PdfDestination > | CreateDestination () |
| |
|
std::unique_ptr< PdfColorSpace > | CreateColorSpace (PdfColorSpaceFilterPtr filter) |
| |
|
std::unique_ptr< PdfFunction > | CreateFunction (PdfFunctionDefinitionPtr definition) |
| |
|
std::unique_ptr< PdfUncolouredTilingPattern > | CreateTilingPattern (std::shared_ptr< PdfUncolouredTilingPatternDefinition > definition) |
| |
|
std::unique_ptr< PdfColouredTilingPattern > | CreateTilingPattern (std::shared_ptr< PdfColouredTilingPatternDefinition > definition) |
| |
|
std::unique_ptr< PdfShadingPattern > | CreateShadingPattern (PdfShadingPatternDefinitionPtr definition) |
| |
|
std::unique_ptr< PdfShadingDictionary > | CreateShadingDictionary (PdfShadingDefinitionPtr definition) |
| |
|
std::unique_ptr< PdfExtGState > | CreateExtGState (PdfExtGStateDefinitionPtr definition) |
| |
|
template<typename Taction > |
| std::unique_ptr< Taction > | CreateAction () |
| |
|
std::unique_ptr< PdfAction > | CreateAction (PdfActionType type) |
| |
|
std::unique_ptr< PdfFileSpec > | CreateFileSpec () |
| |
| bool | IsPrintAllowed () const |
| | Checks if printing this document is allowed.
|
| |
| bool | IsEditAllowed () const |
| | Checks if modifying this document (besides annotations, form fields or substituting pages) is allowed.
|
| |
| bool | IsCopyAllowed () const |
| | Checks if text and graphics extraction is allowed.
|
| |
| bool | IsEditNotesAllowed () const |
| | Checks if it is allowed to add or modify annotations or form fields.
|
| |
| bool | IsFillAndSignAllowed () const |
| | Checks if it is allowed to fill in existing form or signature fields.
|
| |
| bool | IsAccessibilityAllowed () const |
| | Checks if it is allowed to extract text and graphics to support users with disabilities.
|
| |
| bool | IsDocAssemblyAllowed () const |
| | Checks if it is allowed to insert, create, rotate, or delete pages or add bookmarks.
|
| |
| bool | IsHighPrintAllowed () const |
| | Checks if it is allowed to print a high quality version of this document Every PDF-consuming application has to adhere to this value!
|
| |
| void | PushPdfExtension (const PdfExtension &extension) |
| | Add a vendor-specific extension to the current PDF version.
|
| |
| bool | HasPdfExtension (const std::string_view &ns, int64_t level) const |
| | Checks whether the documents is tagged to implement a vendor-specific extension to the current PDF version.
|
| |
| void | RemovePdfExtension (const std::string_view &ns, int64_t level) |
| | Remove a vendor-specific extension to the current PDF version.
|
| |
| std::vector< PdfExtension > | GetPdfExtensions () const |
| | Return the list of all vendor-specific extensions to the current PDF version.
|
| |
|
PdfAcroForm & | MustGetAcroForm () |
| |
|
const PdfAcroForm & | MustGetAcroForm () const |
| |
|
PdfNameTrees & | MustGetNames () |
| |
|
const PdfNameTrees & | MustGetNames () const |
| |
|
PdfOutlines & | MustGetOutlines () |
| |
|
const PdfOutlines & | MustGetOutlines () const |
| |
| PdfDocumentFieldIterable | GetFieldsIterator () |
| | Get an iterator for all fields in the document.
|
| |
|
PdfDocumentConstFieldIterable | GetFieldsIterator () const |
| |
|
void | Reset () |
| | Clear all internal structures and reset PdfDocument to an empty state.
|
| |
| bool | IsEncrypted () const |
| |
|
bool | IsStrictParsing () const |
| |
| PdfCatalog & | GetCatalog () |
| | Get access to the internal Catalog dictionary or root object.
|
| |
| const PdfCatalog & | GetCatalog () const |
| | Get access to the internal Catalog dictionary or root object.
|
| |
| PdfPageCollection & | GetPages () |
| | Get access to the page tree.
|
| |
| const PdfPageCollection & | GetPages () const |
| | Get access to the page tree.
|
| |
| PdfTrailer & | GetTrailer () |
| | Get access to the internal trailer dictionary or root object.
|
| |
| const PdfTrailer & | GetTrailer () const |
| | Get access to the internal trailer dictionary or root object.
|
| |
| const PdfInfo * | GetInfo () const |
| | Get access to the internal Info dictionary You can set the author, title etc.
|
| |
|
PdfMetadata & | GetMetadata () |
| |
|
const PdfMetadata & | GetMetadata () const |
| |
| PdfIndirectObjectList & | GetObjects () |
| | Get access to the internal vector of objects or root object.
|
| |
| const PdfIndirectObjectList & | GetObjects () const |
| | Get access to the internal vector of objects or root object.
|
| |
|
PdfAcroForm * | GetAcroForm () |
| |
|
const PdfAcroForm * | GetAcroForm () const |
| |
|
PdfNameTrees * | GetNames () |
| |
|
const PdfNameTrees * | GetNames () const |
| |
|
PdfOutlines * | GetOutlines () |
| |
|
const PdfOutlines * | GetOutlines () const |
| |
|
PdfFontManager & | GetFonts () |
| |
|
template<typename TAction > |
| std::unique_ptr< TAction > | CreateAction () |
| |
PdfMemDocument is the core class for reading and manipulating PDF files and writing them back to disk.
PdfMemDocument was designed to allow easy access to the object structure 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.
- See also
- PdfDocument
-
PdfStreamedDocument
-
PdfParser