julianhille / MuhammaraJS

Muhammara a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs)
Other
229 stars 46 forks source link

unable to create copying context. verify that the target is an existing PDF file error for PDF #319

Open skhilliard opened 1 year ago

skhilliard commented 1 year ago

We are on the latest version (as of 8/10/2023 4.0.0) and are getting an error thrown calling the createPDFCopyingContext method:

TypeError: unable to create copying context. verify that the target is an existing PDF file

image

This seems to happen for a specific PDF file (it is a Text gov't workers compensation PDF form). It does seem to be a valid PDF file. Any idea what may cause this? File attached for review.

TX Workers Comp Form.pdf

julianhille commented 1 year ago

will take a look at the weekend

skhilliard commented 1 year ago

@julianhille Thank you! 👍

skhilliard commented 1 year ago

@julianhille Good day. I was wondering if you had managed to look at the error I encountered using the PDF. Thank you!

julianhille commented 1 year ago

no i was a bit too busy. will try this evening

julianhille commented 1 year ago

started to look around unable to see an issue in your code, interchanging the way of loadin the file into a buffer, stream or reader does not really change the outcome. needs further debugging inside of cpp

skhilliard commented 1 year ago

@julianhille Good afternoon! Just wanted to follow up to see if there had been any opportunity to investigate this any further.

julianhille commented 1 year ago

No did not really. Trying harder.

skhilliard commented 4 months ago

@julianhille Hello! It's been a while....any follow up for this particular problem?

skhilliard commented 3 months ago

@julianhille Hello once again! We think we discovered a different PDF that exhibits this same behavior. Were there any updates for this issue?

julianhille commented 2 months ago

there will be an update to the cpp code shortly, maybe that will also fix this one