1579202 - How to generate bookmarks when exporting crystal report to PDF using Java SDK?

SAP Knowledge Base Article - Public

1579202 - How to generate bookmarks when exporting crystal report to PDF using Java SDK?

Symptom

How to generate bookmarks when exporting report to PDF using java SDK?

Resolution

Use the following code snippet to generate bookmarks for groups:

ExportOptions exportOptions = new ExportOptions();
 exportOptions.setExportFormatType(ReportExportFormat.PDF);
 PDFExportFormatOptions pdfExportOptions = new PDFExportFormatOptions();
 pdfExportOptions.setCreateBookmarksFromGroupTree(true);
 exportOptions.setFormatOptions(pdfExportOptions);
 ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(exportOptions);

Keywords

generate bookmarks crystal report pdf export java sdk crj ras , KBA , htkba , bisdk , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , How To

Product

Crystal Reports 2008 V1