3#ifndef PDFSDK_CXX_DOCUMENT_ASSEMBLER_H_INCLUDED_
4#define PDFSDK_CXX_DOCUMENT_ASSEMBLER_H_INCLUDED_
8#include <pdfsdk/cxx/document.h>
9#include <pdfsdk/cxx/graphics.h>
10#include <pdfsdk/cxx/wrapper_base.h>
58 void AddPages(
const Document& source,
const std::vector<size_t>& page_indices);
115 .iPages = page_indices.data(),
116 .numPages = page_indices.size()};
Assembles PDF documents.
Definition document_assembler.h:23
static DocumentAssembler Create()
Creates a new DocumentAssembler object.
Definition document_assembler.h:98
void AddImageFromFile(const std::filesystem::path &image_path)
Adds an image located on the system to the DocumentAssembler object.
Definition document_assembler.h:127
void AddImageFromMemory(const void *data, size_t size)
Adds an in-memory raw data image to the DocumentAssembler object.
Definition document_assembler.h:131
void AddImage(const Graphics::Bitmap &bitmap)
Adds an image to the DocumentAssembler object.
Definition document_assembler.h:122
void AddPages(const Document &source)
Adds a document to the DocumentAssembler object.
Definition document_assembler.h:104
Document Assemble()
Assembles the document.
Definition document_assembler.h:135
Represents a PDF document.
Definition document.h:22
Represents a bitmap.
Definition graphics.h:61
The PDF Document Assembler API.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerAddImageFromFile(PDFDocumentAssembler assembler, const wchar_t *filePath)
Adds an image to the PDFDocumentAssembler object.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerAddImageFromMemory(PDFDocumentAssembler assembler, const void *data, size_t size)
Adds an image to the PDFDocumentAssembler object.
struct PDFDocumentAssemblerRec_ * PDFDocumentAssembler
The opaque handle to the PDFDocumentAssembler object.
Definition document_assembler.h:35
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerAddImage(PDFDocumentAssembler assembler, GXBitmap bitmap)
Adds an image to the PDFDocumentAssembler object.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerAddPages(PDFDocumentAssembler assembler, PDDoc sourceDoc, const PDPageRange *sourcePageIndices)
Adds a document to the PDFDocumentAssembler object.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerCreate(PDFDocumentAssembler *pAssembler)
Creates a new PDFDocumentAssembler object.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFDocumentAssemblerAssemble(PDFDocumentAssembler assembler, PDDoc *pResultDoc)
Assembles the documents added to the PDFDocumentAssembler object.