AnjanaMolugu / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

export PDF but zero bytes and can not open it #355

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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!

Original issue reported on code.google.com by wjjah...@gmail.com on 6 Jun 2013 at 8:09