peerigon / phridge

A bridge between node and PhantomJS
The Unlicense
519 stars 50 forks source link

Create a page by passing static html and render it #25

Closed marto83 closed 9 years ago

marto83 commented 9 years ago

phridge looks great. I have a couple of questions.

Is it possible to create a page by passing an html string instead of url?

How can I tell the phantom process to render the page to base64?

jhnns commented 9 years ago

Phridge is just a bridge between node and PhantomJS. For PhantomJS-related questions, please read the docs, ask on Stackoverflow or create an issue at their repo.

Some hints for your questions:

Is it possible to create a page by passing an html string instead of url?

Your probably looking for page.setContent

How can I tell the phantom process to render the page to base64?

page.renderBase64