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
205 stars 41 forks source link

Unable to parse some pdf files #352

Open manjilkhambe opened 8 months ago

manjilkhambe commented 8 months 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 8 months 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 7 months 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 7 months ago

Please add as actual code / text. Thanks