[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Suggestion to implement page-level links into uploaded PDF files [[media:foo.pdf|page=n]]
Open, LowPublicFeature

Description

Preface:
One can usually create links to a certain page n (pagenumber) in PDF files by
composing links such as http://server/foo.pdf#Page=n

This also works using external links in _MediaWiki_:

But when you want to link to a certain page in an uploaded PDF file foo.pdf

  • [[media:foo.pdf#Page=n]] (not ok.) -> does _not_ work.
  • [[media:foo.pdf#Page=n|other text]] (not ok.) -> does _not_ work.

I kindly ask the experts to enable the correct rendering of such links
[[media:foo.pdf#Page=n]]


Version: 1.20.x
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Bugzilla/4198

Details

Reference
bz4198

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:57 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz4198.
bzimport added a subscriber: Unknown Object (MLST).

Can you give an example of software supporting this?

Created attachment 3064
Sample patch (does not quite work)

It's fairly easy to stick the fragment onto the media URL as in attached patch,
but it doesn't actually work for the requested use.

Fragment identifiers on wiki links are normalized at link resolution time to
match section id headers; this turns the "=" into '.3D".

Not sure if there's a good way around that other than ripping in and redoing
how fragments are dealt with so it can be normalized differently for certain
types of output link.

Attached:

To show a page of a pdf, you can use [[File:PDF.pdf|page=n]], maybe it is the best, to also use page= for [[Media:PDF.pdf|page=n]] to link to a page of the pdf.

*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*

Is the #Page=3 syntax part of any specification? I suspect it is an feature of some PDF plugins. It doesnt work on OSX Firefox+Preview. It does work in Safari+Adobe plugin.

(In reply to comment #4)

To show a page of a pdf, you can use [[File:PDF.pdf|page=n]], maybe it is the
best, to also use page= for [[Media:PDF.pdf|page=n]] to link to a page of the
pdf.

This has been raised as bug 14788, for djvu files but the same problem exists for any multi-page file format.

(In reply to comment #6)

Is the #Page=3 syntax part of any specification? I suspect it is an feature of
some PDF plugins. It doesnt work on OSX Firefox+Preview. It does work in
Safari+Adobe plugin.

(In reply to comment #4)

To show a page of a pdf, you can use [[File:PDF.pdf|page=n]], maybe it is the
best, to also use page= for [[Media:PDF.pdf|page=n]] to link to a page of the
pdf.

This has been raised as bug 14788, for djvu files but the same problem exists
for any multi-page file format.

Mostly adobe software... http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf#page=7

other formats (movies maybe) I think also use fragments for similar purposes (not sure)

(In reply to comment #4)

To show a page of a pdf, you can use [[File:PDF.pdf|page=n]], maybe it is the
best, to also use page= for [[Media:PDF.pdf|page=n]] to link to a page of the
pdf.

Was that meant as a suggestion for implementation, or what else? It does not work for me.

(In reply to comment #8)

(In reply to comment #4)

To show a page of a pdf, you can use [[File:PDF.pdf|page=n]], maybe it is the
best, to also use page= for [[Media:PDF.pdf|page=n]] to link to a page of the
pdf.

Was that meant as a suggestion for implementation, or what else? It does not
work for me.

[[File:PDF.pdf|page=n]] should work at the moment to include a page of a multi page file into the wikipage

[[Media:PDF.pdf|page=n]] is a suggestion for implementation for a link to the page of the multi page file, with the #page= anchor.

I can't find how to add related links in the bug header, so here is a link to the closely related bug: T16788 (formerly bug 14788)

Ramsey-WMF lowered the priority of this task from Medium to Low.Nov 22 2017, 4:40 PM
Ramsey-WMF moved this task from Untriaged to Desired epics on the Multimedia board.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.