Closed damiantp closed 7 years ago
We need to add something like PDFSinglePageViewer which will implement interface similar to what PDFViewer has. There are few methods needed to be implemented to properly work for link and find services. Marking as beginner bug since it's just identifying which interface needs to be extracted from PDFViewer and implementing it in the new class (e.g. PDFSinglePageViewer). The PDFSinglePageViewer can/will be use for presentation mode.
When I try to open the internal links in the given pdf (http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf), It works perfectly fine. Internal links are working as expected.
@nish17 does it work in the https://github.com/mozilla/pdf.js/blob/master/examples/components/pageviewer.html app?
Nope, Nothing shows up.
@yurydelendik I have been working on this issue. I added similar capabilities for linkService and annotations already present in the PDFViewer class to the PDFPageView class. Although the resulting code builds without problem, the original issue still remains. Any directions?
Closing since this is fixed by #8724. The components example is tracked in a new issue.
Hi,
I'm trying different components of pdfjs to build my own viewer. My idea is based on the "pageviewer" component example because I want to load only a page at a time. Using this example is working ok, but I don't get the internal links to other pages (although I only load one each time).
I'm using the following pdf (in page 3) as an example: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
I have added two statements to try to mimick what the simpleviewer example is doing with the linkservice, but it's not adding the page reference in the links.
(next is the modified version with these two lines)
My question is, is there a configuration that allows the pageviewer example generate links with page references?
Modified versión of "pageviewer" example:
Link to PDF file (or attach file here): http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot) I was expecting to have at least the page parameter in the href attribute, something like "#page=x"
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):