Results 1 to 2 of 2
Thread: Image Size in PDF
- 02-07-2012, 12:46 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 10
- Rep Power
- 0
Image Size in PDF
Hi All,
I am using ITEXTPDF for creating pdf in java.
I am using following code to display an image.
Image image = Image.getInstance("D:\\logo.jpg");
PdfPTable tHeader = new PdfPTable(1);
tHeader.setTotalWidth(550);
tHeader.setLockedWidth(true);
PdfPCell cell2 = new PdfPCell(image,false);
cell2.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell2.setVerticalAlignment(Element.ALIGN_TOP);
tHeader.addCell(cell2);
But when it displayed on pdf, it does not show the exact size of image. The image size becomes larger. Any suggessions on this ?
Thanks,
Shah.
- 02-07-2012, 03:37 PM #2
Re: Image Size in PDF
1. It's considered bad manners to ask a new question without bothering to reply to responses on an earlier thread.
Jar File Creation
2. BB Code List - Java Programming Forum
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Setting frame size to the size of an image
By Yoruichi in forum AWT / SwingReplies: 5Last Post: 04-22-2009, 04:37 PM -
Image size in java
By Sharath in forum New To JavaReplies: 1Last Post: 04-01-2009, 01:06 PM -
Image size in a JFrame
By nickbeacroft in forum AWT / SwingReplies: 2Last Post: 06-26-2008, 04:08 PM -
How to get Image size in Java
By Java Tip in forum java.awtReplies: 0Last Post: 06-23-2008, 11:23 PM -
how to set an image size
By valery in forum New To JavaReplies: 1Last Post: 08-06-2007, 08:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks