Unable to use URL to open a PDF to a specific page
Reported by
grahamsc...@gmail.com,
Jul 2
|
|||||
Issue descriptionExample URL: https://abc.xyz/investor/pdf/20161231_alphabet_10K.pdf#page=21 Steps to reproduce the problem: 1. Browse to any (PDF) URL with "#page=xx" at the end to open to that page. (Where xx is the page number) What is the expected behavior? Expect new tab to open with Chrome's built-in PDF reader, open to specific page as defined in URL. What went wrong? PDF opens to start of document only (ignores the #page=). Does it occur on multiple sites: Yes Is it a problem with a plugin? N/A Did this work before? No Does this work in other browsers? No I've been unable to find any browser on Android where this works correctly Chrome version: 67.0.3396.87 Channel: stable OS Version: 7.0.0 Flash Version: This works fine on Windows OS. If anyone knows of any way to do this on Android that would be a great help. I've also tried a few PDF reader apps (as default pdf app), which open the PDF in their app but still to page 1.
,
Jul 3
,
Jul 3
Internals>Plugins>PDF is the component for the desktop Chromium PDF Viewer, which is not applicable to Android. I imagine PDFs are downloaded on Android and then opened via an intent. Can the intent mechanism pass on this extra bit of information? Even if it can, does the receiving PDF Viewer application know how to interpret it?
,
Jul 3
Tested the issue on Android and able to reproduce the issue. Steps followed: 1.Launch chrome 2.On navigating to https://abc.xyz/investor/pdf/20161231_alphabet_10K.pdf#page=21 , PDF is downloaded and Observed that PDF opens to start of document. Chrome versions tested: 60.0.3072.0, 67.0.3396.87(Stable), 69.0.3479.2(Canary) OS: Android 7.0,8.1.0,9.0 Android Devices: Pixel, Samsung J7 This seems to be a Non-Regression issue as same behavior is seen since M-60. Leaving the issue as Untriaged for further input's on this issue. Please navigate to below link for log's -- go/chrome-androidlogs/859711 Thanks!
,
Jul 10
Bug reproducible on Android 6.0.1 Zebra ET5X. The issue does not appear on Chrome Desktop Version 67.0.3396.99 (Official Build) (64-bit).
,
Jul 16
Follow up to #3 from thestig@ Reading through the Android Intents documentation briefly, there does not appear to be a way to specify opening to a specific page. The primarily attributes for an ACTION_VIEW intent is the data and mime type. There is no indication of where to start viewing in the data. As you suggested information about what page to start on could be provided in the extra attribute, but that would require specifying the format for both the sender and receiver somewhere like the official Android document. This currently doesn't exist and making API changes to Android I think is slightly out of the scope of this bug. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by jbanavatu@chromium.org
, Jul 3