LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

GetRasterPdfInfoAsync Method






The input PDF stream.
The 1-based page number.
Gets information for a page in a raster PDF file contained in a stream created with the LEADTOOLS Raster PDF plug in. .NET support WinRT support
Syntax
public IAsyncOperation<CodecsRasterPdfInfo> GetRasterPdfInfoAsync( 
   ILeadStream stream,
   int pageNumber
)
'Declaration
 
Public Function GetRasterPdfInfoAsync( _
   ByVal stream As ILeadStream, _
   ByVal pageNumber As Integer _
) As IAsyncOperation(Of CodecsRasterPdfInfo)
'Usage
 
Dim instance As RasterCodecs
Dim stream As ILeadStream
Dim pageNumber As Integer
Dim value As IAsyncOperation(Of CodecsRasterPdfInfo)
 
value = instance.GetRasterPdfInfoAsync(stream, pageNumber)
public IAsyncOperation<CodecsRasterPdfInfo> GetRasterPdfInfoAsync( 
   ILeadStream stream,
   int pageNumber
)
 function Leadtools.Codecs.RasterCodecs.GetRasterPdfInfoAsync( 
   stream ,
   pageNumber 
)
public:
IAsyncOperation<CodecsRasterPdfInfo>^ GetRasterPdfInfoAsync( 
   ILeadStream^ stream,
   int pageNumber
) 

Parameters

stream
The input PDF stream.
pageNumber
The 1-based page number.

Return Value

When this method completes, it returns an instance of CodecsRasterPdfInfo containing information about the raster PDF page.
Remarks

The various RasterCodecs.GetInformation methods are used to return information about a raster image file on disk or stream. Information such as the format, size, dimension, bits per pixel are returned as members of the CodecsImageInfo object returned from RasterCodecs.GetInformation.

Raster Adobe PDF saved with the various Save(RasterImage,String,RasterImageFormat,Int32) methods (using any of the RasterImageFormat.RasPdfXyz flavors), contain extra information that can be obtained using RasterCodecs.GetRasterPdfInfo. This method returns an instance of CodecsRasterPdfInfo filled with this extra information. Refer to CodecsRasterPdfInfo for more information.

Example
For an example, refer to CodecsRasterPdfInfo.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Implementing PDF Plug in Features

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.