Macro Language Reference > Macros > Page > tpdel
  
tpdel
Description
Removes the specified number of pages from the document, starting with the current page.
Syntax
tpdel num_pages:n? all_pages:o?
tpdel
[no parameter]
Delete the current page. If this is the last page of the document, PTC ALD will then automatically move to the previous page.
num_pages
Deletes the current page. If this is the last page of the document, PTC ALD will then automatically move to the previous page.
all_pages
Deletes all pages.
0
Deactivates delete all pages option for a document.
1
Activates delete all pages option for a document.
* 
The traditional way to complete this action is to save the file as a .3f file with at least a single page. Once all pages have been deleted, this first page of this template file must be created by selecting Document Preferences > Preformat Stream and including a <?page> command inside this stream.
Additional Information
The contents of frames are not deleted during this action: only details of the page layout (e.g all frames on the page) and any special page size information is deleted.
Related Links