Skip to main content
Table of Contents

TTMSFNCCustomPDFLib.InsertPages Method

Inserts all pages from another PDF file before a destination page.

API unit family: TMSFNCPDFLib Declaring type: TTMSFNCCustomPDFLib

Overloads

Overload 1

Inserts all pages from another PDF file before a destination page.

GeneratedPascalC++
procedure InsertPages(const FileName: string; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(const System::UnicodeString FileName, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 2

Inserts selected pages from another PDF file before a destination page.

GeneratedPascalC++
procedure InsertPages(const FileName: string; const PageIndices: array of Integer; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(const System::UnicodeString FileName, const int *PageIndices, const System::NativeInt PageIndices_High, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 3

Inserts a consecutive range of pages from another PDF file.

GeneratedPascalC++
procedure InsertPages(const FileName: string; PageIndex, PageCount, InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(const System::UnicodeString FileName, int PageIndex, int PageCount, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 4

Inserts a consecutive range from another PDF file.

GeneratedPascalC++
procedure InsertPages(const FileName: string; const PageRange: TTMSFNCPDFPageRange; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(const System::UnicodeString FileName, const TTMSFNCPDFPageRange &PageRange, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Parameters

Name Description
FileName Path of the source PDF.
PageRange First source page and number of consecutive pages to insert.
InsertAt Zero-based position before which the pages are inserted.
Password Password used to open the source PDF, or an empty string when it is not encrypted.

Overload 5

Inserts all pages from another PDF stream before a destination page.

GeneratedPascalC++
procedure InsertPages(const FileStream: TStream; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(System::Classes::TStream* const FileStream, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 6

Inserts selected pages from another PDF stream before a destination page.

GeneratedPascalC++
procedure InsertPages(const FileStream: TStream; const PageIndices: array of Integer; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(System::Classes::TStream* const FileStream, const int *PageIndices, const System::NativeInt PageIndices_High, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 7

Inserts a consecutive range of pages from another PDF stream.

GeneratedPascalC++
procedure InsertPages(const FileStream: TStream; PageIndex, PageCount, InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(System::Classes::TStream* const FileStream, int PageIndex, int PageCount, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Overload 8

Inserts a consecutive range from another PDF stream.

GeneratedPascalC++
procedure InsertPages(const FileStream: TStream; const PageRange: TTMSFNCPDFPageRange; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPages(System::Classes::TStream* const FileStream, const TTMSFNCPDFPageRange &PageRange, int InsertAt, const System::UnicodeString Password = System::UnicodeString());

Parameters

Name Description
FileStream Stream containing the source PDF.
PageRange First source page and number of consecutive pages to insert.
InsertAt Zero-based position before which the pages are inserted.
Password Password used to open the source PDF, or an empty string when it is not encrypted.