InputPdf
Represents an input PDF.
public class InputPdf : IDisposable
Public Class InputPdf
Implements IDisposable
Inheritance: ObjectInputPdf
Implements: IDisposable
Licensing Info
This class is a DynamicPDF Rasterizer 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 Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
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. |
InputPdf(Byte[], String) | Initializes a new instance of the InputPdf class. |
InputPdf(Stream) | Initializes a new instance of the InputPdf class. |
InputPdf(Stream, String) | Initializes a new instance of the InputPdf class. |
InputPdf(String) | Initializes a new instance of the InputPdf class. |
InputPdf(String, String) | Initializes a new instance of the InputPdf class. |
Properties
Attachments | Gets the Attachment Files of PDF document. |
Author | Gets the author property of the PDF document. |
Collection | |
Creator | Gets the creator property of the PDF document. |
Keywords | Gets the keywords property of the PDF document. |
Pages | Gets the InputPdfPageList containing the pages of the input PDF. |
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. |
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) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |