Closed RyanRiffle closed 8 years ago
I can bring in PDF support to OS.js. What is the requirements ? Any specific library or formatting ?
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.
Or a node-stream API with a server "plugin" that creates the file then uses vfs put it in dropbox or wherever
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.
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).