Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

valid PDF file getting "not a pdf file missing %%EOF" while reading #28

Open
giovapanasiti opened this issue Sep 26, 2018 · 1 comment

Comments

@giovapanasiti
Copy link

I have this valid PDF which I can read and I can even parse it with nodejs. When I try to read it I get this:

not a PDF file: missing %%EOF

Any idea?

@miguelpragier
Copy link

I know it's too late, but for other's reference:
I solved here passing the correct/exact file size in bytes:

    f,er4:=os.Open(targetDoc)
    fmt.Println(er4)
    fl,_:=f.Stat()
    r, er2 := rscpdf.NewReaderEncrypted(f, fl.Size(), func() string { return "" })

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants