protection

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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