PDF / web viewer PDF export differences
Hi, After Microsoft decided to break the BIRT web viewer with IE 11 we decided to implement a render to PDF option that opens in a SWT browser window. Since then we have worked out a fix for the web viewer under IE 11 involving plugins and magic, its not always successful however .
Having implemented it we have noticed that there are a number of differences in output between the web viewer exported PDF and rending it directly to PDF:
1) Table of contents is not written to the PDF. The web viewer table of contents will export along with the PDF, but when I go straight to PDF there is no table of contents.
2) Line breaks aren't preserved in text objects when going directly to PDF, when exporting from web viewer they are preserved.
3) Certain currency symbols won't appear in the direct to PDF method, they will appear when exported from the web viewer.
There are obviously differences in the two processes (programatically and UI), I've tried running the direct to PDF job using as both a IRunAndRenderTask, and as separate run and render tasks. I've searched for options to configure, I've browsed the source code I can't seem to find any kind of option that would account for the TOC being missing or the other behaviors.
Obviously there's something done when first viewing the report in the web viewer that causes these differences. Another frustrating part is that I can even see the TOC entries via renderTask.getTOCTree() output to the console however the emitter isn't including any of it within the final PDF.
Has anyone got any information that can help me isolate and replicate the differences between the two processes?