Namespace is the xmp.Model PDF/UA namespace.
var Namespace = xmp.NewNamespace("pdfuaid", "http://www.aiim.org/pdfua/ns/id/", NewModel)
Schema is the pdfaExtension schema for the PDF/UA ID.
var Schema = pdfaextension.Schema{ NamespaceURI: Namespace.URI, Prefix: Namespace.Name, Schema: "PDF/UA ID Schema", Property: []pdfaextension.Property{ { Category: pdfaextension.PropertyCategoryInternal, Description: "Part of ISO 14289 standard", Name: "part", ValueType: pdfaextension.ValueTypeNameInteger, }, { Category: pdfaextension.PropertyCategoryInternal, Description: "Amendment of ISO 14289-1 standard", Name: "amd", ValueType: pdfaextension.ValueTypeNameText, }, { Category: pdfaextension.PropertyCategoryInternal, Description: "Corrigendum of ISO 14289-1 standard", Name: "corr", ValueType: pdfaextension.ValueTypeNameText, }, { Category: pdfaextension.PropertyCategoryInternal, Description: "Revision year of ISO 14289-2 standard", Name: "rev", ValueType: pdfaextension.ValueTypeNameInteger, }, }, ValueType: nil, }
func NewModel(name string) xmp.Model
NewModel creates a new model.
Model is the XMP model for the PDF/UA identification metadata.
type Model struct {
Part int `xmp:"pdfuaid:part"`
Amd string `xmp:"pdfuaid:amd"`
Corr string `xmp:"pdfuaid:corr"`
Rev int `xmp:"pdfuaid:rev"`
}
func MakeModel(d *xmp.Document) (*Model, error)
MakeModel gets or creates a new model for the PDF/UA ID namespace.
func (x *Model) Can(nsName string) bool
Can implements xmp.Model interface.
func (x *Model) CanTag(tag string) bool
CanTag implements xmp.Model interface.
func (x *Model) GetTag(tag string) (string, error)
GetTag implements xmp.Model interface.
func (x *Model) Namespaces() xmp.NamespaceList
Namespaces implements xmp.Model interface.
func (x *Model) SetTag(tag, value string) error
SetTag implements xmp.Model interface.
func (x *Model) SyncFromXMP(d *xmp.Document) error
SyncFromXMP implements xmp.Model interface.
func (x *Model) SyncModel(d *xmp.Document) error
SyncModel implements xmp.Model interface.
func (x *Model) SyncToXMP(d *xmp.Document) error
SyncToXMP implements xmp.Model interface.