public static bool IsAssemblyAllowed(int permissions) { return (PdfWriter.ALLOW_ASSEMBLY & permissions) == PdfWriter.ALLOW_ASSEMBLY; }