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:

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

AuthorGets the author property of the PDF document.
BookmarksGets the collection of bookmarks present in the PDF document.
CreatorGets the creator property of the PDF document.
InitialPageGets the initial page to be displayed.
KeywordsGets the keywords property of the PDF document.
PageCountGets the page count PDF document.
PageModeGets the initial page mode of the document.
PermissionsGets the Permission information of the document.
ProducerGets the producer property of the PDF document.
SubjectGets the subject property of the PDF document.
TitleGets the title property of the PDF document.
VisibleNavigationPaneGets the initial navigation pane of the document.
ZoomModeGets 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)

See Also

ceTe.DynamicPDF.Viewer

In this topic