PdfFileEx Class
Definition
Namespace: Xfinium.Pdf.Core
The PdfFileEx class extends the PdfFile class with file update capabilities.
Inheritance: Object → PdfFile → PdfFileEx
Remarks
The PdfFileEx class allows to load the entire PDF file and perform changes but without the overhead addded by PdfFixedDocument class. The updated file can be saved back to file or stream.
Constructors
| Name | Description |
|---|---|
| PdfFileEx(String,String) | Initializes a new PdfFileEx object from a PDF file. |
| PdfFileEx(Stream,String) | Initializes a new PdfFileEx object from a stream. |
Properties
| Name | Description |
|---|---|
| PageCount | Gets the number of pages. (inherited from PdfFile) |
| SecurityHandler | Gets the file security handler. (inherited from PdfFile) |
Methods
| Name | Description |
|---|---|
| ExtractDocumentInformation | Extracts the document information from the PDF files. (inherited from PdfFile) |
| ExtractFileAttachments | Extracts the file attachments from the PDF file. (inherited from PdfFile) |
| ExtractJavaScriptFragments | Extracts the JavaScript code from the PDF file. (inherited from PdfFile) |
| ExtractNamedDestinations | Extracts the named destinations from the PDF file. (inherited from PdfFile) |
| ExtractOutlines | Extracts the outlines from the PDF file. (inherited from PdfFile) |
| ExtractPage | Extracts a page from the PDF file. (inherited from PdfFile) |
| ExtractPageContent | Extracts the content of a PDF page. (inherited from PdfFile) |
| ExtractPageInfo | Extracts the page information from the PDF file. (inherited from PdfFile) |
| ExtractPageOptionalContentGroup | Extracts the content of an optional content group. (inherited from PdfFile) |
| ExtractPageOptionalContentGroupNames | Extracts the names of the optional content groups defined on the page. (inherited from PdfFile) |
| ExtractPages | Extracts a page from the PDF file. (inherited from PdfFile) |
| ExtractXmpMetadata | Extracts the XMP metadata from the PDF file. (inherited from PdfFile) |
| FlattenFormFields | Flattens the form fields in the file. |
| GetCosObjectByNumber | Gets the specified COS object. (inherited from PdfFile) |
| GetCosObjectCount | Gets the total number of COS objects in the PDF file. (inherited from PdfFile) |
| GetPageCosDictionary | Gets the COS dictionary representing the specified page. |
| GetPageGraphics | Gets the page graphics for the specified page. |
| GetPageNumberForFieldWidget | Gets the number of the page that includes the specified field widget. |
| GetPositionForFieldWidget | Gets the position on the page for the specified field widget. |
| Save | Saves the PDF file to disk. |
| SetFieldValue | Sets the given field with the specified value. |
| SetFormFillOptions | Sets the options for filling form fields. |