pdfaid

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = _g.NewNamespace("\u0070\u0064\u0066\u0061\u0069\u0064", "\u0068\u0074\u0074p\u003a\u002f\u002f\u0077w\u0077\u002e\u0061\u0069\u0069\u006d\u002eo\u0072\u0067\u002f\u0070\u0064\u0066\u0061\u002f\u006e\u0073\u002f\u0069\u0064\u002f", NewModel)
View Source
var Schema = _gf.Schema{NamespaceURI: Namespace.URI, Prefix: Namespace.Name, Schema: "\u0050D\u0046/\u0041\u0020\u0049\u0044\u0020\u0053\u0063\u0068\u0065\u006d\u0061", Property: []_gf.Property{{Category: _gf.PropertyCategoryInternal, Description: "\u0050\u0061\u0072\u0074 o\u0066\u0020\u0050\u0044\u0046\u002f\u0041\u0020\u0073\u0074\u0061\u006e\u0064\u0061r\u0064", Name: "\u0070\u0061\u0072\u0074", ValueType: _gf.ValueTypeNameInteger}, {Category: _gf.PropertyCategoryInternal, Description: "A\u006d\u0065\u006e\u0064\u006d\u0065n\u0074\u0020\u006f\u0066\u0020\u0050\u0044\u0046\u002fA\u0020\u0073\u0074a\u006ed\u0061\u0072\u0064", Name: "\u0061\u006d\u0064", ValueType: _gf.ValueTypeNameText}, {Category: _gf.PropertyCategoryInternal, Description: "C\u006f\u006e\u0066\u006f\u0072\u006da\u006e\u0063\u0065\u0020\u006c\u0065v\u0065\u006c\u0020\u006f\u0066\u0020\u0050D\u0046\u002f\u0041\u0020\u0073\u0074\u0061\u006e\u0064\u0061r\u0064", Name: "c\u006f\u006e\u0066\u006f\u0072\u006d\u0061\u006e\u0063\u0065", ValueType: _gf.ValueTypeNameText}}, ValueType: nil}

Functions

func NewModel

func NewModel(name string) _g.Model

NewModel creates a new model.

Types

type Model

type Model struct {
	Part        int    `xmp:"pdfaid:part"`
	Conformance string `xmp:"pdfaid:conformance"`
}

Model is the XMP model for the PdfA metadata.

func MakeModel

func MakeModel(d *_g.Document) (*Model, error)

MakeModel gets or create sa new model for PDF/A ID namespace.

func (*Model) Can

func (_ee *Model) Can(nsName string) bool

Can implements xmp.Model interface.

func (*Model) CanTag

func (_db *Model) CanTag(tag string) bool

CanTag implements xmp.Model interface.

func (*Model) GetTag

func (_aa *Model) GetTag(tag string) (string, error)

GetTag implements xmp.Model interface.

func (*Model) Namespaces

func (_d *Model) Namespaces() _g.NamespaceList

Namespaces implements xmp.Model interface.

func (*Model) SetTag

func (_gc *Model) SetTag(tag, value string) error

SetTag implements xmp.Model interface.

func (*Model) SyncFromXMP

func (_fa *Model) SyncFromXMP(d *_g.Document) error

SyncFromXMP implements xmp.Model interface.

func (*Model) SyncModel

func (_gfe *Model) SyncModel(d *_g.Document) error

SyncModel implements xmp.Model interface.

func (*Model) SyncToXMP

func (_gb *Model) SyncToXMP(d *_g.Document) error

SyncToXMP implements xmp.Model interface.

Jump to

Keyboard shortcuts

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