Bug 6641 - Improve OxS' iPad/Pod PDF display support
Improve OxS' iPad/Pod PDF display support
Status: RESOLVED WONTFIX
Product: OJS
Classification: Unclassified
Component: User Interface
2.3.x
All All
: P3 enhancement
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-10 15:08 PDT by James MacGregor
Modified: 2012-09-21 14:33 PDT (History)
4 users (show)

See Also:
Version Reported In:
Also Affects: OCS 2.3.x, OMP 0.9


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2011-05-10 15:08:27 PDT
See http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=7488&p=29065#p29065. Currently, only ~1.5 pages of a PDF is loaded in an iPad's Safari window after being clicked. There's a workaround (clicking "Download this PDF"), but it possible this display should work better/be optimized. (CC'd Alex as I believe he'll be looking into this general issue more over time.)
Comment 1 Alex Garnett 2011-05-10 16:14:56 PDT
Seems like loading PDFs using the object tag might be broken in the iPad browser. Might be best to implement a test for iPad user agent string that makes downloading the default behaviour? Any solution that emerges from my current research w/ ETCL is likely going to entail a non-browser PDF handler anyway, and I believe that all iPads can read PDFs one way or another, so it wouldn't be a bad idea to just pass the file to a user's default PDF-reading application. See here for js and PHP tests (I'd implement it myself but it'd take longer for me to grab the current OJS branch than to c/p these three lines of code): http://davidwalsh.name/detect-ipad.
Comment 2 Alec Smecher 2011-05-10 23:33:46 PDT
Alex, did you find any external information on the object tag problem? I'm curious to read about it.
Comment 3 Alex Garnett 2011-05-11 08:22:48 PDT
Not much, to be honest -- just a couple issues with other devs trying to fix the dimensions of the PDF: https://discussions.apple.com/thread/2556156?threadID=2556156&tstart=0&messageID=12156154 and http://stackoverflow.com/questions/5176370/how-to-set-pdf-width-in-mobile-safari.

<object> actually uses the device's default PDF handler to load the object in the browser window, right? I suppose it's possible that Matt(?) and the forum user who reported this bug both have an uncommon build of Adobe Reader for iOS installed, and that's what's causing the bug. That would explain it being not very widely reported, as this method of embedding PDFs still isn't very common.
Comment 4 Alec Smecher 2012-09-21 14:33:13 PDT
Obsoleted by PDF display plugins.