Thanks for the reply.
I was actually able to fix the problem by using drawXObject with reduced width and height! :-)
Thanks.

Hendrik

Am 20.01.2013 01:26, schrieb Eliot Kimber:
I've just been through this.

The resolution is a function of the number of pixels in the image you're
placing, so if it the resolution is bad in the PDF it means the image is low
resolution--there's nothing you can do to fix that except to place it in a
smaller area on the page. But if the image has a low pixel count I would
expect to be small on the page if you're using drawImage as drawImage() uses
the pixel size of the image to determine the PDF width (at least that's the
result I was getting for the images I was placing).

You can use drawXObject() and specify the optional width and height
parameters to specify the width in the PDF the image will be given.

How are you creating the image?

Cheers,

Eliot

On 1/19/13 2:07 PM, "Hendrik Ewerlin"<[email protected]>  wrote:

Hi everybody,

I'm rendering an image using the PDPageContentStream.drawImage method.
Unfortunately the image resolution is very bad so it shows big pixels.
How can I increase the resolution?

Thanks in advance...
Hendrik Ewerlin

Reply via email to