protection

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package protection contains all protection types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryption

type Encryption byte

Encryption selects the PDF standard security handler encryption algorithm.

const (
	// RC4128 keeps the legacy RC4 protection behavior and remains the default
	// for compatibility until a future major release changes it.
	RC4128 Encryption = iota
	// AES128 selects AESV2, the PDF standard security handler revision 4
	// algorithm using AES-128-CBC for strings and streams.
	AES128
)

type Type

type Type byte

Type is a representation of a protection type.

const (
	// None represents no protection.
	None Type = 0
	// Print represents a print protection.
	Print Type = 4
	// Modify represents modification protection.
	Modify Type = 8
	// Copy represents copy protection.
	Copy Type = 16
	// AnnotForms represents annotation and form protection.
	AnnotForms Type = 32
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL