It may be that those viewers can't create the appearance as Acrobat does. You
may create it with iText but you'll have to do it yourself.
Paulo
----- Original Message -----
From: Rob
To: itext-questions@lists.sourceforge.net
Sent: Saturday, January 14, 2012 11:49 AM
Subject: Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux
It now appears that other annotation types are also not displaying in Ubuntu
viewers.
Here's some code I've written that creates a file called pdf.test. It writes
'TEST' in capitals and then adds a large diagonal line
(PdfAnnotation.createLine) next to it.
Ubuntu viewers are displaying only the text.
Can someone please confirm whether they see both the text (TEST) and the
diagonal line on Ubuntu or other Linux Distro. Thanks.
import java.io.*;
import com.itextpdf.text.pdf.*;
import com.itextpdf.text.*;
public class test
{
public static void main(String arg[])throws Exception
{
Document document=new Document();
PdfWriter writer = PdfWriter.getInstance(document,new
FileOutputStream("test.pdf"));
document.open();
document.add(new Paragraph("TEST"));
Rectangle rect = new Rectangle(119.0f,579.0f,354.0f,778.0f);
PdfAnnotation annotation = PdfAnnotation.createLine(writer, rect, "",
120.0f, 580.0f, 353.0f, 777.0f);
writer.addAnnotation(annotation);
document.close();
}
}
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/createInk-not-displaying-in-PDF-on-Ubuntu-Linux-tp4292565p4294645.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php