←Select platform

GetPageImage Method

Summary

Gets a raster image rendering of a specific page in the document.

Syntax

C#
VB
C++
public RasterImage GetPageImage( 
   DocumentReaderPage page 
) 
  
Public Function GetPageImage( _ 
   ByVal page As Leadtools.Forms.Documentreaders.DocumentReaderPage _ 
) As Leadtools.RasterImage 

Parameters

page
The requested page. Must be an existing page in the DocumentReader.Pages list and cannot be a a null reference.

Return Value

A Leadtools.RasterImage that represents the rendering of the requested page.

Remarks

The size of the resulting Leadtools.RasterImage depends on the size of the page (DocumentReaderPage.PixelWidth and DocumentReaderPage.PixelHeight). The image will also contain the same bits/pixel and resolution set in DocumentReaderPage.BitsPerPixel, DocumentReaderPage.DpiX and DocumentReaderPage.DpiY.

Once the page is rendered as a Leadtools.RasterImage object, you can use this object to perform any other image functionality with LEADTOOLS, such as setting it into a viewer control, image processing, saving to other formats, etc.

To get a thumbnail of any page in a PDF document, use GetThumbnail.

Example

For an example, refer to DocumentImageManager.

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.DocumentReaders Assembly