Atalasoft.dotImage.PdfRasterizer Send comments on this topic.
PdfDecoder Class
See Also  Members   Example 
Atalasoft.dotImage.PdfRasterizer Assembly > Atalasoft.Imaging.Codec.Pdf Namespace : PdfDecoder Class




A MultiFramedImageDecoder used to read PDF pages as images from a Stream.

Syntax

Visual Basic (Declaration) 
<LicenseProviderAttribute(Atalasoft.Licensing.AtalaLicenseProvider)>
Public Class PdfDecoder 
   Inherits MultiFramedImageDecoder
Visual Basic (Usage)Copy Code
Dim instance As PdfDecoder
C# 
[LicenseProviderAttribute(Atalasoft.Licensing.AtalaLicenseProvider)]
public class PdfDecoder : MultiFramedImageDecoder 
Managed Extensions for C++ 
[LicenseProviderAttribute(Atalasoft.Licensing.AtalaLicenseProvider)]
public __gc class PdfDecoder : public MultiFramedImageDecoder 
C++/CLI 
[LicenseProviderAttribute(Atalasoft.Licensing.AtalaLicenseProvider)]
public ref class PdfDecoder : public MultiFramedImageDecoder 

Example

This example adds the PdfDecoder to the Decoders Collection, and opens a document into a Workspace.
C#Copy Code
using Atalasoft.Imaging;
using Atalasoft.Imaging.Codec;
using Atalasoft.Imaging.Codec.Pdf;
...
PdfDecoder pdf =
new PdfDecoder();
pdf.Resolution = 150;
RegisteredDecoders.Decoders.Add(pdf);
Workspace myWorkspace =
new Workspace();
myWorkspace.Open(
"document.pdf");
Visual BasicCopy Code
Imports Atalasoft.Imaging
Imports Atalasoft.Imaging.Codec
Imports Atalasoft.Imaging.Codec.Pdf
...
Dim pdf As PdfDecoder = New PdfDecoder()
pdf.Resolution = 150
RegisteredDecoders.Decoders.Add(pdf)
Dim myWorkspace As Workspace = New Workspace()
myWorkspace.Open("document.pdf");

Remarks

To support reading JPEG2000 and JBIG2 compressed PDF files, you must distribute the Atalasoft.dotImage.Jbig2.dll, Atalasoft.dotImage.Jpeg2000.dll, and AtalaJp2.dll alongside your Atalasoft.dotImage.PdfRasterizer.dll.  However you are not required to distribute these dependencies if you do not wish to support JP2 or JBIG images within PDF files.

Inheritance Hierarchy

System.Object
   Atalasoft.Imaging.Codec.ImageDecoder
      Atalasoft.Imaging.Codec.MultiFramedImageDecoder
         Atalasoft.Imaging.Codec.Pdf.PdfDecoder

Requirements

Namespace: Atalasoft.Imaging.Codec.Pdf

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Atalasoft.dotImage.PdfRasterizer (in Atalasoft.dotImage.PdfRasterizer.dll)

See Also