5 ms·
Is there a similar API around that accepts HTML instead of a URL? I’ve build one for my project, but I would prefer to delegate this to an external service.
by jeppebemad 9y ago
Is there a similar API around that accepts HTML instead of a URL? I’ve build one for my project, but I would prefer to delegate this to an external service.
- jancurn 9y agoWe can easily add this feature. So you'd like to pass a single HTML file?
- inferiorhuman 9y agoSo something like wkhtmltopdf?
- chrismorgan 9y agoBear in mind that you’ll need to either embed all your resources, or only use CORS-enabled resources, or fake the origin for your HTML document so that it can access non-CORS-enabled resources on a particular domain. Encoding your HTML as a data: URI might work for this service as-is (provided you use no non-CORS-enabled resources). Haven’t tried it.