Click or drag to resize
BaseDocument Methods

The BaseDocument type exposes the following members.

Methods
  Name Description
Public method AddPage
Appends a new page to the end of the document. Throw an exception in condition: 1. page type is conflict to the document type.
Public method AddPages
Appends the pages to the end of the document. Throw an exception in condition: 1. page type is conflict to the document type.
Public method AppendDocument
Appends a document off the same type to the end of the original document. Throw an exception in condition: 1. document type is conflict
Public method BurnAnnotation
Burns all annotations to pages in the document.
Public method CacheSearchInfo(String)
Public method CacheSearchInfo(String, Int32, Int32)
Public method Clone
Creates an exact copy of this document object.
Public method ConvertToDocument(DocumentType, Stream)
Converts document to the target file format and saves it into a stream. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, String)
Converts document to the target file format and saves it to a file on the local disk. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, ImageCompress, Stream)
Converts document to the target file format and saves it to stream. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, ImageCompress, String)
Converts document to the target file format and saves it to a file on the local disk. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, Int32, Stream)
Converts document to the target file format with with sepcified zoom value and saves it to stream. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, Int32, String)
Converts document to the target file format with with sepcified zoom value and saves it to a file on the local disk. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, Stream, ImageOutputOption)
Converts document to the target file format and saves it into a stream with special output settings. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToDocument(DocumentType, Single, Stream)
Converts document to the target file format with with sepcified zoom value and saves it to stream. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added. 3: the zoom value is out of 10% ~ 2000%.
Public method ConvertToDocument(DocumentType, Single, String)
Converts document to the target file format with with sepcified zoom value and saves it to a file on the local disk. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added. 3: the zoom value is out of 10% ~ 2000%.
Public method ConvertToDocument(DocumentType, String, ImageOutputOption)
Converts document to the target file format and saves it into a stream with special output settings. Throw an exception in condition: 1: the target document type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToHtml
Converts document to the Html(just only one .html)
Public method ConvertToImages(ImageType, Stream)
Converts document to images with specified type, one image per page, and store each image into a stream. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, ImageOutputOption, Stream)
Converts document to image streams with specified settings by Image Output Options. the image under a local file directory. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid directory or image options. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, Int32, Stream)
Converts document to images with specified type and resolution, one image per page, and store each image into a stream. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, Single, Stream)
Converts document to images with specified type and zoom value, one image per page, and store each image into a stream. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, String, String)
Converts document to images with sepcified type, one image per page, and store the image under a local file directory. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, ImageOutputOption, String, String)
Converts document to images with specified settings by Image Output Options. the image under a local file directory. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid directory or image options. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, Int32, String, String)
Converts document to images with sepcified type and resolution, one image per page, and store the image under a local file directory. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToImages(ImageType, Single, String, String)
Converts document to images with sepcified type and zoom value, one image per page, and store the image under a local file directory. Throw an exception in condition: 1. the required assembly has not been added. 2. invalid resolution or zoom value input. Default: zoom value = 1, resolution = 96 dpi.
Public method ConvertToVectorImages(ContextType, String, String, RelativeType)
Converts document to the target type file format with sepcified file name and saves it to a file on the local disk. Throw an exception in condition: 1: the target context type has not been developed yet. 2: the required assembly has not been added.
Public method ConvertToVectorImages(ContextType, String, String, RelativeType, RELength, RELength)
This interface should only implement by Excel project Converts document to the target type file format with sepcified file name and saves it to a file on the local disk. Throw an exception in condition: 1: the target context type has not been developed yet. 2: the required assembly has not been added.
Public method DeletePage
Deletes an exist page at the specified page index. Throw an exception in condition: 1. page offset is out of range.
Public method DeletePages
Deletes pages at the specified pageoffset, the number to delete is the pageCount. Throw an exception in condition: 1. page offset is out of range.
Public method Static member DetermineDocumentType(Byte)
Determines the document type of the given data array.
Public method Static member DetermineDocumentType(Stream)
Determines the document type of the given stream.
Public method Dispose
Releases all resources used by this document object.
Public method DuplicatePage
Makes an deep copy of the page with specified index. Throw an exception in condition: 1. page index is out of range.
Public method ExtractPages(Int32, Stream)
Extracts pages from a document, form a new document and save it to a stream.
Public method ExtractPages(Int32, String)
Extracts pages from a document, form a new document and save it to a file.
Public method GetCharsRectangle
Get char boundarys
Public method GetDocumentType
Public method GetFontGlyphWidths
Get this font all glyph widths in pixel
Public method GetHyperlink
Get Hyperlink information in a Document
Public method GetNewPage
Creates an empty page.
Public method GetOutline
Gets document outline.
Public method GetPage
Gets page form the page pool with the specified index.
Public method GetPageCount
Gets the number page contained in the document.
Public method InsertPage
Insert a new page at the specified page offset. Appends the page to the end of the document if the offset is out of range. Throw an exception in condition: 1. page type is conflict to the document type.
Public method InsertPages
Insert the pages at the specified page offset. Appends the pages to the end of the document if the offset is out of range. Throw an exception in condition: 1. page type is conflict to the document type.
Public method Static member IsDICOMDocument
Determins if the stream is not a DICOM file stream.
Public method Static member IsDOCDocument
Determins if the stream is not a Office2003 DOC file stream.
Public method Static member IsDOCXDocument
Determins if the stream is not a Office 2007 or later DOCX file stream.
Public method Static member IsODPDocument
Determine if the stream is an open office presentation.
Public method Static member IsODSDocument
Determine if the stream is an open office spreadsheet.
Public method Static member IsODTDocument
Determine if the stream is an open office text document.
Public method Static member IsOffice2003Document
Determine if the stream is a possible Office 2003 file stream.
Public method Static member IsOfficeDocument
Determins if the stream is a possible Office Open XML file stream.
Public method Static member IsOTPDocument
Determine if the stream is an open office template presentation.
Public method Static member IsOTSDocument
Determine if the stream is an open office template spreadsheet.
Public method Static member IsOTTDocument
Determine if the stream is an open office text template document.
Public method IsPageExist
Determines if the page with specified index exists.
Public method IsPageLoaded
Determins if the page with specified index is loaded with content.
Public method Static member IsPDFDocument
Determines if the stream is not a PDF file stream.
Public method Static member IsPPTDocument
Determins if the stream is not a Office2003 PPT file stream.
Public method Static member IsPPTXDocument
Determins if the stream is not a Office PPTX file stream.
Public method Static member IsRTFDocument
Public method Static member IsTIFFDocument
Determins if the stream is not a TIFF file stream.
Public method Static member IsXLSDocument
Determins if the stream is not a Office 2003 XLS file stream.
Public method Static member IsXLSXDocument
Determins if the stream is not a Office XLSX file stream.
Public method Save
Saves the document to file on the local disk with the given file path.
Public method SaveToBytes
Saves the document to a byte array.
Public method SaveToStream
Saves the doument to the stream.
Public method Static member Search
Public method SetOutline
Sets document outline.
Public method SortPage
Sorts the pages according to the page order. Throw an exception in condition: 1. index error.
Public method SwapTwoPages
Swaps the order of two pages. Throw an exception in condition: 1. index error.
Public method UpdatePage
Updates the old page with new page. Throw an exception in condition: 1. the new page is not in accordance with the document type.
Top
See Also