Skip to content

Releases: phpdave11/gofpdi

gofpdi v1.0.13

02 Jun 13:11
Compare
Choose a tag to compare

gofpdi v1.0.13 fixes an issue when a PDF page is imported more than once.

gofpdi v1.0.12

17 May 15:09
Compare
Choose a tag to compare

gofpdi v1.0.12 adds support for reading page trees and improves support for reading cross-reference streams.

gofpdi v1.0.11

20 Feb 19:07
Compare
Choose a tag to compare

gofpdi v1.0.11 fixes a cross-reference stream parsing bug.

gofpdi v1.0.10

13 Feb 19:29
Compare
Choose a tag to compare

gofpdi v1.0.10 fixes bugs and improves support for documents with cross-reference streams.

gofpdi v1.0.9

11 Feb 00:13
Compare
Choose a tag to compare

gofpdi v1.0.9 adds support for cross-reference streams and compressed stream objects.

gofpdi v1.0.8

16 Sep 19:01
8fd334b
Compare
Choose a tag to compare

gofpdi v1.0.8 adds support for reading PDFs that have split xref tables.

gofpdi v1.0.7

09 Aug 15:19
Compare
Choose a tag to compare

gofpdi v1.0.7 fixes a bug where io.ReadSeeker wasn't being passed as a pointer argument.

gofpdi v1.0.6

08 Aug 18:47
182fc48
Compare
Choose a tag to compare

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

12 Jul 15:33
Compare
Choose a tag to compare

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

14 Jun 15:08
Compare
Choose a tag to compare

gofpdi v1.0.4 fixes string parsing bugs