pdfGetOutlineTitle

Get the text associated with an outline node.
char *pdfGetOutlineTitle(PDFViewerHandle viewer, PDFOutlineHandle outline, int *length)
This function retrieves the text associated with an outline entry. pdfGetOutlineTitle returns a pointer to the title string and sets *length to its length in bytes.

The returned text is in the current text encoding (see pdfSetTextEncoding).

The caller is responsible for calling pdfFreeMemory on the returned string.

C:
char *title; int titleLen; ... if (outline) { title = pdfGetOutlineTitle(viewer, outline, &titleLen); printf("%s\n", title); pdfFreeMemory(title); }
pdfGetOutlineNumChildren
pdfGetOutlineChild
pdfFreeMemory
pdfSetTextEncoding