Documentation ¶
Index ¶
- Constants
- func SetLogger(logrusLogger *logger.Logger)
- type InfoObject
- type MetaDataRdf
- type Metadata
- type ObjectIdentifier
- type ObjectSubsection
- type ObjectSubsectionElement
- type PdfInfo
- func (pdf *PdfInfo) GetAuthor() string
- func (pdf *PdfInfo) GetCover(filepath string) bool
- func (pdf *PdfInfo) GetCreator() string
- func (pdf *PdfInfo) GetDate() string
- func (pdf *PdfInfo) GetDescription() string
- func (pdf *PdfInfo) GetISBN() string
- func (pdf *PdfInfo) GetLanguage() string
- func (pdf *PdfInfo) GetLanguages() []string
- func (pdf *PdfInfo) GetPagesCount() int
- func (pdf *PdfInfo) GetPublisherInfo() string
- func (pdf *PdfInfo) GetPublishers() []string
- func (pdf *PdfInfo) GetTitle() string
- type RootObject
- type TrailerSection
- type XrefTable
Constants ¶
View Source
const BufferSize = 50
View Source
const BufferSize300 = 300
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InfoObject ¶
type MetaDataRdf ¶
type ObjectIdentifier ¶
type ObjectSubsection ¶
type ObjectSubsection struct { Id int // objectId ObjectsCount int FirstSubsectionObjectId int LastSubsectionObjectId int Elements map[int]*ObjectSubsectionElement }
Object subsection that contain list of objects for this object
type ObjectSubsectionElement ¶
type PdfInfo ¶
type PdfInfo struct { PdfVersion string OriginalXrefOffset int64 OriginalTrailerSection TrailerSection AdditionalTrailerSection []*TrailerSection XrefTable []*XrefTable Root RootObject Info InfoObject Metadata Metadata PagesCount int }
func (*PdfInfo) GetCreator ¶
func (*PdfInfo) GetDescription ¶
func (*PdfInfo) GetLanguage ¶
func (*PdfInfo) GetLanguages ¶
func (*PdfInfo) GetPagesCount ¶
func (*PdfInfo) GetPublisherInfo ¶
func (*PdfInfo) GetPublishers ¶
type RootObject ¶
type RootObject struct { Type string Pages *ObjectIdentifier Metadata *ObjectIdentifier PageLabels *ObjectIdentifier Lang string }
type TrailerSection ¶
type TrailerSection struct { IdRaw string Info ObjectIdentifier Root ObjectIdentifier Size string Prev int64 }
type XrefTable ¶
type XrefTable struct { Objects map[int]*ObjectSubsectionElement ObjectSubsections map[int]*ObjectSubsection SectionStart int64 }
Click to show internal directories.
Click to hide internal directories.