Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
DynaPDF.DeleteTemplateEx
Deletes a template by using an index instead of a template handle.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
DynaPDF
|
5.0 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
MBS( "DynaPDF.DeleteTemplateEx"; PDF; Index )
More
MBS(
"DynaPDF.DeleteTemplateEx"; /* Deletes a template by using an index instead of a template handle. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$Index) /* Index of the template inside the page's array.e.g. 0 */
Less
Parameters
Parameter |
Description |
Example |
PDF |
The PDF reference returned from DynaPDF.New. |
$pdf |
Index |
Index of the template inside the page's array. |
0 |
Result
Returns OK or error.
Description
Deletes a template by using an index instead of a template handle.
The parameter Index represents an index into the array of templates used by the current open page. The number of templates used by a page is returned by the function DynaPDF.GetTemplCount.
It is not easy to identify a specific template, all templates used by a page can be deleted easily, but it is much more complex to delete a specific template if the page contains more than one.
However, if a template contains text, then the functions DynaPDF.EditTemplate and DynaPDF.GetPageText can be used to identify a template, but in most cases it is easier to delete a template and check the file with Acrobat or Reader to determine whether it was the right one.
See also DeleteTemplateEx function in DynaPDF manual.
See also
Created 6th February 2015, last changed 6th February 2015
DynaPDF.DeleteTemplate
-
DynaPDF.DeleteXFAForm
Feedback: Report problem or ask question.