Documentation ¶
Index ¶
- Variables
- func NewProperties(r *zip.Reader) (*OfficeCoreProperty, *OfficeAppProperty, error)
- func ParseFileTrailer(buf []byte, current int) (nextOffset int, xref *XRef, trailer *Trailer, err error)
- type Info
- type Meta
- type OfficeAppProperty
- type OfficeCoreProperty
- type PDFBytes
- func (b PDFBytes) GetMetaRef() (ref *Reference, err error)
- func (b PDFBytes) ToInfo(xref XRef, doc []byte) (*Info, error)
- func (b PDFBytes) ToString() string
- func (b PDFBytes) ToTrailer() (*Trailer, error)
- func (b PDFBytes) ToXMLStream() []byte
- func (b PDFBytes) ToXRef() (*XRef, error)
- func (b PDFBytes) TypeOf() string
- type Reference
- type Trailer
- type XRef
- type XRefObject
Constants ¶
This section is empty.
Variables ¶
View Source
var OfficeVersions = map[string]string{
"16": "2016",
"15": "2013",
"14": "2010",
"12": "2007",
"11": "2003",
}
Functions ¶
func NewProperties ¶
func NewProperties(r *zip.Reader) (*OfficeCoreProperty, *OfficeAppProperty, error)
Types ¶
type Info ¶
type Info struct { XMLName xml.Name `xml:"xmpmeta"` Author string `xml:"RDF>Description>creator"` Creator string `xml:"RDF>Description>CreatorTool"` Producer string `xml:"RDF>Description>Producer"` }
func NewPropertiesFromPDFDoc ¶
type OfficeAppProperty ¶
type OfficeAppProperty struct { XMLName xml.Name `xml:"Properties"` Application string `xml:"Application"` Company string `xml:"Company"` Version string `xml:"AppVersion"` }
func (*OfficeAppProperty) GetMajorVersion ¶
func (a *OfficeAppProperty) GetMajorVersion() string
type OfficeCoreProperty ¶
type PDFBytes ¶
type PDFBytes []byte
func NewPDFData ¶
func (PDFBytes) GetMetaRef ¶
func (PDFBytes) ToXMLStream ¶
type XRef ¶
type XRef struct { StartID int Count int ObjectRef []XRefObject }
type XRefObject ¶
Click to show internal directories.
Click to hide internal directories.