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

Use with Other JS Servers? #9

Closed paullryan closed 11 years ago

paullryan commented 11 years ago

@modesty Cool tool. Just doing a brief walkthrough I didn't really see much that screamed Node.js only.... Do you feel that a lot of this was done such that it would only work in node or do you see it working on other javascript engines such as Rhino with relative ease?

Just asking your opinion based on your indepth knowledge.

Thanks for putting this out as open source.

modesty commented 11 years ago

My understanding to Rhino is that it runs on top of JVM, which is heavier and slower than V8. I haven't given much thoughts to run it in Rhino, any particular reason for you to thinking about Rhino?

paullryan commented 11 years ago

Yep I have a java backend that is run through a completely maven build where doing this with rhino while slower would work better in our build and deployment environment (we'd end up creating a caching mechanism for working mostly with the output versions). I was also thinking of converting what you've done to support svg as a potential output as well.

It would be the first time we'd need node in our current build setup and that could be and issue for training our installers...

modesty commented 11 years ago

I see. I had rough roads introducing node to our maven based build too, fortunately both managers and build engineer have open minds to new stuffs, now they start to embrace it... As for the svg support: I have a web render consuming pdf2json output, it tries to draw on canvas and fallback to svg silently when canvas is not available (ie8...), it's actually fairly easy converting to svg. Since I also need to support other platform's render (wpf/xaml and coaco), I need a generic output format, then it's up to the client render to transform it to platform and technology specific format.

paullryan commented 11 years ago

Sounds very reasonable. Thanks for the information I'll try to let you know how my projects progress in this area.

On Sat, May 4, 2013 at 1:34 PM, Modesty Zhang notifications@github.comwrote:

I see. I had some rough roads to introduce node to our maven based build too, fortunately both managers and build engineer have open mind to new stuff, now they start to embrace it... As for the svg support: I have a web render to consume psd2json output, trying to draw on canvas and fallback to svg silently when canvas is not available (ie8...), it's actually fairly easy to convert to svg. Since I also need to support other platform's render (wpf/xaml and coaco), I need a generic output format, then it's up to the client render to transform it for platform and technology specific format.

— Reply to this email directly or view it on GitHubhttps://github.com/modesty/pdf2json/issues/9#issuecomment-17440163 .