Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

2999 scale large pdfs down to size and support zoom/pan - #1026

Merged
dhaneshnm merged 5 commits into
1.7.0-M4from
2999-scale-large-pdfs-down-to-size
Jan 21, 2022
Merged

dhaneshnm merged 5 commits into
1.7.0-M4from
2999-scale-large-pdfs-down-to-size

Conversation

@nicwells

Copy link
Copy Markdown
Contributor

Fixes BlueBrain/nexus#2999

Description

Take height and width of pdf into consideration for determining size to display pdf at.
Support zooming and panning of pdf

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added necessary unit and integration tests.
  • I have added screenshots (if applicable), in the comment section.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (1.7.0-M4@5d03a41). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             1.7.0-M4    #1026   +/-   ##
===========================================
  Coverage            ?   65.15%           
===========================================
  Files               ?       22           
  Lines               ?      640           
  Branches            ?      137           
===========================================
  Hits                ?      417           
  Misses              ?      223           
  Partials            ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d03a41...386be1b. Read the comment docs.

@dhaneshnm
dhaneshnm merged commit 04abb6a into 1.7.0-M4 Jan 21, 2022
@dhaneshnm
dhaneshnm deleted the 2999-scale-large-pdfs-down-to-size branch January 21, 2022 12:17
dhaneshnm pushed a commit that referenced this pull request Mar 11, 2022
* useMemo to prevent reloading pdf file each time

* Size PDF on page nicely

* Add zoom and panning support and nicer size adjustment

* Style some more and add error message when fails

* Fix linting and document
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants