Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public class PdfDocument : IDisposable, ICloneable
Public Class PdfDocument Implements IDisposable, ICloneable
public ref class PdfDocument : IDisposable, ICloneable
type PdfDocument = class interface IDisposable interface ICloneable end
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| PdfDocument()()()() | Initializes a new instance of the PdfDocument class | |
| PdfDocument(array<Byte>[]()[][]) |
Initializes a new instance of the class.
| |
| PdfDocument(Stream) |
Initializes a new instance of the class.
| |
| PdfDocument(String) | Initializes a new instance of the PdfDocument class | |
| PdfDocument(PdfConformanceLevel) | Obsolete.
Setting up the Pdf docuement standard,but Pdf/A2A standards are not suppored
| |
| PdfDocument(array<Byte>[]()[][], String) |
Initializes a new instance of the class.
| |
| PdfDocument(Stream, String) |
Initializes a new instance.
| |
| PdfDocument(String, String) |
Initializes a new instance of the class.
| |
| AfterOpenAction |
Gets or sets the action to execute when the document is opened.
| |
| AfterPrintAction |
Gets or sets the action to be performed after the document is printed.
| |
| AfterSaveAction |
Gets or sets the jave script action to be performed after the document is saved.
| |
| AllowCreateForm |
Get or Set Allow Create Form.
| |
| AppendPage()()()() | ||
| AppendPage(PdfDocument) | ||
| Attachments |
Gets the collection of document attachments displayed on a PDF page.
| |
| BeforeCloseAction |
Gets or sets the action to be performed before the document is closed.
| |
| BeforePrintAction |
Gets or sets the action to be performed before the document is printed.
| |
| BeforeSaveAction |
Gets or sets the java script action to be performed before the document is saved.
| |
| Bookmarks |
Gets the bookmarks.
| |
| ClearCustomFontsFolders()()()() |
Clear the path of the folder where the custom font is located.
| |
| Clone()()()() |
Creates a new object that is a copy of the current instance.
| |
| Close()()()() |
Closes the document.
| |
| Collection |
The pdf collections.
| |
| ColorSpace |
Gets or sets the color space for page that will be created.
| |
| CompressionLevel |
Gets or sets the desired level of stream compression.
| |
| Conformance |
Get document PdfConformanceLevel
| |
| ConvertOptions |
Set some options when do convert operation.
| |
| CreateBooklet(String, Single, Single, Boolean) | ||
| CreateBooklet(String, Single, Single, Boolean, DrawPageInBookletEventHandler, DrawPageInBookletEventHandler) | ||
| CustomHandleLandscape | Obsolete.
Gets or set a value indicating handle PageSettings Landscape.
| |
| CustomScaling | Obsolete.
Get or Set Current PDF Document Print PageScaling
| |
| Dispose()()()() |
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
| |
| DocumentInformation |
Gets or sets document's information and properties.
| |
| DocumentPieceInfo |
Gets or set the document piece info.
| |
| EnableFontCache |
Indicates whether enable font cache.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| FileInfo | ||
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| Form |
Gets the loaded form.
| |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetSignatureContent(String) | ||
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HasExtendedRight()()()() |
Indicates whthere contains extended right.
| |
| InsertPage(PdfDocument, PdfPageBase) |
Imports a page.
| |
| InsertPage(PdfDocument, Int32) |
Imports a page.
| |
| InsertPage(PdfDocument, Int32, Int32) |
Imports a page.
| |
| InsertPageRange(PdfDocument, Int32, Int32) |
Imports a page range from a loaded document.
| |
| IsEncrypted |
Indicates the document is encrypted or not.
| |
| IsPasswordProtected(String) |
Whether the file is password protected.
| |
| IsPortfolio |
Indicates the document is a PDF Portfolio or not.
| |
| JavaScripts |
Gets the additional document's actions.
| |
| Layers |
Optional content properties
| |
| LoadFromBytes(array<Byte>[]()[][]) |
Initializes a new instance of the class.
| |
| LoadFromBytes(array<Byte>[]()[][], String) |
Initializes a new instance of the class.
| |
| LoadFromFile(String) |
Initializes a new instance of the class.
| |
| LoadFromFile(String, FileFormat) | ||
| LoadFromFile(String, String) |
Initializes a new instance of the class.
| |
| LoadFromHTML(String, Boolean, PdfPageSettings, PdfHtmlLayoutFormat) |
Load htmlSourceCode to Pdf
| |
| LoadFromHTML(String, Boolean, Boolean, Boolean) |
Load file from disk file.
| |
| LoadFromHTML(String, Boolean, PdfPageSettings, PdfHtmlLayoutFormat, Boolean) |
Load htmlSourceCode to Pdf
| |
| LoadFromHTML(String, Boolean, Boolean, Boolean, PdfPageSettings) |
Load file from disk file.
| |
| LoadFromHTML(String, Boolean, Boolean, Boolean, PdfPageSettings, PdfHtmlLayoutFormat) |
Load file from disk file.
| |
| LoadFromHTML(String, Boolean, Boolean, Boolean, PdfPageSettings, PdfHtmlLayoutFormat, Boolean) |
Load file from disk file.
| |
| LoadFromStream(Stream) |
Initializes a new instance of the class.
| |
| LoadFromStream(Stream, String) |
Initializes a new instance.
| |
| LoadFromSvg(Stream) |
Load a svg stream.
| |
| LoadFromSvg(String) |
Load a svg file.
| |
| LoadFromXPS(array<Byte>[]()[][]) |
Load a xps bytes array.
| |
| LoadFromXPS(Stream) |
Load a xps stream.
| |
| LoadFromXPS(String) |
Load a xps file.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Merge(PdfDocumentBase, array<Object>[]()[][]) |
Merges the specified source documents and return destination document.
| |
| MergeFiles(array<Stream>[]()[][]) |
Merges the PDF documents specified by the Stream.
| |
| MergeFiles(array<String>[]()[][]) | ||
| MergeFiles(array<Stream>[]()[][], Stream) | ||
| MergeFiles(String, String) |
Merges the PDF documents specified by the paths.
| |
| MergeFiles(array<String>[]()[][], String) | ||
| OnBeginPrint(Object, PrintEventArgs) |
Begin Print Page
| |
| OnPrintPage(Object, PrintPageEventArgs) |
Print Page
| |
| PageLabels |
Page labels.
| |
| PageNumber | Obsolete.
Get and Set the PdfPageLabel.
| |
| Pages |
Gets the pages.
| |
| PageScaling | Obsolete.
Get or Set PdfDocument Print PageScaling
| |
| PageSettings | ||
| PDFStandard |
Set,Get Current active pdf object
| |
| Preview(PrintPreviewControl) |
Print preview.
| |
| Print()()()() |
Print document.
| |
| PrintDocument | Obsolete.
Gets a value indicating the System.Drawing.Printing.PrintDocument
| |
| PrinterName | Obsolete.
Gets or sets the name of printer which is on printing PDF document
| |
| PrintFromPage | Obsolete.
Gets or sets the pagenumber which you choose as the start page to printing
| |
| PrintPageMode | Obsolete.
Get or Set PdfDocument pages Print Mode
| |
| PrintSettings |
Get the print settings.
| |
| PrintToPage | Obsolete.
Gets or sets the pagenumber which you choose as the final page to printing.
| |
| RemoveDocumentJavaScript()()()() |
remove document's javaScript
| |
| RemoveExtendedRight()()()() |
Removes the extended right.
| |
| SaveAsImage(Int32) |
Saves PDF document page as image
| |
| SaveAsImage(Int32, PdfImageType) |
Saves PDF document page as image
| |
| SaveAsImage(Int32, Int32, Int32) |
Saves PDF document page as image,Set image Dpi
| |
| SaveAsImage(Int32, PdfImageType, Int32, Int32) |
Saves PDF document page as image,Set PdfImageType and image Dpi
| |
| SaveToFile(String) |
Saves PDF document to file.
| |
| SaveToFile(String, FileFormat) |
Saves PDF document to file.
| |
| SaveToFile(String, Int32, Int32, FileFormat) |
Saves PDF document to PDF or other Format files.
Current only supports save PDF document to SVG and PDF
| |
| SaveToHttpResponse(Stream, HttpContext) | Obsolete. | |
| SaveToHttpResponse(String, HttpResponse, HttpReadType) | Obsolete. | |
| SaveToStream(Stream) |
Save the document to the specified stream.
| |
| SaveToStream(FileFormat) |
Convert the document to streams with the file format.
| |
| SaveToStream(Stream, FileFormat) |
Convert the document to an stream with the file format.
| |
| SaveToStream(Int32, Int32, FileFormat) |
Convert the document to streams with the file format.
| |
| Sections | ||
| Security |
Gets the security parameters of the document.
| |
| SetCustomFontsFolders(String) |
Set the path to the folder where the custom font is located.
| |
| SetPdfToHtmlParameter | Obsolete. | |
| Split(String) |
Splits a PDF file to many PDF files, each of them consists of one page from the source file.
| |
| Split(String, Int32) |
Splits a PDF file to many PDF files, each of them consists of
one page from the source file.
| |
| Tag | ||
| Template |
Gets the template of pdf document
| |
| ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) | |
| UsedFonts |
Gets the fonts which are available in the PDF document.
| |
| UseHighQualityImage | Obsolete.
Indicates whether to use the high qulity image when convert document
| |
| UseInvariantCulture | Obsolete.
Indicates whether use invariant culture mode to convert pdf document.
| |
| UsePsDirectlyForConvert | Obsolete. | |
| VerifySignature(String) | ||
| ViewerPreferences |
Gets or sets a viewer preferences object controlling the way the document is to be
presented on the screen or in print.
| |
| XmpMetaData | Obsolete. |
Inheritance Hierarchy
System..::..Object
Spire.Pdf..::..PdfDocument
Spire.Pdf..::..PdfDocument