Skip to content
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

Switch to using React-PDF for loading pdfs on the page #6

Closed
kohsah opened this issue Dec 19, 2017 · 8 comments
Closed

Switch to using React-PDF for loading pdfs on the page #6

kohsah opened this issue Dec 19, 2017 · 8 comments

Comments

@kohsah
Copy link
Contributor

kohsah commented Dec 19, 2017

Currently standard object tags are used, we need to compare mobile responsiveness of the current option to react-pdf

@Arunadevi
Copy link
Collaborator

Arunadevi commented Dec 24, 2017 via email

@kohsah kohsah closed this as completed in 0a59870 Dec 25, 2017
kohsah added a commit that referenced this issue Dec 25, 2017
# Conflicts:
#   package.json
#   src/containers/DocumentContentColumn.js
@kohsah
Copy link
Contributor Author

kohsah commented Dec 25, 2017

Needs page browsing ui

@kohsah kohsah reopened this Dec 25, 2017
@kohsah
Copy link
Contributor Author

kohsah commented Jan 2, 2018

Two implementations are there in the code-base now ...

  1. DocumentPDF - based on react-pdf. Renders pages, but there is no page browsing UI. needs to be implemented. Loading documents of 100s of pages may not be optimal, we need to have on-demand loading of pages.

  2. DocumentPDF2 - CURRENT DEFAULT - based on PdfObject which provides a very simple helper API to search to render the appropriate tag as per what is supported by the browser. Does not do any page navigation other than what is provided by the browser. Works well for mobile because it provides the right tags depending on what is supported by the browser.

@Arunadevi
Copy link
Collaborator

Arunadevi commented Jan 2, 2018 via email

@kohsah
Copy link
Contributor Author

kohsah commented Jan 5, 2018

Related gawati/gawati-data#7

@kohsah
Copy link
Contributor Author

kohsah commented Feb 7, 2018

@Arunadevi Pagination looks like this:

image

  1. Needs to link to individual pages like the document paginator
  2. The PDF page needs to be in a bigger scale , so we can scale it down for mobile views

@Arunadevi
Copy link
Collaborator

Updated pdf-page-links branch. The PDF is scaled to width. But will not reload upon resizing. For mobile view, it loads scaled to width. Should it reload when window is resized?

@kohsah
Copy link
Contributor Author

kohsah commented Feb 8, 2018

@Arunadevi lets not do the reload on resizing. its fine as is. Anyway we have to make a try with linearized PDFs or images, so we tackle this problem at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants