Leonard is right (sorry for not having been specific enough), it is about optional content. Actually it was not the PDF reference leading me to this observation, but I have noticed this options (always,never,when visible) working with one of my envelope PDFs created from scratch and opened in Acrobat Pro 7. The reader can not alter this options, but the Professional edition can. I guess it should be a change from boolean to integer in the parameter type. Infact it is not directly the PdfContentByte (that was not exact in my previous message), but the PdfLayer.setPrint() method which takes as a second parameter boolean (hence limited to two different values) for describing whether the optional content is intended for use in printing.
helasz > Yes, this is all about optional content... > > Leonard > > On Dec 17, 2008, at 6:11 AM, 1T3XT info wrote: > > > helasz <at> gportal.hu wrote: > >> Hi All, > >> > >> I have noticed that from Acrobat 7 it is possible to set some > >> properties > >> of a layer (printable, exportable) to "when visible". > > > > Please give us the page number of the PDF Reference where this is > > explained. > > > >> The relative setting > >> in PdfContentByte is boolean, hence permits only "never" and > >> "always" (I > >> am referring to iText 2.1.4 snapshot). Is there a chance to change > >> this so > >> that it may be possible to create layers that prints only when > >> visible (of > >> course respecting the setting of the version of PDF to be created)? > >> > >> [I did for instance create an envelope, my address is always the > >> same, so > >> I want the most frequently used destination addresses to appear in > >> separate layers, and have just one envelope PDF instead of many] > > > > It's not clear to me what you mean with the above description. > > Are you by any chance talking about Optional Content? > > http://1t3xt.info/examples/results/in_action/chapter12 /optional_content.pdf > http://1t3xt.info/examples/results/in_action/chapter12/action.pdf ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
