Skip to content

T_PDFiumSharp_PdfDocument

ArgusMagnus edited this page Apr 4, 2017 · 3 revisions

PdfDocument Class

Inheritance Hierarchy

System.Object
  PDFiumSharp.Types.NativeWrapper(FPDF_DOCUMENT)
    PDFiumSharp.PdfDocument
Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

public sealed class PdfDocument : NativeWrapper<FPDF_DOCUMENT>

The PdfDocument type exposes the following members.

Constructors

 

Name Description
Public method PdfDocument() Creates a new PdfDocument. Close() must be called in order to free unmanaged resources.
Public method PdfDocument(String, String) Loads a PdfDocument from the file system. Close() must be called in order to free unmanaged resources.
Public method PdfDocument(Stream, Int32, String) Loads a PdfDocument from 'count' bytes read from a stream. Close() must be called in order to free unmanaged resources.
Public method PdfDocument(Byte[], Int32, Int32, String) Loads a PdfDocument from memory. Close() must be called in order to free unmanaged resources.
  Back to Top

Properties

 

Name Description
Public property Bookmarks
Public property Destinations
Public property DuplexType
Public property FileVersion Gets the PDF file version. File version: 14 for 1.4, 15 for 1.5, ...
Public property Handle Handle which can be used with the native PDFium functions. (Inherited from NativeWrapper(T).)
Public property IsDisposed Gets a value indicating whether Dispose() was already called on this instance. (Inherited from NativeWrapper(T).)
Public property PageMode
Public property Pages Gets the pages in the current PdfDocument.
Public property Permissions
Public property PrintCopyCount
Public property PrintPrefersScaling
Public property SecurityHandlerRevision Gets the revision of the security handler.
  Back to Top

Methods

 

Name Description
Public method Close Closes the PdfDocument and frees unmanaged resources.
Public method CopyViewerPreferencesFrom
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method FindBookmark
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetMetaText
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Save(Stream, SaveFlags, Int32) Saves the PdfDocument to a stream.
Public method Save(String, SaveFlags, Int32) Saves the PdfDocument to the file system.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

PDFiumSharp Namespace

Clone this wiki locally