Skip to main content
Table of Contents

TTMSFNCCustomPDFLib.ExtractPages Method

Returns a new in-memory PDF containing the selected pages.

API unit family: TMSFNCPDFLib Declaring type: TTMSFNCCustomPDFLib

Overloads

Overload 1

Returns a new in-memory PDF containing the selected pages.

GeneratedPascalC++
function ExtractPages(const PageIndices: array of Integer): TMemoryStream; overload;
System::Classes::TMemoryStream* __fastcall ExtractPages(const int *PageIndices, const System::NativeInt PageIndices_High);

Parameters

Name Description
PageIndices Zero-based page indices, emitted in the supplied order.

Returns

A caller-owned memory stream positioned at the start of the extracted PDF.

Overload 2

Returns a new in-memory PDF containing a consecutive page range.

GeneratedPascalC++
function ExtractPages(const PageRange: TTMSFNCPDFPageRange): TMemoryStream; overload;
System::Classes::TMemoryStream* __fastcall ExtractPages(const TTMSFNCPDFPageRange &PageRange);

Parameters

Name Description
PageRange First page and number of consecutive pages to extract.

Returns

A caller-owned memory stream positioned at the start of the extracted PDF.