Skip to contents

Returns the user subset of the document's permission bitmask (the bits that apply to a user who opened the PDF without the owner password). Same shape as pdf_doc_permissions() — a named logical vector with one entry per permission flag — but with owner-only operations cleared. Wraps FPDF_GetDocUserPermissions.

Usage

pdf_doc_user_permissions(doc)

Arguments

doc

A pdfium_doc from pdf_doc_open(), or a character path.

Value

Named logical vector. Same names as pdf_doc_permissions().

Details

For unencrypted PDFs, every flag is TRUE.