PdfDecoder Class |
Namespace: Atalasoft.Imaging.Codec.Pdf
The PdfDecoder type exposes the following members.
Name | Description | |
---|---|---|
PdfDecoder | Initializes a new instance of a PdfDecoder. |
Name | Description | |
---|---|---|
Password | The password for the PDF or null for no password | |
PathToResources | ||
RenderSettings | Used to indicate how to render the PDF. For example, whether to show Annotations and which ones to show.
| |
Resolution | Gets or sets the resolution at which to render a PDF page. | |
SmoothingMode | Obsolete. Gets or sets a value specifying whether and how smoothing (antialiasing) is applied to lines, curves, and
edges of filled areas and text. | |
SupportedImageType | Obsolete. Returns the ImageType that the implemented decoder class supports. (Inherited from ImageDecoder.) | |
TileThreshold | Gets or sets the threshold value in pixels. When the width or height of the expected image exceeds
the threshold value, the image is rendered in parts (tiles) and merged into a single image.
Default: 31000 pixels. |
Name | Description | |
---|---|---|
Dispose | Releases all resources managed by this object. | |
Dispose(Boolean) | Releases the unmanaged resources used by the PdfDecoder and optionally releases the managed resources | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDefaultResolution | ||
GetFrameCount | Returns the number of pages in a PDF document. (Overrides MultiFramedImageDecoderGetFrameCount(Stream).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetImageInfo(Stream) | Returns information about the first page of the PDF document. (Overrides ImageDecoderGetImageInfo(Stream).) | |
GetImageInfo(Stream, Int32) | Returns information about the given page of the PDF document. (Overrides MultiFramedImageDecoderGetImageInfo(Stream, Int32).) | |
GetTextDocument |
Creates the text document.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValidFormat | Returns true if and only if the specified Stream contains a PDF document. (Overrides ImageDecoderIsValidFormat(Stream).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RasterizeScaledRegion(Stream, RectangleF, SizeF, ProgressEventHandler) | ||
RasterizeScaledRegion(Stream, Int32, RectangleF, SizeF, ProgressEventHandler) | ||
Read(Stream, ProgressEventHandler) | Read a PDF document and return the first page as an AtalaImage. (Overrides ImageDecoderRead(Stream, ProgressEventHandler).) | |
Read(Stream, Int32, ProgressEventHandler) | Read a PDF document and return the given page as an AtalaImage. (Overrides MultiFramedImageDecoderRead(Stream, Int32, ProgressEventHandler).) | |
ReadRegion | Reads a rectangle region from the PDF. This uses memory proportional to the size of the region.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
MAXRESOLUTION | The maximum resolution that PDF's can be read at. | |
MINRESOLUTION | The minimum resolution that PDF's can be read at. |
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");
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");
<Atalasoft>
<PdfDecoder PdfiumLocation="C:\Folder\Subfolder\SubSubFolder"/>
<!-- Components sections -->
...
</Atalasoft>
<Atalasoft>
<PdfDecoder PdfiumLocation="..\Another\Sub\Folder"/>
<!-- Components sections -->
...
</Atalasoft>