DynaPDF Manual - Page 119

Previous Page 118   Index   Next Page 120

Function Reference
Page 119 of 818
4 supports JavaScript actions only in non-OnMouseUp events. Newer versions support also
predefined action types. However, test your forms with the Acrobat versions that should be
supported - this is the only way to find incompatibilities.
Return values:
If the function succeeds the return value is 1, if the function fails the return value is 0.
AddAnnotToPage
Syntax:
LBOOL pdfAddAnnotToPage(
const PPDF* IPDF, // Instance pointer
UI32 PageNum,
// Page number
UI32 Handle)
// Annotation handle
The function adds an annotation to a page. With exception of PopUp annotations all annotation
types can be drawn on multiple pages. Watermark or Stamp annotations are typical annotations
which can be placed on multiple pages.
Return values:
If the function succeeds the return value is 1, if the function fails the return value is 0.
AddArticle
Syntax:
SI32 pdfAddArticle(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of the Article
double PosY,
// Y-Coordinate of the Article
double Width,
// Width in unscaled units
double Height)
// Height in unscaled units
This function creates a new article and adds it to the currently open article thread that must be
created with CreateArticleThread() beforehand.
Some types of document may contain sequences of content items that are logically connected but
not physically sequential. For example, a news story may begin on the first page of a newsletter and
run over onto one or more non-consecutive interior pages. To represent such sequences of
physically discontinuous but logically related items, a PDF document may define one or more
articles.
The sequential flow of an article is defined by an article thread; the individual content items that
make up the article are called beads on the thread. PDF viewer applications such as Adobe’s
Acrobat provide navigation facilities to allow the user to follow a thread from one bead to the next.
 

Previous topic: AddActionToObj

Next topic: AddBookmark


Start Chat