PdfDocument
Represents a Pdf document.
public class PdfDocument : IDisposable
Public Class PdfDocument
Implements IDisposable
Inheritance: ObjectPdfDocument
Implements: IDisposable
Licensing Info
This class is a DynamicPDF Viewer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Viewer selected.
- A DynamicPDF Viewer for .NET v3.X Developer license.
Examples
This example demonstrates how to load a PDF file in PdfViewer control using PdfDocument .Imports System
Imports System.Windows.Forms
Imports ceTe.DynamicPDF.Viewer
Public Class Form1
Inherits System.Windows.Forms.Form
Private MyPdfViewer As PdfViewer
Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
Me.MyPdfViewer = New PdfViewer()
Me.Controls.Add(MyPdfViewer)
End Sub
Shared Sub Main()
Application.Run(New Form1())
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' Load and Open the document in Viewer.
Dim MyDocument As New PdfDocument("C:\MyDocument.pdf")
MyPdfViewer.Open(MyDocument)
End Sub
End Class
using System;
using System.Windows.Forms;
using ceTe.DynamicPDF.Viewer;
namespace DynamicPDFViewerDemo
{
public class Form1 : Form
{
private ceTe.DynamicPDF.Viewer.PdfViewer pdfViewer;
public Form1()
{
InitializeComponent();
this.Load += new EventHandler(Form1_Load);
}
private void InitializeComponent()
{
this.pdfViewer = new PdfViewer();
this.Controls.Add(pdfViewer);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void Form1_Load(object sender, EventArgs e)
{
// Load and Open the document in Viewer.
PdfDocument document = new PdfDocument(@"C:\MyDocument.pdf");
pdfViewer.Open(document);
}
}
}
Constructors
PdfDocument(Byte[]) | Initializes a new instance of the PdfDocument class. |
PdfDocument(Byte[], String) | Initializes a new instance of the PdfDocument class. |
PdfDocument(Stream) | Initializes a new instance of the PdfDocument class. |
PdfDocument(Stream, String) | Initializes a new instance of the PdfDocument class. |
PdfDocument(String) | Initializes a new instance of the PdfDocument class. |
PdfDocument(String, String) | Initializes a new instance of the PdfDocument class. |
Properties
Author | Gets the author property of the PDF document. |
Bookmarks | Gets the collection of bookmarks present in the PDF document. |
Creator | Gets the creator property of the PDF document. |
InitialPage | Gets the initial page to be displayed. |
Keywords | Gets the keywords property of the PDF document. |
PageCount | Gets the page count PDF document. |
PageMode | Gets the initial page mode of the document. |
Permissions | Gets the Permission information of the document. |
Producer | Gets the producer property of the PDF document. |
Subject | Gets the subject property of the PDF document. |
Title | Gets the title property of the PDF document. |
VisibleNavigationPane | Gets the initial navigation pane of the document. |
ZoomMode | Gets the initial zoom mode of the document. |
Methods
Dispose() | |
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetPage(Int32) | Gets the PdfPage which contains page details like width and height. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |