Skip to main content
Table of Contents

TTMSFNCPDFLib.AddPages Method

Appends all pages from another PDF file.

API unit family: TMSFNCPDFLib Declaring type: TTMSFNCPDFLib Inherited from: TTMSFNCCustomPDFLib

Overloads

Overload 1

Appends all pages from another PDF file.

GeneratedPascalC++
procedure AddPages(const FileName: string; const Password: string = ''); overload;
void __fastcall AddPages(const System::UnicodeString FileName, const System::UnicodeString Password = System::UnicodeString());

Overload 2

Appends selected pages from another PDF file.

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

Overload 3

Appends a consecutive range of pages from another PDF file.

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

Overload 4

Appends a consecutive range from another PDF file.

GeneratedPascalC++
procedure AddPages(const FileName: string; const PageRange: TTMSFNCPDFPageRange; const Password: string = ''); overload;
void __fastcall AddPages(const System::UnicodeString FileName, const TTMSFNCPDFPageRange &PageRange, 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 append.
Password Password used to open the source PDF, or an empty string when it is not encrypted.

Overload 5

Appends all pages from another PDF stream.

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

Overload 6

Appends selected pages from another PDF stream.

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

Overload 7

Appends a consecutive range of pages from another PDF stream.

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

Overload 8

Appends a consecutive range from another PDF stream.

GeneratedPascalC++
procedure AddPages(const FileStream: TStream; const PageRange: TTMSFNCPDFPageRange; const Password: string = ''); overload;
void __fastcall AddPages(System::Classes::TStream* const FileStream, const TTMSFNCPDFPageRange &PageRange, 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 append.
Password Password used to open the source PDF, or an empty string when it is not encrypted.