public static bool IsPrintingAllowed(int permissions) { return (PdfWriter.ALLOW_PRINTING & permissions) == PdfWriter.ALLOW_PRINTING; }