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 document, that would be great.

Thanks,
SSD.


On Fri, 2008-12-05 at 06:41 -0500, Leonard Rosenthol wrote:
> No, there is not.
> 
> There is a dictionary called OCPropeout thebrties 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 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 wrote:
> >> 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 PieceInfo, you should use some of the lower level API calls.
> >>
> >> Leonard
> >>
> >>
> >> On Dec 4, 2008, at 5:56 PM, Sankha Subhra Dey wrote:
> >>
> >>> 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, could you please  
> >>> post
> >>> it here?
> >>>
> >>> SSD.
> >>>
> >>>
> >>>
> >>> On Thu, 2008-12-04 at 17:46 -0500, Leonard Rosenthol wrote:
> >>>> 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, Sankha Subhra Dey wrote:
> >>>>
> >>>>> 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, Leonard Rosenthol wrote:
> >>>>>> 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:
> >>>>>>>
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> = 
> >>>>>>> = 
> >>>>>>> ================================================================
> >>>>>>> PdfAnnotation pdfAnnotation =
> >>>>>>> PdfAnnotation.createText(stamper.getWriter(), new Rectangle(1,
> >>>>>>> 1, 1,
> >>>>>>> 1),
> >>>>>>> "Comment", pattern, false, null);
> >>>>>>>
> >>>>>>> pdfAnnotation.put(PdfName.F, new
> >>>>>>> PdfNumber(PdfAnnotation.FLAGS_NOVIEW |
> >>>>>>> PdfAnnotation.FLAGS_INVISIBLE | PdfAnnotation.FLAGS_HIDDEN));
> >>>>>>>                       
> >>>>>>> stamper.addAnnotation(pdfAnnotation, 1);
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> =
> >>>>>>> = 
> >>>>>>> = 
> >>>>>>> ================================================================
> >>>>>>>
> >>>>>>> I know this topic has probably been covered before, because I
> >>>>>>> modeled my
> >>>>>>> after something I read in the archives. Could someone tell me
> >>>>>>> what's
> >>>>>>> missing?
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> SSD.
> >>>>>>>
> >>>>>>>
> >>>>>>> -------------------------------------------------------------------------
> >>>>>>> This SF.Net email is sponsored by the Moblin Your Move  
> >>>>>>> Developer's
> >>>>>>> challenge
> >>>>>>> Build the coolest Linux based applications with Moblin SDK & win
> >>>>>>> great prizes
> >>>>>>> Grand prize is a trip for two to an Open Source event anywhere  
> >>>>>>> in
> >>>>>>> the world
> >>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >>>>>>> _______________________________________________
> >>>>>>> iText-questions mailing list
> >>>>>>> iText-questions@lists.sourceforge.net
> >>>>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>>>>>
> >>>>>>> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> ------------------------------------------------------------------------------
> >>>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las  
> >>>>>> Vegas,
> >>>>>> Nevada.
> >>>>>> The future of the web can't happen without you.  Join us at MIX09
> >>>>>> to help
> >>>>>> pave the way to the Next Web now. Learn more and register at
> >>>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>>>>> _______________________________________________
> >>>>>> iText-questions mailing list
> >>>>>> iText-questions@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>>>>
> >>>>>> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>>>>>
> >>>>>
> >>>>>
> >>>>> ------------------------------------------------------------------------------
> >>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las  
> >>>>> Vegas,
> >>>>> Nevada.
> >>>>> The future of the web can't happen without you.  Join us at  
> >>>>> MIX09 to
> >>>>> help
> >>>>> pave the way to the Next Web now. Learn more and register at
> >>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>>>> _______________________________________________
> >>>>> iText-questions mailing list
> >>>>> iText-questions@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>>>
> >>>>> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------------------------
> >>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> >>>> Nevada.
> >>>> The future of the web can't happen without you.  Join us at MIX09
> >>>> to help
> >>>> pave the way to the Next Web now. Learn more and register at
> >>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>>> _______________________________________________
> >>>> iText-questions mailing list
> >>>> iText-questions@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>>
> >>>> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>>>
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> >>> Nevada.
> >>> The future of the web can't happen without you.  Join us at MIX09 to
> >>> help
> >>> pave the way to the Next Web now. Learn more and register at
> >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>> _______________________________________________
> >>> iText-questions mailing list
> >>> iText-questions@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>
> >>> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>>
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,  
> >> Nevada.
> >> The future of the web can't happen without you.  Join us at MIX09  
> >> to help
> >> pave the way to the Next Web now. Learn more and register at
> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >> _______________________________________________
> >> iText-questions mailing list
> >> iText-questions@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>
> >> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,  
> > Nevada.
> > The future of the web can't happen without you.  Join us at MIX09 to  
> > help
> > pave the way to the Next Web now. Learn more and register at
> > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > _______________________________________________
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > Buy the iText book: http://www.1t3xt.com/docs/book.php
> >
> 
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> 


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to