Bool is the wrapper over boolean used in the Metadata.
type Bool bool
const ( // True is the Bool wrapper for standard boolean = true. True Bool = true // False is the Bool wrapper for the standard boolean = false. False Bool = false )
func (x Bool) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler interface.
func (x *Bool) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler interface.
func (x Bool) Value() bool
Value gets the boolean value.
Metadata is the xmp defined metadata structure, that is used to extract or inject XMP based document metadata. NOTE: This implementation is in experimental development state.
Keep in mind that it might change in the subsequent minor versions.
type Metadata struct { DocumentID uuid.UUID UniPDFVersion string Title string Author []string Subject string Keywords string Creator string Producer string PDFVersion string CreationDate Time ModifyDate Time MetadataDate Time Trapped Bool Copyright string Marked Bool PdfA *PdfA }
func NewMetadataFromPdfInfo(obj core.PdfObject) (Metadata, error)
NewMetadataFromPdfInfo creates a new Metadata structure form the input model.PdfInfo.
func (m *Metadata) MarshalXMP() ([]byte, error)
MarshalXMP marshals given metadata into byte stream.
PdfA is the conformance level for the PDF/A module.
type PdfA struct { Part int Conformance string }
Time is the time.Time wrapper that is used for special parsing the time fields.
type Time time.Time
func Now() Time
Now gets the current Time.
func WrapTime(t time.Time) Time
WrapTime creates a new metadata date.
func (x Time) IsZero() bool
IsZero checks if given time has zero value.
func (x Time) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler interface.
func (x Time) String() string