Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when viewed on IE8, i finally got this working/figured out how to get documents to show up right! Awesomeness.
The issue I have is that when the same document is viewed on Chrome, there is a second "box" under the PDF container. It's empty, and there isn't an error, but it messes with scrolling.
Not the attached image. I've zoomed out to show what I"m talking about. There is the second box, that extends below the PDF.
Comment | File | Size | Author |
---|---|---|---|
fileviewer.jpg | 110.93 KB | wernercd | |
fileviewer.jpg | 115.21 KB | wernercd |
Comments
Comment #1
wernercd CreditAttribution: wernercd commentedI think the issue is when you allow mutliple PDFs in the field:
Home » Administration » Structure » Content types » pdf » Manage fields
When Editing the particular Field (which I called PDF), "PDF FIELD SETTINGS" > "NUMBER OF VALUES" > Set to greater than 1...
I had 2 PDFs in that field, and it showed the second box but no PDF in that box. Nor did it show the second PDF in the first box after the first one.
I assume Fileviewer is unable to graciously handle multiple Files in the same field. I think I tried it in IE8 and didn't have the second box, so it may just be a chrome issue.
I'm not 100% how something like that should be handled.
- Block the ability to change from 1 file for that content type.
- Create a new "File (PDF)" Field type that is set to 1
- Handle multiple file fields somehow.
* One box, multple files in the box, one after another...
* One box, menu/tab somewhere to switch between the PDFs
* Multiple Box's, one for each PDF
* Detection for this situation with a big fat warning, with instructions on how to fix it...
Comment #2
shenzhuxi CreditAttribution: shenzhuxi commentedFixed by embedding with iframe to support multi fields.
Comment #4
mathdz CreditAttribution: mathdz commentedDisculpen soy de mexico espero y puedan entenderme, estoy tratando de incorporar Fileviewer en mi proyecto y mi duda es como se hace este paso que biene en el READER.txt:
Go to https://github.com/openlibrary/bookreader/pull/7 to ask openlibrary pull my fix into the master.
no comprendo que debo de hacer en este paso, espero puedan orientarme. Gracias.