HOOPS Publish Documentation

< Home

< Reference Manual

< File Formats

PROGRAMMING GUIDE

Contents

Programming with HOOPS Publish

Initializing and terminating a session

Handling Errors

Working with a PDF document

Inserting data on a page

Defining 3D

Populating page fields

Getting PDF nodes unique identifiers

Animation API

Handling errors

Most of the HOOPS Publish API functions return an integer that indicates success or failure. A return value of A3D_SUCCESS indicates success, and any negative return value indicates failure. The following example shows one approach for evaluating this returned result:

iRet = A3DPDFDocumentCreateFromPDFFile(in_pdftemplatefile, &amp;pDoc);
if(iRet == A3D_SUCCESS) { ... };

Error codes are detailed in the A3DPDFErrorCodes.h file.