FPDF_XOBJECT created by TPdf.CreateXObjectFromPage
constructor Create(AHandle: FPDF_XOBJECT);
property Handle: FPDF_XOBJECT read FHandle;
| Member | Description |
|---|---|
Create | Wrap an FPDF_XOBJECT handle returned by PDFium |
Destroy | Closes the wrapped handle before the owning destination document is closed |
Handle | Raw FPDF_XOBJECT value used by PDFium page-object APIs |
TPdfXObject represents a reusable Form XObject produced from a page in another document
The handle belongs to the destination document that created it and must be released before that destination document is closed
Use TPdf.InsertFormObjectFromXObject to place one copy of the wrapped page onto the current destination page
XObject := DestinationPdf.CreateXObjectFromPage(SourcePdf, 1);
DestinationPdf.InsertFormObjectFromXObject(XObject);