Categorygithub.com/flotzilla/pdf_parser
modulepackage
0.1.96
Repository: https://github.com/flotzilla/pdf_parser.git
Documentation: pkg.go.dev

# README

Pdf metadata parser

Go library for parsing pdf metadata information

License

MIT

Usage

import "github.com/flotzilla/pdf_parser"

// parse file
pdf, errors := pdf_parser.ParsePdf("filepath/file.pdf")

// main functions
pdf.GetTitle()
pdf.GetAuthor()
pdf.GetCreator()
pdf.GetISBN()
pdf.GetPublishers() []string
pdf.GetLanguages() []string
pdf.GetDescription()
pdf.GetPagesCount()

Using with custom github.com/sirupsen/logrus logger

import "github.com/flotzilla/pdf_parser"

l := logger.New()
l.SetOutput(os.Stdout)
lg.SetFormatter(&logger.JSONFormatter{})

SetLogger(lg)
file, _ := filepath.Abs("filepath/file.pdf")
pdf, err := ParsePdf(file)

# Functions

Parse pdf file metadata.
Set logrus logger to pdf parser instance.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Object subsection that contain list of objects for this object */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author