public static bool IsCopyAllowed(int permissions) { return (PdfWriter.ALLOW_COPY & permissions) == PdfWriter.ALLOW_COPY; }