Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with Phantom.js #2749

Closed
arski opened this issue Feb 20, 2013 · 2 comments
Closed

Running with Phantom.js #2749

arski opened this issue Feb 20, 2013 · 2 comments
Labels

Comments

@arski
Copy link

arski commented Feb 20, 2013

I know this is somewhat similar #1815 but maybe not quite the same..

Is there a way of supplying pdf.js a .pdf file and somehow getting the processed .html version in response without using a browser? Or using a browser, but somehow programmatically, i.e. so that I could transform pdf files to their pdf.js HTML version without manually opening the viewer and saving the code or something like that.

UPDATE: I looked around for ways of doing this directly without changing much and it seems that phantom.js should be able to load the html output of pdf.js processing. However, it seems that it doesn't actually load the pdf.js processing for some reason and all I'm getting back is the basic viewer.html code.

Hope this is more specific now and someone could help.

Cheers

@gigaherz
Copy link
Contributor

There have been a number of questions about this, already. Specifically related to using node.js. See #1664.

@mitar
Copy link
Contributor

mitar commented Nov 24, 2013

We are successfully running pdf.js on node.js without phantom.js: https://github.com/peerlibrary/meteor-pdf.js You could use then this to do whatever you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants