TTMSFNCPDFLib Class
PDF document generation component; drop on a form to generate PDF files or streams.
API unit family: TMSFNCPDFLib
Inherits from: TTMSFNCCustomPDFLib
Syntax
TTMSFNCPDFLib = class(TTMSFNCCustomPDFLib)
class PASCALIMPLEMENTATION TTMSFNCPDFLib : public TTMSFNCCustomPDFLib
Properties
| Name | Description |
|---|---|
| ArtBox | Art box defining the content area intended for display in points. (inherited from TTMSFNCCustomPDFLib) |
| Author | Author metadata written into the PDF document information dictionary. (inherited from TTMSFNCCustomPDFLib) |
| BitmapContainer | Bitmap container used as the source for named bitmaps drawn on PDF pages. (inherited from TTMSFNCCustomPDFLib) |
| BleedBox | Bleed box defining the clip region for production bleed in points. (inherited from TTMSFNCCustomPDFLib) |
| CreationDate | Document creation date as the raw PDF date string, for example D:20260908120000Z. Use TryPDFDateToDateTime to convert. Read and written on the opened document; the generator stamps its own value. (inherited from TTMSFNCCustomPDFLib) |
| Creator | Creator metadata written into the PDF document information dictionary. (inherited from TTMSFNCCustomPDFLib) |
| CropBox | Crop box defining the visible page region in a viewer, in points. (inherited from TTMSFNCCustomPDFLib) |
| DocumentOpened | Indicates whether a generated or structurally parsed document is open. (inherited from TTMSFNCCustomPDFLib) |
| EmbedFontType | Controls which font data is embedded: full font program or subset. (inherited from TTMSFNCCustomPDFLib) |
| EmbedFonts | When True, fonts used in the document are embedded in the PDF output. (inherited from TTMSFNCCustomPDFLib) |
| FontFallBackList | Ordered list of fallback font names tried when a glyph is not available in the primary font. (inherited from TTMSFNCCustomPDFLib) |
| Footer | Text drawn in the footer area of every page. (inherited from TTMSFNCCustomPDFLib) |
| FooterAlignment | Horizontal alignment of the footer text. Default is gtaCenter. (inherited from TTMSFNCCustomPDFLib) |
| FooterFont | Font used to render the footer text. (inherited from TTMSFNCCustomPDFLib) |
| FooterMargins | Margins around the footer area in points. (inherited from TTMSFNCCustomPDFLib) |
| FooterSize | Height of the footer strip in points. (inherited from TTMSFNCCustomPDFLib) |
| FormFields | Provides access to interactive form fields (text boxes, combo boxes, list boxes, check boxes, radio buttons) on the current page. (inherited from TTMSFNCCustomPDFLib) |
| Header | Text drawn in the header area of every page. (inherited from TTMSFNCCustomPDFLib) |
| HeaderAlignment | Horizontal alignment of the header text. Default is gtaCenter. (inherited from TTMSFNCCustomPDFLib) |
| HeaderFont | Font used to render the header text. (inherited from TTMSFNCCustomPDFLib) |
| HeaderMargins | Margins around the header area in points. (inherited from TTMSFNCCustomPDFLib) |
| HeaderSize | Height of the header strip in points. (inherited from TTMSFNCCustomPDFLib) |
| Keywords | Keywords metadata written into the PDF document information dictionary. (inherited from TTMSFNCCustomPDFLib) |
| MediaBox | Media box defining the full page extent in points. (inherited from TTMSFNCCustomPDFLib) |
| ModificationDate | Document modification date as the raw PDF date string. SaveDocument stamps this automatically, so an explicit value is overwritten on save. (inherited from TTMSFNCCustomPDFLib) |
| PageCount | Total number of pages in the active document. (inherited from TTMSFNCCustomPDFLib) |
| PageEditing | Indicates whether a graphics page edit is active. (inherited from TTMSFNCCustomPDFLib) |
| PageHeight | Page height in points; effective only when PageSize is psCustom. (inherited from TTMSFNCCustomPDFLib) |
| PageNumber | Controls automatic page numbering placement. Default is pnNone. (inherited from TTMSFNCCustomPDFLib) |
| PageNumberAlignment | Horizontal alignment of the automatic page number text. Default is gtaCenter. (inherited from TTMSFNCCustomPDFLib) |
| PageNumberFont | Font used to render the automatic page number text. (inherited from TTMSFNCCustomPDFLib) |
| PageNumberFormat | Format string for the automatic page number. Use placeholders supported by the underlying PDF engine (e.g. %d for the page index). (inherited from TTMSFNCCustomPDFLib) |
| PageNumberMargins | Margins around the page-number area in points. (inherited from TTMSFNCCustomPDFLib) |
| PageNumberSize | Height of the page-number strip in points. (inherited from TTMSFNCCustomPDFLib) |
| PageOrientation | Page orientation. Default is poPortrait. (inherited from TTMSFNCCustomPDFLib) |
| PageSize | Standard page size preset. Default is psLetter. Set to psCustom and assign PageWidth/PageHeight for a non-standard size. (inherited from TTMSFNCCustomPDFLib) |
| PageWidth | Page width in points; effective only when PageSize is psCustom. (inherited from TTMSFNCCustomPDFLib) |
| Producer | Document producer. Read and written on the opened document; the generator sets its own value, so writing this while generating has no effect. (inherited from TTMSFNCCustomPDFLib) |
| Subject | Subject metadata written into the PDF document information dictionary. (inherited from TTMSFNCCustomPDFLib) |
| Title | Title metadata written into the PDF document information dictionary. (inherited from TTMSFNCCustomPDFLib) |
| TrimBox | Trim box indicating the intended finished page size in points. (inherited from TTMSFNCCustomPDFLib) |
| Version | Returns the component version string. (inherited from TTMSFNCCustomPDFLib) |
Methods
| Name | Description |
|---|---|
| AddPage | Appends one page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| AddPages | Appends all pages from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| AppendDocument | Appends every page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| AppendPageFrom | Appends one page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| BeginDocument | Starts a new PDF document, optionally writing output directly to a file. (inherited from TTMSFNCCustomPDFLib) |
| BeginPageEdit | Starts a graphics overlay edit on a zero-based page of the opened PDF. (inherited from TTMSFNCCustomPDFLib) |
| CancelPageEdit | Discards the active page edit without changing the opened PDF. (inherited from TTMSFNCCustomPDFLib) |
| CloseDocument | Closes the open generation or editing document without saving. (inherited from TTMSFNCCustomPDFLib) |
| DeletePage | Deletes one zero-based page. A document must retain at least one page. (inherited from TTMSFNCCustomPDFLib) |
| DeletePages | Deletes the selected zero-based pages. (inherited from TTMSFNCCustomPDFLib) |
| DuplicatePage | Duplicates one page at the requested position, or appends it when -1. (inherited from TTMSFNCCustomPDFLib) |
| DuplicatePages | Duplicates selected pages at the requested position, or appends them when -1. (inherited from TTMSFNCCustomPDFLib) |
| EndDocument | Finalises the document and returns its content as a memory stream. (inherited from TTMSFNCCustomPDFLib) |
| EndPageEdit | Applies the active page edit to the opened PDF. (inherited from TTMSFNCCustomPDFLib) |
| ExtractPage | Returns a new in-memory PDF containing the selected pages. (inherited from TTMSFNCCustomPDFLib) |
| ExtractPages | Returns a new in-memory PDF containing the selected pages. (inherited from TTMSFNCCustomPDFLib) |
| GetDocumentPageContent | Returns the decoded content stream of a zero-based page of the opened PDF. (inherited from TTMSFNCCustomPDFLib) |
| GetDocumentPageInfo | Returns the size and normalized rotation of a zero-based page. (inherited from TTMSFNCCustomPDFLib) |
| GetDocumentPageText | Returns the text drawn on a zero-based page of the opened PDF, one line per text line. (inherited from TTMSFNCCustomPDFLib) |
| GetFooterRect | Returns the bounding rectangle of the footer area on the current page, in points. (inherited from TTMSFNCCustomPDFLib) |
| GetHeaderRect | Returns the bounding rectangle of the header area on the current page, in points. (inherited from TTMSFNCCustomPDFLib) |
| GetPageCount | Returns the total number of pages in the active document. (inherited from TTMSFNCCustomPDFLib) |
| GetPageIndex | Returns the zero-based index of the currently active page. (inherited from TTMSFNCCustomPDFLib) |
| GetPageNumberRect | Returns the bounding rectangle of the automatic page-number area on the current page, in points. (inherited from TTMSFNCCustomPDFLib) |
| Graphics | Returns the graphics interface for drawing on the current page. (inherited from TTMSFNCCustomPDFLib) |
| InsertDocument | Inserts every page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| InsertPage | Inserts one page from another PDF file before a destination page. (inherited from TTMSFNCCustomPDFLib) |
| InsertPageFrom | Inserts one page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| InsertPages | Inserts all pages from another PDF file before a destination page. (inherited from TTMSFNCCustomPDFLib) |
| IsDocumentOpened | Returns whether a generated or structurally parsed document is open. (inherited from TTMSFNCCustomPDFLib) |
| IsPageEditing | Returns whether a page edit is active. (inherited from TTMSFNCCustomPDFLib) |
| MergeDocument | Merges all pages from another PDF at the requested position, or appends them when -1. (inherited from TTMSFNCCustomPDFLib) |
| MovePage | Moves one page to a zero-based final position. (inherited from TTMSFNCCustomPDFLib) |
| MovePages | Moves selected pages, preserving their supplied order, to a final position. (inherited from TTMSFNCCustomPDFLib) |
| NewPage | Appends a new blank page to the document and makes it the current drawing target. (inherited from TTMSFNCCustomPDFLib) |
| OpenDocument | Opens and parses an existing PDF from a file for structural editing. (inherited from TTMSFNCCustomPDFLib) |
| ReplacePage | Replaces a page with one page from another PDF file. (inherited from TTMSFNCCustomPDFLib) |
| RotatePage | Rotates one page clockwise by a multiple of 90 degrees. (inherited from TTMSFNCCustomPDFLib) |
| RotatePages | Rotates selected pages clockwise by a multiple of 90 degrees. (inherited from TTMSFNCCustomPDFLib) |
| SaveDocument | Saves the structurally edited document to a file. (inherited from TTMSFNCCustomPDFLib) |
Events
| Name | Description |
|---|---|
| OnAfterDrawFooter | Fires after the footer has been drawn on a page; allows overlay drawing. (inherited from TTMSFNCCustomPDFLib) |
| OnAfterDrawHeader | Fires after the header has been drawn on a page; allows overlay drawing. (inherited from TTMSFNCCustomPDFLib) |
| OnAfterDrawPageNumber | Fires after the automatic page number has been drawn; allows overlay drawing. (inherited from TTMSFNCCustomPDFLib) |
| OnBeforeDrawFooter | Fires before the footer is drawn on a page; allows custom rendering or suppression. (inherited from TTMSFNCCustomPDFLib) |
| OnBeforeDrawHeader | Fires before the header is drawn on a page; allows custom rendering or suppression. (inherited from TTMSFNCCustomPDFLib) |
| OnBeforeDrawPageNumber | Fires before the automatic page number is drawn; allows custom rendering or suppression. (inherited from TTMSFNCCustomPDFLib) |
| OnNewPageStarted | Fires when a new page is started via NewPage. (inherited from TTMSFNCCustomPDFLib) |