Kumar, Sunil wrote:
I was able to create a pdf file in a servlet using fop successfully
but when i set content type to application/pdf and write the pdf content to
response object the pdf
doesn't show up in the browser ( instead an empty page is shown)
A blank IEx window usually indicates that the content
length was not set. The FOP example servlet buffers
the PDF in a ByteArrayOutputStream in order to get the
PDF lengths and to set the content-length header.
Refer to the code provided with the FOP distribution.
J.Pietschmann