edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Export PDF #98

Open edemaine opened 3 years ago

edemaine commented 3 years ago

Two parts to this:

It's also a chance to properly embed the fonts.

ndattani commented 2 years ago

@edemaine This to me is one of the most important things (being able to export to PDF). I see this issue has been open since 2020. I wonder what the complication is in terms of implementing it? Let me know specific instructions if you'd like me to help with anything.

I also notice that when I'm using dark mode, and I export to SVG, the exported image is not in dark mode.

edemaine commented 2 years ago

This to me is one of the most important things (being able to export to PDF).

Could you explain why it's important to you? If you have Inkscape installed, you can easily convert SVG to PDF via inkscape filename.svg --export-overwrite --export-filename=filename.pdf. I agree that direct export to PDF would be convenient, but it seems like a minor convenience; SVG has everything we want. (Unless the issue is with multiple pages?)

I also notice that when I'm using dark mode, and I export to SVG, the exported image is not in dark mode.

This is intentional. I view dark mode as a user preference (and multiple people can be looking at the same board with different preference), but the "true" form of the whiteboard is light mode. Is there a natural reason to want to export the dark version?

sumodm commented 1 year ago

@edemaine When you try to export a large page (technically many pages), the export produces only partial output. It truncates after the 3 or 4 pages. I tried to zoom out and export, it still does the same. Not sure if this is a known issue and will be resolved while multi-page export is handled or this is a separate issue. I am probably abusing the tool with a non-standard use case: In my case, I am using this explain some idea that requires multiple pages (think like lectures).