Comprehensive Guide for Developers: Features, Integration, and API Reference
Assembles PDF documents. More...
#include <pdfsdk/cxx/document_assembler.h>
Public Member Functions | |
void | AddPages (const Document &source) |
Adds a document to the DocumentAssembler object. | |
void | AddPages (const Document &source, const PDPageRange &page_range) |
Takes a series of pages from a document and adds them to the DocumentAssembler object. | |
void | AddPages (const Document &source, const std::vector< size_t > &page_indices) |
Takes specific pages from a document and adds them to the DocumentAssembler object. | |
void | AddImage (const Graphics::Bitmap &bitmap) |
Adds an image to the DocumentAssembler object. | |
void | AddImageFromFile (const std::filesystem::path &image_path) |
Adds an image located on the system to the DocumentAssembler object. | |
void | AddImageFromMemory (const void *data, size_t size) |
Adds an in-memory raw data image to the DocumentAssembler object. | |
Document | Assemble () |
Assembles the document. | |
DocumentAssembler (PDFDocumentAssembler handle, bool adopt=false) noexcept | |
DocumentAssembler (const DocumentAssembler &rhs) noexcept | |
DocumentAssembler & | operator= (const DocumentAssembler &rhs) noexcept |
DocumentAssembler (DocumentAssembler &&rhs) noexcept | |
DocumentAssembler & | operator= (DocumentAssembler &&rhs) noexcept |
Static Public Member Functions | |
static DocumentAssembler | Create () |
Creates a new DocumentAssembler object. | |
Assembles PDF documents.
Use this class to assemble PDF documents from multiple sources. You can merge multiple PDF documents into one, select specific pages from an existing document to create a new document, merge multiple documents by selecting specific pages from each one - into a new document, add raster image formats to an existing document. The resulting document can be saved to a file or used for further processing.
|
inline |
Adds an image to the DocumentAssembler object.
Add raster image formats such as .png .bmp .gif .jpg etc. Should be called again on the same DocumentAssembler object to add another image.
[in] | bitmap | A reference to the bitmap object to add. |
|
inline |
Adds an image located on the system to the DocumentAssembler object.
Add raster image formats such as .png .bmp .gif .jpg etc. Should be called again on the same DocumentAssembler object to add another image.
[in] | image_path | A reference to the path to the image file in wide character string format including the file extention (i.e. L"path/to/file.ext"). |
|
inline |
Adds an in-memory raw data image to the DocumentAssembler object.
[in] | data | A pointer to the image data. |
[in] | size | The size of the image data. |
|
inline |
Adds a document to the DocumentAssembler object.
Should be called again on the same DocumentAssembler object to add another document for merging.
[in] | source | A reference to the already opened document to add. |
void PDF::DocumentAssembler::AddPages | ( | const Document & | source, |
const PDPageRange & | page_range ) |
Takes a series of pages from a document and adds them to the DocumentAssembler object.
Should be called again on the same DocumentAssembler object to add another series of pages from another document for merging.
[in] | source | A reference to the already opened document whose range of pages to take. |
[in] | page_range | The page range to add starting from 0. Should be defined as {0, 1, 2} for pages 1, 2 and 3 of the PDF document. |
|
inline |
Takes specific pages from a document and adds them to the DocumentAssembler object.
Should be called again on the same DocumentAssembler object to add another document's selected pages.
[in] | source | A reference to the already opened document whose specified pages to take. |
[in] | page_indices | The page numbers to add starting from 0 (i.e. {0, 2, 10} are pages 1, 3 and 11 from the PDF document). |
|
inline |
Assembles the document.