modesty / pdf2json

converts binary PDF to JSON and text, for server-side PDF processing and command-line use.
https://github.com/modesty/pdf2json
Other
1.98k stars 378 forks source link

An error occurred while rendering the page #3

Closed sudesh-poojari closed 11 years ago

sudesh-poojari commented 11 years ago

Hi,

I was looking at this project, tried to render a pdf which renders fine with pdfjs browser version. It gave me error "An error occurred while rendering the page" for most of the pages.

I installed it via npm but had to move pdf2json out of node_modules folder.

Is this a known issue or I am doing something wrong.

Also had a query can i create the cache of canvas generation code via this so that i do most of my canvas stuff here, just rendering part will be on client side (I dont know should I post this here, this is my first issue post on github).

modesty commented 11 years ago

Could you try it with v0.1.8?

If the error still occurs, send me the PDF, I'll take a look.

This project is intended to be part of a server based solution: PDF fiels are stored and parsed in server, no HTML canvas operations involved, and the parsing result will be sent down to client for rendering.

sudesh-poojari commented 11 years ago

I tried v0.1.8, but still same error.

I think it is something to do with my folder structure, as i m having to move pdf2json out of node_modules folder. Also i m made to install underscore separately. Should i install pdf2json using -g option

modesty commented 11 years ago

Could you put your pdf file into the folder for test and run the unit test against it? Usually, no need to install this module globally. If the unit test also fails, send me the pdf file, I'll take a look.

modesty commented 11 years ago

didn't hear back for 2 months, close for now.