Releases: phpdave11/gofpdi
Releases · phpdave11/gofpdi
gofpdi v1.0.13
gofpdi v1.0.12
gofpdi v1.0.12 adds support for reading page trees and improves support for reading cross-reference streams.
gofpdi v1.0.11
gofpdi v1.0.11 fixes a cross-reference stream parsing bug.
gofpdi v1.0.10
gofpdi v1.0.10 fixes bugs and improves support for documents with cross-reference streams.
gofpdi v1.0.9
gofpdi v1.0.9 adds support for cross-reference streams and compressed stream objects.
gofpdi v1.0.8
gofpdi v1.0.8 adds support for reading PDFs that have split xref tables.
gofpdi v1.0.7
gofpdi v1.0.7 fixes a bug where io.ReadSeeker
wasn't being passed as a pointer argument.
gofpdi v1.0.6
gofpdi v1.0.6 adds the ability to import a PDF stream from an io.ReadSeeker
object using the SetSourceStream
function.
gofpdi v1.0.5
Add ability to get page sizes for each page in a PDF:
package main
import (
"github.com/davecgh/go-spew/spew"
fpdi "github.com/phpdave11/gofpdi"
)
func main() {
importer := fpdi.NewImporter()
importer.SetSourceFile("example.pdf")
pageSizes := importer.GetPageSizes()
spew.Dump(pageSizes)
}
Output:
(map[int]map[string]map[string]float64) (len=1) {
(int) 1: (map[string]map[string]float64) (len=5) {
(string) (len=9) "/MediaBox": (map[string]float64) (len=8) {
(string) (len=3) "ury": (float64) 841.89,
(string) (len=1) "x": (float64) 0,
(string) (len=1) "y": (float64) 0,
(string) (len=1) "w": (float64) 595.28,
(string) (len=1) "h": (float64) 841.89,
(string) (len=3) "llx": (float64) 0,
(string) (len=3) "lly": (float64) 0,
(string) (len=3) "urx": (float64) 595.28
},
(string) (len=8) "/CropBox": (map[string]float64) {
},
(string) (len=9) "/BleedBox": (map[string]float64) {
},
(string) (len=8) "/TrimBox": (map[string]float64) {
},
(string) (len=7) "/ArtBox": (map[string]float64) {
}
}
}
gofpdi v1.0.4
gofpdi v1.0.4 fixes string parsing bugs