IDEMPIERE-3104:default report engine is not good for big report
for pdf
This commit is contained in:
parent
b5a0e4f321
commit
ed1e05b0bb
|
@ -74,13 +74,14 @@ public class Document {
|
||||||
document.newPage();
|
document.newPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
final PdfTemplate tp = cb.createTemplate(w, h);
|
PdfTemplate tp = cb.createTemplate(w, h);
|
||||||
final Graphics2D g2 = tp.createGraphics(w, h, mapper);
|
Graphics2D g2 = tp.createGraphics(w, h, mapper);
|
||||||
tp.setWidth(w);
|
tp.setWidth(w);
|
||||||
tp.setHeight(h);
|
tp.setHeight(h);
|
||||||
pageable.getPrintable(page).print(g2, pf, page);
|
pageable.getPrintable(page).print(g2, pf, page);
|
||||||
g2.dispose();
|
g2.dispose();
|
||||||
cb.addTemplate(tp, 0, 0);
|
cb.addTemplate(tp, 0, 0);
|
||||||
|
writer.releaseTemplate(tp);
|
||||||
}
|
}
|
||||||
document.close();
|
document.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue