DynaPDF Manual - Page 298

Previous Page 297   Index   Next Page 299

Function Reference
Page 298 of 787
DeleteAnnotationFromPage
Syntax:
LBOOL pdfDeleteAnnotationFromPage(
const PPDF* IPDF, // Instance pointer
UI32 PageNum,
// Page number from which to delete the annotation
UI32 Handle)
// Annotation handle
The function deletes an annotation from a page. Typical annotations which are shared among pages
are Watermark and Stamp annotations. PageNum is the page number from which the annotation
should be deleted. The first page is denoted by 1.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DeleteAppEvents
Syntax:
SI32 pdfDeleteAppEvents(
const PPDF* IPDF,
// Instance pointer
LBOOL ApplyEvent,
// Apply the visibility state Event before deletion?
TOCAppEvent Event) // Will be ignored if ApplyEvent is false
The function deletes all application events if any. The function can optionally apply the visibility
state of an event before the application events will be deleted. The new visibility state will be stored
in the PDF file. To apply the visibility state of a specific event without deletion call
ApplyAppEvent() instead.
Return values:
If the function succeeds and if application events were deleted the return value is 1. If the no
application events were defined the return value is 0. If the function fails the return value is a
negative error code.
DeleteBookmark
Syntax:
SI32 pdfDeleteBookmark(
const PPDF* IPDF, // Instance pointer
UI32 ABmk)
// Bookmark handle
This function deletes a bookmark. The parameter ABmk must be a valid bookmark handle. Please
note that this function invalidates all bookmark handles which are numerically greater than ABmk.
DynaPDF supports several functions to find or enumerate bookmarks. It is safe to delete a
bookmark within a search run. See the following functions for further information:
GetBookmarkCount()
 

Previous topic: DeleteAnnotation

Next topic: DeleteEmbeddedFile, DeleteField

Start Chat