I wondered why nobody else was answering this question. Then I saw it was sent to the wrong address: to ONE and only ONE inbox, instead of to the list. Please make sure you always use the correct address.
On 20/07/2011 16:57, William Bell wrote: > 1. On page 435 of iText in Action 2nd Edition the function > PdfWriter.setViewerPreferenses() is referred to. However, there is no > sign of this function in the 2 DLLs we have downloaded: iTextSharp.dll > and iTextSharp.xtra.dll. Can you please advise? What we call "setters" in Java are often translated to "properties" in C#. Look for a property ViewerPreferences in PdfWriter instead of for a setter. > 2. Assuming that there is a PdfWriter.setViewerPreferences() there is > no mention in the book of an equivalent > PdfReader.getViewerPreferences(). Are we missing something or does > this function not exist? And further, if it is the case this function > does not exist, then are we correct in assuming we will effectively > have to code this ourselves? Viewer preferences are stored in the Catalog (the root object of the PDF). You'll have to examine that dictionary. Note that the method "setViewerPreferences()" which takes an int value is only a shortcut provided by iText. Viewer preferences aren't stored as integers inside a PDF. ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
