#include<panda/constants.h> #include<panda/functions.h> void panda_traverseobjects (panda_pdf * output, panda_object * startObject, int direction, traverseFunct function);
PANDA INTERNAL. This function traverses the object tree created by panda_addchild() and repeatedly calls the function defined as a callback. The traversal has a direction as defined by: panda_up (bottom up) or panda_down (top down). This call is commonly used by panda_close to call panda_writeobject() and panda_freeobject(). API users might also find it useful, although I wouldn't know why.
#include<panda/constants.h> #include<panda/functions.h> panda_pdf *document; panda_init(); document = panda_open("filename.pdf", "w"); ... create a whole bunch of objects and add them to the tree ... panda_traverseobjects(document, document->catalog, panda_down, panda_writeobject);
Panda is under development by Michael Still (mikal@stillhq.com). All code is Copyright Michael Still 2000 - 2003, and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.