Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Export to PDF from JSF 1.2 - Corrupt FIle

Hello,

We're having a hard time with the export to PDF in a web app using JSF 1.2, the files always come out corrupt. Here are the relevant facts as I know them:

- The same reports export fine from the designer, but bad from a browser.

- CR XI R2, running through Tomcat 6 or JBoss 4+. Same problem with each.

- Browser version doesn't seem to matter.

- Example of internal content of two versions of same report. One good, generated through the Designer, one corrupt, generated through the web browser. It looks like the web version is converting PDF content to safe hex for HTML readers.

stream

x&#156:&#237:}&#247:wU&#213:&#246:&#239:&#223:&#240:~&#250:&#142:7&#222:&#253:Ž&#251:&#253:>&#239:E&#238:

(I replaced the ending ";" with ":" so the characters do not convert prior to you seeing the underling representation.)

stream

xu0153íu2122Ysâ8 u20ACßõ+úa ²U`t yS°'u02DCø ²Cu2020¼Qu0152u201Cõ Ç $µ% ÔÎÌzXgÖUu203AJ t´ÔêOM«m ÀꏨãQu02DC/«*u2020Í 2 y ±< ]óÅ]×"Ðulýµ)

I'm thinking it has something to do with the streaming through a web server that's corrupting the file. This may in tern be due to a JSF 1.2 compatibility issue or some setting of which I'm unaware. I would like to find a solution in XI, but am willing to move up to 2008 is need be.

Any help is appreciated.

Dean

Former Member
Not what you were looking for? View more on this topic or Ask a question