My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 355: export PDF but zero bytes and can not open it
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by wjjah...@gmail.com, Jun 6, 2013
Hi, all,
I am a Chinese girl. My English is poor but I hope you can know what I say and I expect your reply. 

Recently I find a problem. That is I can download the PDF from the jsp page, but I can not open it. The bytes of the PDF file is zero.

But I have been written the default css file in jmesa.properties, like this.
pdf.css=/pages/common/widgets/jmesa/css/jmesa-pdf.css
pdf.doctype=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

And I also set the export type in the acction file and also the *.jsp file.
tableFacade.setExportTypes(this.getResponse(), ExportType.CSV, ExportType.EXCEL, ExportType.PDF);

<jm:tableFacade
id="tabletag" 
items="${tabledata}"
maxRows="10"
exportTypes="csv,excel,pdf"
maxRowsIncrements="10,20,50"
stateAttr="restore"
var="vo"
limit="${tablelimit}"
>

I hope somebody can see this issue and give me some advice. By the way, I want to solve this proplem as soon as possible. Thank you!

Powered by Google Project Hosting