I am compiling the following program on OSX and Windows (VM)
package main
import (
"fmt"
fitz "github.com/gen2brain/go-fitz"
)
func main() {
doc, err := fitz.New("ML-XX-XX-XX.000_REV1.pdf")
if err != nil {
panic(err)
}
fmt.Println("finished")
defer doc.Close()
}
On OSX This runs absolutely fine, on Windows I get a segmentation fault, and the output message (in command prompt) of exit status 3221225477
Googling around this seems like a buffer overflow, but not completely sure how to debug/deal with it. I thought it was a path issue (e.g C:\\Users\me\pdfs\ML-XX-XX-XX.000_REV1.pdf
but seems not as I copied the pdf right next to the code.
I'm using the library for PDF-PNG here