JohnMcLear / draw

A real time collaborative drawing tool using nodejs, socket.io & paper.js
Apache License 2.0
482 stars 158 forks source link

add PDF support #192

Open theoryshaw opened 9 years ago

theoryshaw commented 9 years ago

Perhaps integrating something like this?... https://github.com/mozilla/pdf.js

JohnMcLear commented 9 years ago

pdf.js a way of viewing PDFs in the browser, not creating them.

http://stackoverflow.com/questions/19699366/html5-canvas-to-pdf would be more use

http://parall.ax/products/jspdf

JohnMcLear commented 9 years ago

I made a start on this, spent an hour on it.

It will take another few hours to get it fully working..

jsPDF is kinda messy because I have to bring in like 8 files to get working PDF generation.. I feel like there should be a cleaner way IE processing the canvas on the server(using abiword or so) or something...

theoryshaw commented 9 years ago

here i was thinking of uploading pdfs (similar to raster images) as a background on which to sketch upon. That's a majority of what the AEC industry uses tools like these for--sketching on existing pdfs.

JohnMcLear commented 9 years ago

Oh you want upload or download support? You didn't specify...

theoryshaw commented 9 years ago

sorry.

theoryshaw commented 9 years ago

exporting out a pdf that has been annotated upon, would be a key workflow in the industry as well.

JohnMcLear commented 9 years ago

So

Yea this is a way bigger job than I can do in spare time, hopefully someone else can pick up on my branch and finish it off!

theoryshaw commented 9 years ago

no worries. Yeah, i basically just 'log' ideas here, just to log them somewhere. No obligations or expectations. Thanks.

bytesnz commented 8 years ago

Adding to the work already done, I have got a basic PDF export working (e5dd1ab). Might try to have a look at importing etc some time soon.

JohnMcLear commented 8 years ago

I just did a better PDF export for etherpad too https://github.com/JohnMcLear/ep_better_pdf_export