aboutsummaryrefslogtreecommitdiff
path: root/unipdf/model/xmputil/pdfaid/pdfaid.go
blob: 9a3d166445b229c99d1811b98ea5751823516d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Copyright 2020 FoxyUtils ehf. All rights reserved.
//
// This is a commercial product and requires a license to operate.
// A trial license can be obtained at https://unidoc.io
//
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
//
// Use of this source code is governed by the UniDoc End User License Agreement
// terms that can be accessed at https://unidoc.io/eula/

package pdfaid ;import (_e "fmt";_ea "github.com/trimmer-io/go-xmp/xmp";_g "github.com/unidoc/unipdf/v4/model/xmputil/pdfaextension";);

// SetTag implements xmp.Model interface.
func (_aa *Model )SetTag (tag ,value string )error {if _f :=_ea .SetNativeField (_aa ,tag ,value );_f !=nil {return _e .Errorf ("\u0025\u0073\u003a\u0020\u0025\u0076",Namespace .GetName (),_f );};return nil ;};func init (){_ea .Register (Namespace ,_ea .XmpMetadata );
_g .RegisterSchema (Namespace ,&Schema )};

// MakeModel gets or create sa new model for PDF/A ID namespace.
func MakeModel (d *_ea .Document )(*Model ,error ){_gg ,_ef :=d .MakeModel (Namespace );if _ef !=nil {return nil ,_ef ;};return _gg .(*Model ),nil ;};

// Namespaces implements xmp.Model interface.
func (_eae *Model )Namespaces ()_ea .NamespaceList {return _ea .NamespaceList {Namespace }};

// SyncToXMP implements xmp.Model interface.
func (_cf *Model )SyncToXMP (d *_ea .Document )error {return nil };

// SyncModel implements xmp.Model interface.
func (_b *Model )SyncModel (d *_ea .Document )error {return nil };var Schema =_g .Schema {NamespaceURI :Namespace .URI ,Prefix :Namespace .Name ,Schema :"\u0050D\u0046/\u0041\u0020\u0049\u0044\u0020\u0053\u0063\u0068\u0065\u006d\u0061",Property :[]_g .Property {{Category :_g .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 :_g .ValueTypeNameInteger },{Category :_g .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 :_g .ValueTypeNameText },{Category :_g .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 :_g .ValueTypeNameText }},ValueType :nil };


// Can implements xmp.Model interface.
func (_gc *Model )Can (nsName string )bool {return Namespace .GetName ()==nsName };var Namespace =_ea .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 );


// GetTag implements xmp.Model interface.
func (_ec *Model )GetTag (tag string )(string ,error ){_dee ,_cfg :=_ea .GetNativeField (_ec ,tag );if _cfg !=nil {return "",_e .Errorf ("\u0025\u0073\u003a\u0020\u0025\u0076",Namespace .GetName (),_cfg );};return _dee ,nil ;};

// NewModel creates a new model.
func NewModel (name string )_ea .Model {return &Model {}};var _ _ea .Model =(*Model )(nil );

// Model is the XMP model for the PdfA metadata.
type Model struct{Part int `xmp:"pdfaid:part"`;Conformance string `xmp:"pdfaid:conformance"`;};

// SyncFromXMP implements xmp.Model interface.
func (_cg *Model )SyncFromXMP (d *_ea .Document )error {return nil };

// CanTag implements xmp.Model interface.
func (_a *Model )CanTag (tag string )bool {_ ,_efb :=_ea .GetNativeField (_a ,tag );return _efb ==nil };