Debenu Quick PDF logo

GetImagePageCount

Image handling, Miscellaneous functions

Description

Returns the number of pages in the specified image file. Most images consist of 1 page, but TIFF images may contain multiple pages.

Syntax

Delphi

function TDebenuPDFLibrary1511.GetImagePageCount(FileName: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::GetImagePageCount(
  FileName As String) As Long

DLL

int DPLGetImagePageCount(int InstanceID, wchar_t * FileName)

Parameters

FileName The name of the image file to analyse.

Return values

0 The image file is invalid or does not exist
Non-zero The number of pages in the specified image

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport