Skip to main content

InputPdf

Version: 4.0

cete.dynamicpdf.rasterizer.inputpdf

InputPdf​

Represents an input PDF.

public class InputPdf : IDisposable
Public Class InputPdf
Implements IDisposable

Inheritance: Object → InputPdf

Implements: IDisposable

Licensing Info​

This class is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Examples​

This example demonstrates how to rasterize a PDF document to JPEG.

Imports System
Imports ceTe.DynamicPDF.Rasterizer

Module MyModule

Sub Main()

' Create an InputPdf object.
Dim input As InputPdf = New InputPdf("InputPdfFile.pdf")

' Create a PdfRasterizer object.
Dim rasterizer As PdfRasterizer = New PdfRasterizer(input)

' Create a JpegImageFormat object.
Dim jpegImageFormat As JpegImageFormat = New JpegImageFormat(80)

' Save the image.
rasterizer.Draw("Output.jpg", jpegImageFormat, ImageSize.Dpi72)

End Sub
End Module
using System;
using ceTe.DynamicPDF.Rasterizer;

class MyClass
{
static void Main(string[] args)
{
// Create an InputPdf object.
InputPdf input = new InputPdf("InputPdfFile.pdf");

// Create a PdfRasterizer object.
PdfRasterizer rasterizer = new PdfRasterizer(input);

// Create a JpegImageFormat object.
JpegImageFormat jpegImageFormat = new JpegImageFormat(80);

// Save the image.
rasterizer.Draw("Output.jpg", jpegImageFormat,ImageSize.Dpi72);
}
}

Constructors​

InputPdf(Byte[])​

Initializes a new instance of the InputPdf class.

public InputPdf(Byte[] data)
Public Sub New (data As Byte())

Parameters​

Byte array of the input PDF data.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

InputPdf(Byte[], String)​

Initializes a new instance of the InputPdf class.

public InputPdf(Byte[] data, string password)
Public Sub New (data As Byte(), password As String)

Parameters​

Byte array of the input PDF data.

Password to open the PDF file.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

InputPdf(Stream)​

Initializes a new instance of the InputPdf class.

public InputPdf(Stream stream)
Public Sub New (stream As Stream)

Parameters​

Stream containing the PDF data.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

InputPdf(Stream, String)​

Initializes a new instance of the InputPdf class.

public InputPdf(Stream stream, string password)
Public Sub New (stream As Stream, password As String)

Parameters​

Stream containing the PDF data.

Password to open the PDF file.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

InputPdf(String)​

Initializes a new instance of the InputPdf class.

public InputPdf(string filePath)
Public Sub New (filePath As String)

Parameters​

Physical file path of the PDF.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

InputPdf(String, String)​

Initializes a new instance of the InputPdf class.

public InputPdf(string filePath, string password)
Public Sub New (filePath As String, password As String)

Parameters​

Physical file path of the PDF.

Password to open the PDF file.

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Properties​

Attachments​

Gets the Attachment Files of PDF document.

public Attachment[] Attachments { get; }
Public Property Attachments As Attachment[]

Property Value​

Attachment[]

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Author​

Gets the author property of the PDF document.

public string Author { get; }
Public Property Author As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Collection​

public bool Collection { get; }
Public Property Collection As Boolean

Property Value​

Boolean

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Creator​

Gets the creator property of the PDF document.

public string Creator { get; }
Public Property Creator As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Keywords​

Gets the keywords property of the PDF document.

public string Keywords { get; }
Public Property Keywords As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Pages​

Gets the InputPdfPageList containing the pages of the input PDF.

public InputPdfPageList Pages { get; }
Public Property Pages As InputPdfPageList

Property Value​

InputPdfPageList

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Producer​

Gets the producer property of the PDF document.

public string Producer { get; }
Public Property Producer As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Subject​

Gets the subject property of the PDF document.

public string Subject { get; }
Public Property Subject As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Title​

Gets the title property of the PDF document.

public string Title { get; }
Public Property Title As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Methods​

Dispose()​

public void Dispose()
Sub Dispose()

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Rasterizer