mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

#nameddestination doesn't seem to work #8383

Closed sidatp7 closed 7 years ago

sidatp7 commented 7 years ago

Link to PDF file (or attach file here):

Configuration:

Steps to reproduce the problem:

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

sidatp7 commented 7 years ago

pdf_open_parameters.pdf

sidatp7 commented 7 years ago

I have attached the pdf it has destinations, here is how I call it Test named destination

Snuffleupagus commented 7 years ago

That document does not contain any named destination called Preface. However, the following example works: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf#nameddest=G4.1501771.

Please keep in mind that the names you see e.g. in the document outline is not the actual named destinations as described in the PDF specification (see http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G11.1947713).

Closing as invalid.

sidatp7 commented 7 years ago

Jonas,

I want to check if we can extract functionality for nameddest.

Thanks,

Regards, Siddharth 732-638-9596

On Fri, May 5, 2017 at 7:42 PM, Jonas Jenwald notifications@github.com wrote:

Closed #8383 https://github.com/mozilla/pdf.js/issues/8383.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mozilla/pdf.js/issues/8383#event-1071381891, or mute the thread https://github.com/notifications/unsubscribe-auth/AbJSyzl8MU7e9KEHAxb1860YaEHVoXXJks5r27PRgaJpZM4NShbO .

yurydelendik commented 7 years ago

I want to check if we can extract functionality for nameddest.

Not sure what do you mean by that. If you are building your viewer, see https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L538

sidatp7 commented 7 years ago

I am trying to build my own viewer as I can't use the viewer.html to render the pdfs in my site. I want to implement the functionality of print, download and named dest that viewer.html has can you please help me understand how this can be achieved.

Thanks

On Wed, May 10, 2017 at 3:33 PM Yury Delendik notifications@github.com wrote:

I want to check if we can extract functionality for nameddest.

Not sure what do you mean by that. If you are building your viewer, see https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L538

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mozilla/pdf.js/issues/8383#issuecomment-300589130, or mute the thread https://github.com/notifications/unsubscribe-auth/AbJSy7sY58j-a11utPk9uzR1kRuJV3fEks5r4hDzgaJpZM4NShbO .

-- Regards, Siddharth 732-638-9596