Documentation ¶
Overview ¶
Package pdf implements metadata for PDF files as defined by XMP Specification Part 2.
Index ¶
- Variables
- func NewModel(name string) xmp.Model
- type PDFInfo
- func (x PDFInfo) Can(nsName string) bool
- func (x *PDFInfo) CanTag(tag string) bool
- func (x *PDFInfo) GetTag(tag string) (string, error)
- func (x PDFInfo) Namespaces() xmp.NamespaceList
- func (x *PDFInfo) SetTag(tag, value string) error
- func (x *PDFInfo) SyncFromXMP(d *xmp.Document) error
- func (x *PDFInfo) SyncModel(d *xmp.Document) error
- func (x PDFInfo) SyncToXMP(d *xmp.Document) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NsPDF = xmp.NewNamespace("pdf", "http://ns.adobe.com/pdf/1.3/", NewModel)
)
Functions ¶
Types ¶
type PDFInfo ¶
type PDFInfo struct { Title xmp.AltString `xmp:"dc:title"` Author xmp.StringList `xmp:"dc:creator"` Subject xmp.AltString `xmp:"dc:description"` Keywords string `xmp:"pdf:Keywords"` Creator xmp.AgentName `xmp:"xmp:CreatorTool"` Producer xmp.AgentName `xmp:"pdf:Producer"` PDFVersion string `xmp:"pdf:PDFVersion"` CreationDate xmp.Date `xmp:"xmp:CreateDate"` ModifyDate xmp.Date `xmp:"xmp:ModifyDate"` Trapped xmp.Bool `xmp:"pdf:Trapped"` Copyright string `xmp:"pdf:Copyright"` Marked xmp.Bool `xmp:"pdf:Marked"` }
Part 2: 3.1 Adobe PDF namespace
func (PDFInfo) Namespaces ¶
func (x PDFInfo) Namespaces() xmp.NamespaceList
Click to show internal directories.
Click to hide internal directories.