PdfRasterizer

Represents a PDF rasterizer.

public class PdfRasterizer : IDisposable
Public Class PdfRasterizer
    Implements IDisposable

Inheritance: ObjectPdfRasterizer

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.

Imports System
Imports ceTe.DynamicPDF.Rasterizer

Module MyModule

    Sub Main()

        ' Create a PdfRasterizer object.
        Dim rasterizer As PdfRasterizer = New PdfRasterizer("InputPdfFile.pdf")

        ' Save the image.
        rasterizer.DrawToMultiPageTiff("Output.tif", TiffImageFormat.TiffWithLzw, ImageSize.Dpi72)

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

class MyClass
{
    static void Main(string[] args)
    {
        // Create a PdfRasterizer object.
        PdfRasterizer rasterizer = new PdfRasterizer("InputPdfFile.pdf");
            
        // Save the image.
        rasterizer.DrawToMultiPageTiff("Output.tif", TiffImageFormat.TiffWithLzw, ImageSize.Dpi72);
    }
}

Constructors

PdfRasterizer(InputPdf)Initializes a new instance of the PdfRasterizer class.
PdfRasterizer(InputPdf, Int32, Int32)Initializes a new instance of the PdfRasterizer class.
PdfRasterizer(String)Initializes a new instance of the PdfRasterizer class.
PdfRasterizer(String, Int32, Int32)Initializes a new instance of the PdfRasterizer class.

Properties

BackgroundColorGets or sets the background color of the output image. Page contents will be rendered on top of the specified background color.
CachePagesGets or sets the value of CachePages property.
PagesGets the PdfRasterizerPageList containing the pages to rasterize.

Methods

AddLicense(String)Adds a license key.
Append(InputPdf)Append the entire PDF document to the list of pages to rasterize.
Append(InputPdf, Int32, Int32)Append the entire pages of the pdf document to the PdfRasterizerPageList.
Append(String)Append the entire PDF document to the list of pages to rasterize.
Append(String, Int32, Int32)Append the entire PDF document to the list of pages to rasterize.
Dispose()Releases all resources that are used by the current instance of the class.
Draw(ImageFormat, ImageSize)Rasterizes all pages in the page list to an array of byte arrays containing the image data.
Draw(String, ImageFormat, ImageSize)Rasterizes all pages in the page list to an image and stores the image to the given filename.
DrawToMultiPageTiff(Stream, TiffImageFormat, ImageSize)Rasterizes all pages in the page list to a multi-page TIFF image and writes it to the given stream.
DrawToMultiPageTiff(String, TiffImageFormat, ImageSize)Rasterizes all pages in the page list to a multi-page TIFF image and stores it to the given filename.
DrawToMultiPageTiff(TiffImageFormat, ImageSize)Rasterizes all pages in the page list to a multi-page TIFF image and stores it to the given filename.
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)

Events

PdfRasterizer.RasterizerProgressRepresents a progress event to inform about the number of pages rasterized.

See Also

ceTe.DynamicPDF.Rasterizer

In this topic