  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | pdf document permissions | pdf document permissions 2007-11-13 - By Bruno Waes
Back In the "iText in action" book i read about permissions and the static method PdfEncryptor.getPermissionsVerbose(int permissions); thats a nice method for logging but not really useful in code.
Is there a reason why this functionality is not available directly for programming ? I created a utils class that has methods like these, but i would think this is useful for everyone using iText.
public static boolean isAllowPrinting(int permissions) { return (PdfWriter.AllowPrinting & permissions) == PdfWriter.AllowPrinting); }
In the "iText in action" book i read about permissions and the static method PdfEncryptor.getPermissionsVerbose(int permissions); <br>thats a nice method for logging but not really useful in code.<br><br>Is there a reason why this functionality is not available directly for programming ? <br>I created a utils class that has methods like these, but i would think this is useful for everyone using iText.<br><br> public static boolean isAllowPrinting(int permissions) {<br> return (PdfWriter.AllowPrinting & permissions) == PdfWriter.AllowPrinting);<br> } <br> <br><br>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |