Lorenzaccio wrote: > Hello all, > > I've tried the examples from "iText by Example" that deal with Optional > Content. The PDF is created with layers (the example with toggled layers or > the one with the layer content appearing when zoomed should prove that the > layers are in the background), but the window for controlling the visibility > of the layers (Acrobat Reader) is not present, so the layers cannot be > switched ON/OFF. > > This is valid for all the examples.
That's not true. See for instance: http://1t3xt.be/?X00000c And even if the viewer preference isn't set correctly, you can always open the Layers pane manually. > Do you have any idea why this happens? Set the correct viewer preference. writer.setViewerPreferences(PdfWriter.PageModeUseOC); Also phrase your questions differently ;-) br, Bruno ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ 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
