[ 1981944 ] Report Loading Takes time
This commit is contained in:
parent
1c792b2e0d
commit
c7cf233ed0
|
@ -37,6 +37,10 @@ import com.lowagie.text.pdf.PdfWriter;
|
||||||
*/
|
*/
|
||||||
public class Document {
|
public class Document {
|
||||||
|
|
||||||
|
static {
|
||||||
|
FontFactory.registerDirectories();
|
||||||
|
}
|
||||||
|
|
||||||
private static void writePDF(Pageable pageable, OutputStream output)
|
private static void writePDF(Pageable pageable, OutputStream output)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
@ -50,7 +54,6 @@ public class Document {
|
||||||
writer.setPdfVersion(PdfWriter.VERSION_1_2);
|
writer.setPdfVersion(PdfWriter.VERSION_1_2);
|
||||||
document.open();
|
document.open();
|
||||||
final DefaultFontMapper mapper = new DefaultFontMapper();
|
final DefaultFontMapper mapper = new DefaultFontMapper();
|
||||||
FontFactory.registerDirectories();
|
|
||||||
final float w = (float) pf.getWidth();
|
final float w = (float) pf.getWidth();
|
||||||
final float h = (float) pf.getHeight();
|
final float h = (float) pf.getHeight();
|
||||||
final PdfContentByte cb = writer.getDirectContent();
|
final PdfContentByte cb = writer.getDirectContent();
|
||||||
|
|
Loading…
Reference in New Issue