PDF emitter specification 1.4=>1.5 ? [message #536834] |
Mon, 31 May 2010 07:59 |
Eclipse User |
|
|
|
Originally posted by: no.no.no
Hi,
we re using BIRT to create our reports. We noticed, with
since the latest version of BIRT, that generated PDF files
are now PDF 1.5 instead 1.4.
We are using the java pdf-renderer library to show reports.
But this library only supports the 1.4 specification.
Is there a way to configure BIRT to generate 1.4 instead of 1.5
pdf files ?
Dennis
|
|
|
Re: PDF emitter specification 1.4=>1.5 ? [message #537129 is a reply to message #536834] |
Tue, 01 June 2010 12:12 |
Eclipse User |
|
|
|
Originally posted by: no.no.no
Dennis Schladebeck wrote:
> Hi,
>
> we re using BIRT to create our reports. We noticed, with
> since the latest version of BIRT, that generated PDF files
> are now PDF 1.5 instead 1.4.
>
> We are using the java pdf-renderer library to show reports.
> But this library only supports the 1.4 specification.
>
> Is there a way to configure BIRT to generate 1.4 instead of 1.5
> pdf files ?
>
>
> Dennis
Ok, i found out what caused the change to PDF specification 1.5. I answer
to my own post because there might be others running into the same problem.
It is in the file PDFPageDevice.java in the BIRT pdf emitter, in the constructor
....
writer = PdfWriter.getInstance( doc, new BufferedOutputStream(output ) );
//writer.setFullCompression( );
....
The method setFullCompression causes IText to set the minimum PDF level from 1.4 to 1.5.
I just removed the line for our runtime. Now PDF files are again 1.4, but slightly bigger.
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.02172 seconds