-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TF-2764 Add
adr
for preview PDF in EmailView
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/adr/0048-view-one-by-one-pdf-in-dart-side-in-only-web-app.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 48. View one-by-one PDF in Dart side in only Web app | ||
|
||
Date: 2024-05-17 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
- In EmailView when the user clicks on an attachment, we should display a PDF viewer for the user. | ||
- In PDF Viewer users can view full pages of the PDF file and can download or print it. | ||
|
||
## Decision | ||
|
||
- Create PDF Viewer with [pdf_render](https://github.com/linagora/flutter_pdf_render.git) | ||
- Viewer will stay overlay in web app tab | ||
- Actions supported: `Download`, `Print`, `Zoom In/Out`, `Show current/total pages` in viewer | ||
|
||
## Consequences | ||
|
||
- PDF viewer works well on all browsers (Chrome/Firefox/Edge/Safari/Opera) | ||
|
||
## Improvement | ||
|
||
- `Print name`: Some browsers (Firefox/Safari/Edge) use a random name to name the file when printing. | ||
- `Jump to page`: When using the standard size of PDF pages to display in the viewer, the `jumpToPage` method of `pdf_render` does not work correctly. So we will temporarily disable it. | ||
- `Drag the scrollbar`: Currently the pdf page is displayed in an `Interactive viewer` so does not interact with the `Scrollbar` |