Last modified: 2013-07-24 15:18:10 UTC
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_: * http://server/foo.pdf#Page=n (ok.) * [http://server/foo.pdf#Page=n other text] (ok.) 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]]
Can you give an example of software supporting this?
Brion, here you are: http://www.mediawiki.org/wiki/Bugzilla/4198 a concise page
Created attachment 3064 [details] 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.
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.