DynaPDF Manual - Page 321

Previous Page 320   Index   Next Page 322

Function Reference
Page 321 of 839
while (actCount > 0)
{
pdfDeleteActionFromObjEx(pdf, otBookmark, objHandle, 0);
--actCount;
}
// Now, we want to delete all actions except JavaScript actions from the
// object.
SI32 i, actCount, actType;
actCount = pdfGetObjActionCount(pdf, otPage, 2); // Page 2
for (i = 0; i < actCount; i++)
{
// Check whether an error occurred
if ((actType = pdfGetActionTypeEx(pdf, otPage, 2, i)) < 0) break;
if (actType != (SI32)atJavaScript)
{
pdfDeleteActionFromObjEx(pdf, otPage, objHandle, i);
break;
}
}
DeleteAltFontList
Syntax:
LBOOL pdfDeleteAltFontList(
const PPDF* IPDF, // Instance pointer
SI32 Handle)
// List handle or -1 to delete all lists
The function deletes an alternate font list that was created by CreateAltFontList(). If the parameter
Handle was set to -1 all available lists will be deleted.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DeleteAnnotation
Syntax:
SI32 pdfDeleteAnnotation(
const PPDF* IPDF, // Instance pointer
UI32 AHandle)
// Annotation handle
This function deletes an annotation. The parameter Handle must be a valid annotation handle.
Annotations are global objects. To delete specific annotations of a PDF file use the functions
GetAnnotCount(), GetAnnotType() and DeleteAnnotation() (see example below).
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Example (C++):
// This example deletes all web links contained in the document
using namespace DynaPDF;
 

Previous topic: DeleteActionFromObj, DeleteActionFromObjEx

Next topic: DeleteAnnotationFromPage, DeleteAppEvents