Appends specified page(s) to the end of the ImageFile object. Page(s) to be appended must come from an existing file. If the page(s) being appended come from an image file of a type different than the active image file, the pages are converted before being appended. After appending page(s), all PageRange objects are invalid. You can optionally display a dialog box that allows the end-user to select a file from which to append page(s).
ImageFileObject.AppendExistingPages [imagefile][, pagenumber][, count][, dialogflag]
The AppendExistingPages method uses these parts:
Part | Description |
imagefile | The image file from which pages will be appended (the source image file). |
pagenumber | The page within the source image file from which to start appending pages. |
count | The number of pages to append. |
dialogflag | If True, displays a dialog box that allows the end-user to select a source image file. The default is False. |
This example appends the first page from the file, BW.TIF.
Img.AppendExistingPages "c:\bw.tif", 1
This example appends three pages from a file selected from a dialog box, starting with the first page.
Img.AppendExistingPages "", 1, 3, True