Re: [iText-questions] iText invisible annotation

2008-12-23 Thread Sankha Subhra Dey
Well where did you get AR9 from? The latest version on Adobe's site takes me to a link for 8.1.3, and the annotation is still visible in that (I had 8.1.2). Am i missing anything here? SSD. On Sun, 2008-12-07 at 11:30 -0500, Sankha Subhra Dey wrote: > I don't know. I have to test this in AR 9.

Re: [iText-questions] iText invisible annotation

2008-12-07 Thread Sankha Subhra Dey
I don't know. I have to test this in AR 9. I'll be sending an update after a couple of weeks. On Sun, 2008-12-07 at 17:20 +0100, 1T3XT info wrote: > Sankha Subhra Dey wrote: > > Thank you. I do have the book, and I did try this, and it didn't work > > (the annotation is still visible in AR 8), ju

Re: [iText-questions] iText invisible annotation

2008-12-07 Thread 1T3XT info
Sankha Subhra Dey wrote: > Thank you. I do have the book, and I did try this, and it didn't work > (the annotation is still visible in AR 8), just like this one didn't > (this was the code I had supplied in my original mail): > > ===

Re: [iText-questions] iText invisible annotation

2008-12-07 Thread Sankha Subhra Dey
Thank you. I do have the book, and I did try this, and it didn't work (the annotation still shows up on AR 8), just like the code I supplied in my first mail didn't (see below). That was the whole reason I posted a question on this forum. == Pdf

Re: [iText-questions] iText invisible annotation

2008-12-07 Thread Sankha Subhra Dey
Thank you. I do have the book, and I did try this, and it didn't work (the annotation is still visible in AR 8), just like this one didn't (this was the code I had supplied in my original mail): === PdfAnnotation pdfAnnotation = PdfAn

Re: [iText-questions] iText invisible annotation

2008-12-07 Thread 1T3XT info
Sankha Subhra Dey wrote: I was looking for a way to add an invisible annotation. The code I wrote isn't working, which I had posted in my original mail. And I was looking for a way to add the information to the Private section in a PDF file. Every mail sent to the mailing list contains this lin

Re: [iText-questions] iText invisible annotation

2008-12-06 Thread Sankha Subhra Dey
No that was a digression :-) What I had said was that I have already hidden the information in OCProperties, and was looking for a way to add an invisible annotation. The code I wrote isn't working, which I had posted in my original mail. And I was looking for a way to add the information to the Pr

Re: [iText-questions] iText invisible annotation

2008-12-06 Thread 1T3XT info
Sankha Subhra Dey wrote: > Yes we are talking about the same thing :P > As I said, OCP = Optional Content Properties = OCProperties. I tend to > shorten it up when referring to it. > > Anyway, if someone could please tell me what's wrong with my invisible > annotation code, or point me to an exa

Re: [iText-questions] iText invisible annotation

2008-12-05 Thread Sankha Subhra Dey
Yes we are talking about the same thing :P As I said, OCP = Optional Content Properties = OCProperties. I tend to shorten it up when referring to it. Anyway, if someone could please tell me what's wrong with my invisible annotation code, or point me to an example to add a Private section to the

Re: [iText-questions] iText invisible annotation

2008-12-05 Thread Leonard Rosenthol
No, there is not. There is a dictionary called OCProperties in the catalog which stores the global list of OCGs. Look at the APIs for getting the catalog, then adding your own dictionaries, strings, etc. Leonard On Dec 4, 2008, at 6:34 PM, Sankha Subhra Dey wrote: > You are correct, but

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Sankha Subhra Dey
You are correct, but there's a dictionary named OCP inside the document catalog, which is what I am using. For using PieceInfo, could you please point to the type of API calls you are referring to? Has anyone tried doing this before? SSD. On Thu, 2008-12-04 at 18:20 -0500, Leonard Rosenthol

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Leonard Rosenthol
The correct term is "Optional Content Group" or OCG. Using a non- visible OCG is certainly an excellent option, provided that you are working with Adobe Reader 6 or later (OCGs were introduced in PDF 1.5) or some other OCG-aware viewer (which Xpdf and Apple's Preview are NOT). To use PieceI

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Sankha Subhra Dey
OCP stands for Optional Content Property (sorry I abbreviated it). It might get displayed in conforming viewers, but I haven't seen that on Adobe Reader, xpdf or Document Viewer. Yes right, but I couldn't find out a way to get a handle to the Private section in PieceInfo. If someone knows of a way

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Sankha Subhra Dey
quot;Comment", pattern, false, null); > > - Original Message - > From: "Sankha Subhra Dey" <[EMAIL PROTECTED]> > To: "Post all your questions about iText here" > > Sent: Thursday, December 04, 2008 3:25 PM > Subject: Re: [iText-questions] iT

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Leonard Rosenthol
I don't know what an OCP section is - so please explain. There are standard places for place private information in a PDF - either at the document or page level. Look at PieceInfo in the PDF Reference. If you want something that a user CAN see - try XMP. Leonard On Dec 4, 2008, at 3:25 PM

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Steve Cole
t;[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Thursday, December 04, 2008 3:25 PM Subject: Re: [iText-questions] iText invisible annotation > I am trying to hide some information in multiple places within a pdf > file. I could store them in the OCP sect

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Sankha Subhra Dey
I am trying to hide some information in multiple places within a pdf file. I could store them in the OCP section (doesn't show up on AR or xpdf), and I also wanted to create an invisible annotation. I tried to store it in the Private section, but I couldn't. SSD On Thu, 2008-12-04 at 15:20 -0500

Re: [iText-questions] iText invisible annotation

2008-12-04 Thread Leonard Rosenthol
Why do you want to do this? Leonard On Dec 4, 2008, at 2:45 AM, Sankha Subhra Dey wrote: > Hi > > I have been (fruitlessly) trying to create an invisible annotation > in a > PDF file from a PdfStamper. I see the annotation in the pdf, but it is > always visible. > > Here is my code: > > = > =

[iText-questions] iText invisible annotation

2008-12-03 Thread Sankha Subhra Dey
Hi I have been (fruitlessly) trying to create an invisible annotation in a PDF file from a PdfStamper. I see the annotation in the pdf, but it is always visible. Here is my code: = PdfAnnotation pdfAnnotation = PdfAnnotatio