Provides information specific to document images.
public class CodecsDocumentImageInfo
Public Class CodecsDocumentImageInfo
public sealed class CodecsDocumentImageInfo
@interface LTCodecsDocumentImageInfo : NSObject
public class CodecsDocumentImageInfo
function Leadtools.Codecs.CodecsDocumentImageInfo()
public ref class CodecsDocumentImageInfo
LEADTOOLS provides support for loading a document as a raster image. Document formats such as PDF, XPS, DOCX/DOC, PPTX/PPT, XLSS/XLS, RTF and Text do not contain physical width, height or resolution. It is up to the loader (in this case, the RasterCodecs object) to specify the transformation from logical coordinates to physical pixels through a process called rasterization. For more information, refer to CodecsRasterizeDocumentLoadOptions.
The CodecsDocumentImageInfo class contains properties that specify the original document logical size on disk. This can be useful when calculating the rasterization parameters based on your application viewing needs. The CodecsDocumentImageInfo class contains the following members:
Member | Description |
---|---|
IsDocumentFile |
true if the image file or stream passed to RasterCodecs.GetInformation or RasterCodecs.GetInformationAsync was a document file such as PDF or XPS and the other members of CodecsDocumentImageInfo are valid. false, otherwise. |
PageWidth |
The original width of the document page in Unit |
PageHeight |
The original height of the document page in Unit |
Unit |
The unit for PageWidth and PageHeight |
These values specify the original size of the document on disk regardless of the settings of current document rasterization. The CodecsImageInfo.Width, CodecsImageInfo.Height, CodecsImageInfo.XResolution and CodecsImageInfo.YResolution contains the size of the final rasterized document in physical units.
The original document format is returned as usual in CodecsImageInfo.Format.
The CodecsDocumentImageInfo instance is returned in the CodecsImageInfo.Document property of the CodecsImageInfo object returned by all the RasterCodecs.GetInformation or RasterCodecs.GetInformationAsync methods.
For an example, refer to CodecsRasterizeDocumentLoadOptions.
Products |
Support |
Feedback: CodecsDocumentImageInfo Class - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.