-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading drive_document
fails
#117
Comments
The drive/frontend/src/components/DocEditor/TextEditor.vue Lines 284 to 288 in cb09f99
drive/frontend/src/pages/Document.vue Lines 103 to 109 in b095cd5
All of this is done to support real time editing. Since the CRDT encodes and contains the entire document history and blame to prevent collisions. Desired behaviour here would be downloading a PDF of the document perfectly reflecting the style and typography. This is easy when done client side, provided the document is rendered. As opposed to requesting the download from the server. Which will require considerable amounts of work to do this correctly, decoding the CRDT to HTML and responding with a generated PDF. Another potential solution would be just storing the HTML content (we can generate this during runtime) on disk along with the CRDT in the DB, and then generating a PDF from the saved HTML. This effectively doubles or close to doubles the file size. Which potentially isn't that big of an issue for unicode characters alone (which is all Implemented just disallowing & skipping them in batch downloads 2ce2c6d for now. To prevent all of this from breaking so abruptly. |
A Document should be downloadable as a PDF. That's a basic expectation from a user. Now, to implement it you can do JSON to HTML to PDF or store both JSON and HTML. Storing the data in two formats and having the PDF feature is better than not having the feature and saving some KBs. |
Tried downloading a file and got the below error.
The text was updated successfully, but these errors were encountered: