I'm having a couple of issues with trying to add an image to an RTF document.
- The first issue is that the image in the rft document has been scaled down from the
original size. This problem only exists with .jpg images not .png images.
- The second issue is that the image.setAlignment(Image.RIGHT) method is being ignored
in the rtf document.
The odd thing here is that the PDF File looks great, but the rtf document does not
contain those changes.
Are these known bugs? If so does anyone know a work around? I have included the
following code snippets:
....
Document document = new Document();
try {
RtfWriter rftWriter = RtfWriter.getInstance(document, new
FileOutputStream("test.rtf"));
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("test.pdf"));
document.open();
....
....
String imageName = "test.jpg";
Image image = Image.getInstance(imageName);
image.setAlignment(Image.RIGHT);
document.add(image);
....
....
Platform
JDK = j2sdk1.4.1.02
OS = XP
Word = 200k
Any help will be great.
Thanks
Rafael Salazar
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions