Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 257418

Summary: [Improve Report Layout Capabilities] high resolution images are not displaying correctly in pdf
Product: z_Archived Reporter: Mira <mkaloper>
Component: BIRTAssignee: Yu Chen <yChen>
Status: VERIFIED FIXED QA Contact: Tianli Zhang <tzhang>
Severity: enhancement    
Priority: P3 CC: bluesoldier, hustlg, zqian
Version: 2.3.1Keywords: plan
Target Milestone: 2.5.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard: Autoed,G

Description Mira CLA 2008-12-03 14:23:39 EST
In order to fix the problem, there is need to call iText function: scaleToFit, but at the moment this is not possible in birt.
This is how images are created in iText:
For images, iText always uses a resolution of 72 dots per inch (dpi), regardless of the resolution specified inside the image. Suppose you have a paper image that measures 5 x 5 in. You scan this image at 300 dpi. The resulting image is 1500 x 1500 pixels. If you get an iText Image instance, the width and height will be 1500 user units.

Mira
Comment 1 Yu Chen CLA 2009-02-02 22:39:57 EST
Fixed.
Comment 2 Tianli Zhang CLA 2009-02-05 04:40:41 EST
Now we get the DPI from image header first and if image header has no DPI setting or user do not specify Image DPI property on report design, we use 96 dpi by default, mark the bug as verified.