draw icon indicating copy to clipboard operation
draw copied to clipboard

add PDF support

Open theoryshaw opened this issue 10 years ago • 10 comments

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

theoryshaw avatar May 29 '15 14:05 theoryshaw

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 avatar May 31 '15 11:05 JohnMcLear

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...

JohnMcLear avatar May 31 '15 11:05 JohnMcLear

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.

theoryshaw avatar May 31 '15 11:05 theoryshaw

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

JohnMcLear avatar May 31 '15 12:05 JohnMcLear

sorry.

theoryshaw avatar May 31 '15 12:05 theoryshaw

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

theoryshaw avatar May 31 '15 12:05 theoryshaw

So

  • [ ] Import a PDF
  • [ ] Annotate a PDF
  • [ ] Export a PDF

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!

JohnMcLear avatar May 31 '15 16:05 JohnMcLear

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

theoryshaw avatar Jun 01 '15 13:06 theoryshaw

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.

bytesnz avatar Dec 03 '15 12:12 bytesnz

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

JohnMcLear avatar Dec 04 '15 00:12 JohnMcLear