TTMSFNCPDFLib.InsertPageFrom Method
Inserts one page from another PDF file.
API unit family: TMSFNCPDFLib
Declaring type: TTMSFNCPDFLib
Inherited from: TTMSFNCCustomPDFLib
Overloads
Overload 1
Inserts one page from another PDF file.
procedure InsertPageFrom(const FileName: string; PageIndex, InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPageFrom(const System::UnicodeString FileName, int PageIndex, int InsertAt, const System::UnicodeString Password = System::UnicodeString());
Parameters
| Name | Description |
|---|---|
FileName |
Path of the source PDF. |
PageIndex |
Zero-based source page index. |
InsertAt |
Zero-based position before which the page is inserted. |
Password |
Password used to open the source PDF, or an empty string when it is not encrypted. |
Overload 2
Inserts one page from another PDF stream.
procedure InsertPageFrom(const FileStream: TStream; PageIndex, InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertPageFrom(System::Classes::TStream* const FileStream, int PageIndex, int InsertAt, const System::UnicodeString Password = System::UnicodeString());
Parameters
| Name | Description |
|---|---|
FileStream |
Stream containing the source PDF. |
PageIndex |
Zero-based source page index. |
InsertAt |
Zero-based position before which the page is inserted. |
Password |
Password used to open the source PDF, or an empty string when it is not encrypted. |