appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

Document to PDF feature for AppFlowy Editor

Open rileyhawk1417 opened this issue 1 year ago • 4 comments

This PR is an initial draft for the feature to provide a built-in converter that can convert from Markdown to PDF. The feature is using some code from htmltopdfwidgets as reference.

Checklist

  • [x] Support Checkboxes.
  • [x] Support Images in document.
  • [ ] Coloured text/Highlighted text.
  • [x] Render Tables(partially supported)

Whats supported

  • [x] Basic Text
  • [x] Bullet Lists.
  • [x] Todo List/Checklist
  • [x] Emoji Fonts.

The todo items may change overtime depending on the requirements of the feature. When its ready will mark this PR as ready.

rileyhawk1417 avatar Jan 28 '24 08:01 rileyhawk1417

This PR is meant to target Document type for exports, also addressing the following issue #3264 #2938

rileyhawk1417 avatar Feb 07 '24 04:02 rileyhawk1417

@LucasXu0 & @Xazin am working on table support now, will mark it as ready when am done. Then open another PR for writing the tests.

rileyhawk1417 avatar Feb 12 '24 09:02 rileyhawk1417

Codecov Report

Attention: Patch coverage is 0% with 303 lines in your changes missing coverage. Please review.

Project coverage is 73.24%. Comparing base (37432ea) to head (77a3bf4). Report is 1 commits behind head on main.

Files Patch % Lines
lib/src/plugins/pdf/html_to_pdf_encoder.dart 0.00% 275 Missing :warning:
lib/src/plugins/pdf/extension/color_ext.dart 0.00% 28 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #695      +/-   ##
==========================================
- Coverage   74.80%   73.24%   -1.56%     
==========================================
  Files         313      315       +2     
  Lines       14264    14567     +303     
==========================================
  Hits        10670    10670              
- Misses       3594     3897     +303     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 16 '24 11:03 codecov[bot]

Have added table support. Will open another PR to handle the tests.

rileyhawk1417 avatar Mar 16 '24 12:03 rileyhawk1417