Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffPolicy ¶
type DiffPolicy interface { // ReviewFile should check the revisions of the old and new parsers // and evaluate the differences between the revisions. // Each implementation of this interface must decide // how to handle cases where there are multiple revisions between the old and new revisions. ReviewFile(_bfa *_db.PdfParser, _gf *_db.PdfParser, _ef *MDPParameters) (*DiffResults, error) }
DiffPolicy interface for comparing two revisions of the Pdf document.
func NewDefaultDiffPolicy ¶
func NewDefaultDiffPolicy() DiffPolicy
type DiffResult ¶
DiffResult describes the warning or the error for the DiffPolicy results.
func (*DiffResult) String ¶
func (_gbc *DiffResult) String() string
String returns the state of the warning.
type DiffResults ¶
type DiffResults struct { Warnings []*DiffResult Errors []*DiffResult }
DiffResults describes the results of the DiffPolicy.
func (*DiffResults) IsPermitted ¶
func (_bea *DiffResults) IsPermitted() bool
IsPermitted returns true if changes permitted.
type DocMDPPermission ¶
type DocMDPPermission int64
DocMDPPermission is values for set up access permissions for DocMDP. (Section 12.8.2.2, Table 254 - Entries in a signature dictionary p. 471 in PDF32000_2008).
const ( NoRestrictions DocMDPPermission = 0 NoChanges DocMDPPermission = 1 FillForms DocMDPPermission = 2 FillFormsAndAnnots DocMDPPermission = 3 )
type MDPParameters ¶
type MDPParameters struct{ DocMDPLevel DocMDPPermission }
MDPParameters describes parameters for the MDP checks (now only DocMDP).
Click to show internal directories.
Click to hide internal directories.