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
234 stars 46 forks source link

Unable to parse some pdf files #352

Open manjilkhambe opened 1 year ago

manjilkhambe commented 1 year ago

I am not able to read some pdf files. it is giving error - Unable to start parsing PDF file. Can you help in which scenario this occurs ? I believe it is coming from cpp

julianhille commented 1 year ago

that normally just happens if the file can not be opened. Pleas provide sample files or code to get a better understanding of what you are trying to do. My guess actually is read rights for node js against the pdf file you are trying to open by a path.

manjilkhambe commented 1 year ago

It happens rarely. I cant share you the specific pdf file but here's the code. I am running this code against that file locally so I don't think there is any specific read rights issue. Do let me know if you have any suggestions on this. Thanks for the help.

image
julianhille commented 11 months ago

Please add as actual code / text. Thanks

julianhille commented 1 month ago

Would you mind trying the latest dev branch?