benoitkugler / pdf

Golang high level PDF model
MIT License
22 stars 3 forks source link

Error missing Form XObject during ParsePDFFile #7

Closed Chroq closed 8 months ago

Chroq commented 8 months ago

Hi Benoit,

I'm actually trying to fill a CERFA PDF file (https://www.assurance-maladie.ameli.fr/sites/default/files/formulaires/S3116i.pdf) but I'm struggling with this error : missing Form XObject

I've tried to "repair" my file but I load the file only when form is removed. I also check, it works with another PDF file with form.

Do you have any idea about I can solve this issue, please ?

benoitkugler commented 8 months ago

I'll give a look as soon as possible. Do you encounter the issue when reading the original PDF ? Or when trying to fill it ?

Chroq commented 8 months ago

Thank you, it's when I'm reading the PDF with reader.ParsePDFFile, I'm getting an *errors.errorString

benoitkugler commented 8 months ago

v0.0.9 should fix the issue, let me know if there is still something wrong.

Chroq commented 8 months ago

Thank you very much, Benoit ! It works like a charm :)