Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Add Ability to Print Cleanly From Client View #308

Open
timtheguy opened this issue Jun 12, 2019 · 1 comment
Open

Add Ability to Print Cleanly From Client View #308

timtheguy opened this issue Jun 12, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@timtheguy
Copy link
Collaborator

timtheguy commented Jun 12, 2019

Currently, the client view displays a list of resources and a map. A user might want to print the content of this page, as outlined in #269. Unfortunately, however, printing this page directly gives a poorly formatted version of the original page and includes a map that is not desirable:

image

This issue is complete when:

@timtheguy timtheguy self-assigned this Jun 12, 2019
@timtheguy
Copy link
Collaborator Author

timtheguy commented Jun 18, 2019

Continuing work on this issue - I have implemented a working 'Print' button with some simple styles for the resulting printed page elements.

Page with print button Print result
image image

Unfortunately, under the current implementation I've tested out, there are a few issues:

  • Customizing the print view requires very specific CSS hiding and showing
  • The CSS does not allow for a clean way to adjust the layout of content on the page
  • Page breaks are not intelligent, where content wraps over to the next page in the middle of a resource

My next approach will be to look at generating a printable PDF, rather than a printable web page. If I run into issues with this, I will look at generating a special "print view" page that is able to be adjusted for this behavior. I am looking at KendoReact's PDF Processing Library. Let me know if you have any thoughts on adding print functionality!

@RajChaudhry RajChaudhry added the enhancement New feature or request label Jul 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants