RyanRiffle / Poe

A word processor built with HTML, CSS, and JavaScript
GNU General Public License v3.0
21 stars 4 forks source link

OS.js Integration #31

Closed RyanRiffle closed 8 years ago

RyanRiffle commented 9 years ago

Needs to be integrated into OS.js project but only in a way that will still allow for it to be used without being completely dependent on that project (hopefully).

andersevenrud commented 9 years ago

I can bring in PDF support to OS.js. What is the requirements ? Any specific library or formatting ?

RyanRiffle commented 9 years ago

Right now Poe uses PDFKit a pretty good library. It is created for node, but can be used in the browser also by using blobs and browserify. The blobs though require use of blob-stream. To actually use it you need access to font files (in order to embed them) or use a system font I believe.

On the end of writing to the vfs it would have to be able to accept node streams like the blob-stream library does.

RyanRiffle commented 9 years ago

Or a node-stream API with a server "plugin" that creates the file then uses vfs put it in dropbox or wherever

RyanRiffle commented 9 years ago

Using PDFKit browser side along with blob-stream is about 1.5mb Its quite a bit. If that route is taken then vfs will just have to be able to read blobs.