|
Re: PDF and image [message #655565 is a reply to message #655549] |
Mon, 21 February 2011 18:48 |
|
Nicola,
There is an advanced property for the report name Image DPI. Have you
tried to change it? Try a value of 300
Jason
On 2/21/2011 12:42 PM, nicola wrote:
> 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 #658757 is a reply to message #658746] |
Wed, 09 March 2011 17:07 |
|
Add &__dpi=300 to the url for the viewer. Make sure it is not already
in the url. This will set the appcontext chart resolution variable.
Jason
On 3/9/2011 11:26 AM, Martin Schmitz wrote:
> I have the same problem. I understand the problem with the images, but
> how to improve the quality of charts in pdf. As I understand they are
> not touched by the
> <property name="imageDPI">300</property>
>
> property. I am using the default web viewer.
|
|
|
Re: PDF and image [message #658760 is a reply to message #658757] |
Wed, 09 March 2011 17:12 |
|
You can also add this to the beforeRender script
reportContext.getAppContext().put("CHART_RESOLUTION", 300);
Jason
On 3/9/2011 12:07 PM, Jason Weathersby wrote:
> Add &__dpi=300 to the url for the viewer. Make sure it is not already
> in the url. This will set the appcontext chart resolution variable.
>
> Jason
>
> On 3/9/2011 11:26 AM, Martin Schmitz wrote:
>> I have the same problem. I understand the problem with the images, but
>> how to improve the quality of charts in pdf. As I understand they are
>> not touched by the
>> <property name="imageDPI">300</property>
>>
>> property. I am using the default web viewer.
>
|
|
|
|
Re: PDF and image [message #658778 is a reply to message #658766] |
Wed, 09 March 2011 18:13 |
|
The url parmaeter __dpi
Jason
On 3/9/2011 12:54 PM, Martin Schmitz wrote:
> Hi Jason,
>
> thanks for your response. I will try that out tomorrow. Isn't there a
> general parameter in the webviewer app, that can be set. Best would be a
> parameter in a property file or web.xml.
>
> Thanks
> Martin
|
|
|
|
|
Re: PDF and image [message #658985 is a reply to message #658908] |
Thu, 10 March 2011 15:44 |
|
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.03289 seconds