 
            | Accusoft.PdfXpressSdk Namespace : Document Class | 
The following tables list the members exposed by Document.
| Name | Description | |
|---|---|---|
|  | Document Constructor | Overloaded. Creates a PDF document from an existing PDF file (on disk or in memory) or creates a new PDF. | 
| Name | Description | |
|---|---|---|
|  | DocumentMetadata | Gets a reference to the DocumentMetadata object of a Document. The DocumentMetadata object represents the document's metadata, which includes general information, such as the document's title, author, and creation and modification dates. | 
|  | IsPortfolio | Read-only, specifies whether the document is a portfolio. | 
|  | Linearized | The PDF document is linearized. | 
|  | PageCount | The number of pages in the PDF document | 
|  | Version | Specifies the version of the PDF standard the document adheres to. | 
| Name | Description | |
|---|---|---|
|  | AddAttachment | Adds the attachment to the document. | 
|  | AddBookmarkChild | Overloaded. Adds a new child bookmark context to the parent bookmark context. | 
|  | AddBookmarkSibling | Overloaded. Adds a new next sibling bookmark context to the parent bookmark context. | 
|  | AddHyperlink | Adds a hyperlink to the specified page. | 
|  | AddImage | Overloaded. Adds raw or compressed image data to an existing page in a PDF document. | 
|  | AddSecurity | Adds Security to a Document that is not secure. | 
|  | AddText | Adds text to a document using specified formatting and rendering data. | 
|  | AddWatermark | Adds a watermark into the current Document from another Document. | 
|  | ConvertToPdfA | Apply ISO 19005-1:2005 restrictions and prohibitions to convert a candidate PDF document to PDF/A. If the candidate PDF document violates a restriction or prohibition, PDF Xpress may attempt to apply an automatic fix-up to satisfy compliance. If a detected violation is not fixed, then the conversion process will raise an exception that describes the nature of the failure. PDF Xpress PDF/A conversion support is limited to new image-only PDFs. Image-only PDFs lack searchable text content, but require only honoring a subset of PDF/A-1b compliance rules. Consequently, converting a candidate PDF document to PDF/A-1b is guaranteed to fail if any of the following is true— The candidate was opened from the file system or from memory. PDF/A compliance is not guaranteed if changes are made to the PDF document after conversion has succeeded. Refer to ISO 19005-1:2005 Document management — Electronic document file format for long-term preservation — Part 1: Use of PDF 1.4 (PDF/A-1) Specify a well-formed ICC profile using either a filename or a local memory buffer. The ICC profile filename will be ignored if a local memory buffer is provided. | 
|  | CopyPageTo | Designed to make passing image data between different Accusoft components easier, this method makes a copy of the page's image data (rendering) and gives the new image data to another object which can be defined in a different Accusoft assembly. When finished, both this object and the destination object will contain separate copies of the same image data. | 
|  | CreateBookmark | This method creates a BookmarkContext object destined to be added to the document. | 
|  | CreatePage | Adds a new empty page to a PDF document. | 
|  | CreateThumbnail | Overloaded. Adds raw or compressed image data as a thumbnail to an existing page in a PDF document. | 
|  | DeleteAnnotation | Removes the annotation at the specified annotation index from the specified page. | 
|  | DeleteAttachment | Deletes the attachment specified by the index. | 
|  | DeleteHyperlink | Removes the hyperlink at the specified index from the specified page. | 
|  | DeletePage | Deletes an existing page by the given page number, from a PDF document. | 
|  | DeleteThumbnail | Deletes the thumbnail image for the selected page, if one exists. | 
|  | DeleteWatermark | Deletes a watermark(s) from the Document's page. | 
|  | Dispose | Dispose implemented for IDisposable interface. | 
|  | ExportXfdf | Exports PDF Annotations to XFDF text data. | 
|  | ExtractImages | Extracts the images on the page specified by the page number using the options specified. | 
|  | ExtractPages | Extracts pages from the document according to the page extraction options. | 
|  | ExtractThumbnail | Extracts the thumbnail image on the page specified by the page number. | 
|  | GetAnnotationCount | Reports the number of PDF Annotations on a specific page in the PDF document. | 
|  | GetAnnotationName | Reports the name of a PDF Annotation. | 
|  | GetAnnotationSubtype | Gets the subtype of the annotation at the specified annotation index from the specified page. | 
|  | GetAttachment | Returns the attachment at the specified index. | 
|  | GetAttachmentCount | Returns the number of attachments in the document. | 
|  | GetBookmarkChild | Gets the child bookmark context of the given parent bookmark context. | 
|  | GetBookmarkRoot | Gets the root bookmark context. | 
|  | GetBookmarkSibling | Gets the next sibling bookmark context of the parent bookmark context. | 
|  | GetExtractedImage | Gets the extracted image from previously calling ExtractImages(). | 
|  | GetHyperlink | Gets the hyperlink at the specified page and index. | 
|  | GetHyperlinkCount | Returns the number of hyperlinks on the specified page. | 
|  | GetInfo | Overloaded. Gets information about an existing page in a PDF document. | 
|  | GetSecurity | Gets the Security settings of the Document if it's secure, using the specified Owner Password. | 
|  | GetTextFinder | Gets a TextFinder object for a page of the current document. | 
|  | ImportXfdf | Imports XFDF text data to PDF Annotations. | 
|  | InsertPages | Inserts pages into the current Document from another Document. | 
|  | IsStrictlyDeviceGray | Determines if the page strictly uses the color space DeviceGray for visible graphics. | 
|  | MovePage | Moves a page from one index location in the Document to another. | 
|  | RemoveBookmark | Removes the given bookmark context. | 
|  | RemoveSecurity | Removes the Security of a Document that is secure. | 
|  | RenderPageToBitmap | Overloaded. Generates a bitmap of an existing page using the current screen resolution. | 
|  | RenderPageToDeviceContext | Draw a PDF page to a Windows GDI+ device context. The PdfXpress event PageRendering is raised periodically while drawing. The PdfXpress event PageRendered is raised upon successful completion. | 
|  | RenderPageToDib | Overloaded. Renders a page to a Device-Independent-Bitmap at screen resolution. | 
|  | RenderPageToEps | Renders a page to Encapsulated PostScript text. | 
|  | RenderPageToImageData | Renders a page to an ImageDataInfo object. | 
|  | Save | Save a PDF document containing at least one page to a PDF file | 
|  | SaveToBuffer | Saves a PDF Document into a new local memory buffer. | 
|  | SaveToHandle | Saves a PDF Document into a new global memory buffer, accessed using a global handle. | 
|  | SetRotationOfPage | Sets the rotation of the specified page. | 
| Name | Description | |
|---|---|---|
|  | CancelInsertPages | Event which is fired after each page is inserted to allow the user to cancel the current process. | 
|  | ContinueExport | Called to interrupt an export operation. | 
|  | ContinueImport | Called to interrupt an import operation. | 
|  | ExportedAnnotation | An event that is raised for each PDF annotation successfully exported. |