|
Tutorial - Append Pages |
Top Previous Next |
|
Pages get appended from one PDF document into another using the 'AppendPagesFrom' function by providing file to be extracted from and the range of pages that needs to be extracted. This will be appended to the loaded PDF document.
For appending pages: 1) Load the file to be appended. 2) Pass the file name and page range to be extracted to 'AppendPagesFrom' function. This will extracted pages from the file and append it to the loaded PDF file. 3) This appends the pages to the loaded PDF document.
[VB]
'Load the Document PDFDoc.LoadFromFile (InputFile1) 'Appen Pages from 1 to 5 from InputFile2 PDFDoc.AppendPagesFrom InputFile2, "1-5" 'Save the Document PDFDoc.SaveToFile (OutputFile)
[VC++]
//Load the Document PDFDoc.LoadFromFile (InputFile1); //Append Pages from 1 To 5 from InputFile2 PDFDoc.AppendPagesFrom(InputFile2,"1-5"); //Save the Document PDFDoc.SaveToFile (OutputFile);
[CS]
//Load the Document PDFDoc.LoadFromFile (InputFile1); //Appen Pages from 1 To 5 from InputFile2 PDFDoc.AppendPagesFrom(InputFile2,"1-5"); //Save the Document PDFDoc.SaveToFile (OutputFile);
|