PDF and image [message #655549] |
Mon, 21 February 2011 12:42  |
Eclipse User |
|
|
|
Hi,
using BIRT 2.6.0 I noticed that a report cotaining a PNG file as logo is
embedded in a PDF which results with a bad quality.
Is it matter of source file (PNG, maybe it's better using a JPG) or it's
a problem related to pdf renderer?
Thank you,
Nicola
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: PDF and image [message #658985 is a reply to message #658908] |
Thu, 10 March 2011 10:44  |
Eclipse User |
|
|
|
Looks good Martin.
Jason
On 3/10/2011 7:19 AM, Martin Schmitz wrote:
> Hello,
>
> I found a solution for my problem. Perhaps I have to say, that I am
> using the default webviewer application.
>
> @Jason: The parameter works fine, but when I think it has to be variable
> depending on the output. When setting the parameter to 300, PDF looks
> fine, but HTLM does not.
>
> So I took the sourcecode of the webviewer and changed the followong in
> the class ParameterAccessor
>
>
> public static Number getDpi(HttpServletRequest request) {
> String dpi = getParameter(request, PARAM_DPI);
> if ("pdf".equalsIgnoreCase(request.getParameter("__format"))) {
> return 300;
> }
> if (dpi == null || dpi.trim().length() <= 0)
> return null;
> return Integer.valueOf(dpi);
>
> }
>
|
|
|
Powered by
FUDForum. Page generated in 0.25773 seconds