p2m-reader
Pure Go PDF2Msgpack decoder.
Installation
To install the p2m-reader run:
go get -u github.com/tinylib/msgp/msgp github.com/kr/pretty
go install ./p2m-reader
Usage
$ pdf2msgpack --font-info 0-example.pdf | p2m-reader
2016/07/15 16:40:36 FileName: "0-example.pdf"
2016/07/15 16:40:36 Pages: 4
2016/07/15 16:40:36 Creator: "Microsoft® Office Word 2007"
2016/07/15 16:40:36 Producer: "Microsoft® Office Word 2007"
p2m.FontInfo{Name:"ABCDEE+Cambria,Bold", Type:"TrueType", Encoding:"WinAnsi", Embedded:true, Subset:true, ToUnicode:false}
p2m.FontInfo{Name:"ABCDEE+Cambria", Type:"TrueType", Encoding:"WinAnsi", Embedded:true, Subset:true, ToUnicode:false}
p2m.FontInfo{Name:"ABCDEE+Calibri", Type:"TrueType", Encoding:"WinAnsi", Embedded:true, Subset:true, ToUnicode:false}
2016/07/15 16:40:36 Page i=1 s={595.4 841.8} len(paths)=4 len(glyphs)=34
2016/07/15 16:40:36 Page i=2 s={595.4 841.8} len(paths)=238 len(glyphs)=300
2016/07/15 16:40:36 Page i=3 s={595.4 841.8} len(paths)=237 len(glyphs)=301
2016/07/15 16:40:36 Page i=4 s={595.4 841.8} len(paths)=237 len(glyphs)=306