Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-17 Thread Rob
Realised that the co-ordinates had to be re-written to adjust for the relative position inherited from the rectangle. All fine now. Thanks again chaps! -- View this message in context: http://itext-general.2136553.n4.nabble.com/createInk-not-displaying-in-PDF-on-Ubuntu-Linux-tp4292565p4304070.ht

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-17 Thread Rob
Leonard Rosenthol-3 wrote > > Use CurveTo instead :). > Ok, Thanks to Leonard and Paulo for all the advice its all done and looking good :) I thought I'd make a Template for the appearance as originally advised by Paulo and see if I could keep the annotation instead of writing directly on the

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-17 Thread Leonard Rosenthol
Use CurveTo instead :). However, you will have to determine the curvatures yourself. On 1/17/12 3:01 AM, "Rob" wrote: > >Paulo Soares-3 wrote >> >> Do you really need an annotation or just something drawn on top of the >> content? >> > >Thanks Paulo, your reply made me focus on redrawing usin

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-17 Thread Rob
Paulo Soares-3 wrote > > Do you really need an annotation or just something drawn on top of the > content? > Thanks Paulo, your reply made me focus on redrawing using PdfContentByte.moveTo and lineTo and I now have the vectors written directly on the document. I would have preferred annotations

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-16 Thread Rob
Paulo Soares-3 wrote > > Do you really need an annotation or just something drawn on top of the > content? > If it's less involved, something drawn on top of the content would be fine. -- View this message in context: http://itext-general.2136553.n4.nabble.com/createInk-not-displaying-in-PDF-

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-16 Thread Leonard Rosenthol
All of the pieces you need are in iText - they are just LOW LEVEL pieces that you will need put together to make this work. You'll need to start by reading and understanding the PDF standard (ISO 32000-1:2008) about exactly what an appearance stream is, how it is used, etc. Then you can use the

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-16 Thread Paulo Soares
Do you really need an annotation or just something drawn on top of the content? Paulo -Original Message- From: Rob [mailto:rafri...@gmail.com] Sent: Monday, January 16, 2012 2:03 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] createInk not displaying in PDF

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-16 Thread Rob
Paulo Soares-3 wrote > > Let's take the Line annotation. The annotation parameters describe the > line. You'll have to create a PdfTemplate with the actual graphic > representation of the line using moveTo(), lineTo() and others. > I have limited experience with appearances in PDF. Initially I

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-15 Thread Paulo Soares
eforge.net Sent: Sunday, January 15, 2012 8:52 PM Subject: Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux Paulo Soares-3 wrote > > It's missing the appearance (the /AP key). Create the annotation in > Acrobat, look at the PDF generated and re

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-15 Thread Rob
Paulo Soares-3 wrote > > It's missing the appearance (the /AP key). Create the annotation in > Acrobat, look at the PDF generated and reproduce it with iText. I found > out long ago that this is the only reliable way to have them work. > > Paulo > That's great news! I see that the AP key in te

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-15 Thread Paulo Soares
tions@lists.sourceforge.net Sent: Saturday, January 14, 2012 10:04 PM Subject: Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux Paulo Soares-3 wrote > > It probably also has a /A key. It would be helpful to post both PDFs. > Attached http://itext-general.2136553

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-14 Thread Rob
Paulo Soares-3 wrote > > It probably also has a /A key. It would be helpful to post both PDFs. > Attached http://itext-general.2136553.n4.nabble.com/file/n4295782/test.pdf test.pdf http://itext-general.2136553.n4.nabble.com/file/n4295782/test-resaved.pdf test-resaved.pdf -- View this message

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-14 Thread Paulo Soares
It probably also has a /A key. It would be helpful to post both PDFs. Paulo - Original Message - From: Rob To: itext-questions@lists.sourceforge.net Sent: Saturday, January 14, 2012 7:19 PM Subject: Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux It&#

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-14 Thread Rob
It's strange that after resaving the file in something like ezpdf/android or pdf-exchange-viewer/windows the Ubuntu viewers display everything as intended. The only difference I can see from exporting an xfdf file is that the ink tag has been given a 'date' attribute which the initial iText save do

Re: [iText-questions] createInk not displaying in PDF on UbuntuLinux

2012-01-14 Thread Paulo Soares
ubject: 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 t