Correspond to content page with PDF file
kyoshizaki opened this issue · 3 comments
kyoshizaki commented
Current status
PDF file can not be used as a page_file for content.
kyoshizaki commented
Issues related to PDF file viewer
- Fix white flipping when saving text snippets
- Fix white flipping when updating pages
- Set background-color #444 for #mainContainer in PDF viewer
- Set border none for .page in PDF viewer
- Set left & right margin zero for .page in PDF viewer
- Fix the problem that some pages may not be displayed.
- Set the background color outside the PDF file to LePo background color
Not a big problem (won't fix soon)
- Reduce downloading of multiple files related to viewer every time page is rendered
- When the PDF page is displayed for the first time, 23 requests are generated, but when the browser cache is valid, only 4 requests are generated from the next time onward
kyoshizaki commented
Fix the problem that some PDF pages may not be displayed
Status
- Not limited to certain users
- In some cases, it is displayed appropriately by moving the page back and forth
- Occurred in Chrome browser v62 on Windows 8
- HTTP range request initiated by pdf.worker.js causes this issue in somecase (not always)
Fig.: pdf file requests with chrome dev. tool
Prescription
- Set true for 'disableRange' option in pdfjs_viewer-rails gem (v0.2.5)
kyoshizaki commented
Apart from the detailed issues, we implemented a function to display the PDF file on the learning material.