PDA

View Full Version : Advanced PDF creation for Questionary Overview



Niels Mathiesen
29-Jun-2010, 05:44 AM
In our Webapplication we use to generate reports as PDF and stream them to the browser.
Until now we have used VPE for generating pdf with the starzen library.

We need to create a advanced PDF report with internal links (a table of contents) as well as pdf bookmarks (navigation on left side of advanced pdf files).
An example (blankcrf.pdf) is attached for more clarity.

Is it possible with Visual Report Writer to create such bookmarks and internal links when exporting to pdf?
Has anyone made experiances with such pdf?


best regards
Niels Mathiesen
Nicolas Gerig

Peter van Mil
29-Jun-2010, 06:20 AM
I don't have experience with it, but VPE Professional supports bookmarks. The External_Function's are defined in the VPE Library.



// Bold and Italic styles will work only with PDF 1.4, activate it:
VpeSetPDFVersion(hDoc, VPE_PDF_ACROBAT_5);

// Output some text on the current page:
VpePrint(hDoc, 1, 1, "Introduction");

// Set the style for newly added bookmarks to bold, italic, open:
VpeSetBookmarkStyle(hDoc, VBOOKMARK_STYLE_BOLD + VBOOKMARK_STYLE_ITALIC + VBOOKMARK_STYLE_OPEN);

// Set the destination type for newly added bookmarks:
VpeSetBookmarkDestination(hDoc, VBOOKMARK_DEST_FIT, 0, 0, 0, 0, 1);

// Add a new bookmark to the top-level of the hierachy:
VpeHandle ParentBookmark = VpeAddBookmark(hDoc, NULL, "Introduction");