TTMSFNCCustomPDFLib.InsertDocument Method
Inserts every page from another PDF file.
API unit family: TMSFNCPDFLib
Declaring type: TTMSFNCCustomPDFLib
Overloads
Overload 1
Inserts every page from another PDF file.
procedure InsertDocument(const FileName: string; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertDocument(const System::UnicodeString FileName, int InsertAt, const System::UnicodeString Password = System::UnicodeString());
Parameters
| Name | Description |
|---|---|
FileName |
Path of the source PDF. |
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 2
Inserts every page from another PDF stream.
procedure InsertDocument(const FileStream: TStream; InsertAt: Integer; const Password: string = ''); overload;
void __fastcall InsertDocument(System::Classes::TStream* const FileStream, int InsertAt, const System::UnicodeString Password = System::UnicodeString());
Parameters
| Name | Description |
|---|---|
FileStream |
Stream containing the source PDF. |
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. |