ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

Feature: PDFjs Controls

Open mtpultz opened this issue 6 years ago • 17 comments

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [x] Feature request
- [ ] Documentation issue or request

PDFjs seems to be using ViewerJS (https://mozilla.github.io/pdf.js/web/viewer.html) to set controls at the top of the rendered PDF for zoom, paging, and hand tool (panning). It would be great if this component used the ViewerJS controls as these tools would complete this component making it even more valuable then it already is for PDF rendering.

mtpultz avatar Jun 14 '18 16:06 mtpultz

Yes, this would be valuable to me also. A standard toolbar would be useful. Without anything standard how does one implement "print" function, or "email" function?

miles-waldron avatar Jul 03 '18 18:07 miles-waldron

+1

fralewsmi avatar Sep 13 '18 04:09 fralewsmi

Has anyone figured this out yet? I am trying to print in Edge and the usual iframe trick doesn't work due to Blob url being blocked.

AlexandrosG avatar Nov 20 '18 12:11 AlexandrosG

Basically, the toolbar and menus are not in ng2-pdf-viewer code. It only include the core to display PDF.

The standard toolbar and menu code is in viewer.html in original PDF.JS code.

longjingjun avatar Nov 21 '18 03:11 longjingjun

@longjingjun That's apparent, I'm not arguing about that. I'm mostly wondering how to hook up the print service from PDFJS. I have a wrapper component for ng2-pdf-viewer that replicates the look and feel of viewer.html but the printing functionality eludes me since it's not part of pdfjs-dist.

AlexandrosG avatar Nov 21 '18 07:11 AlexandrosG

When I run the PDF.JS example locally and access: http://localhost:8888/web/viewer.html, It shows the print button is there on the top right hand side. I tried to print and it shows me the web browser print dialog. From this information, I think the print function is in PDF.JS. The matter is about how to call the print function from Angular app.

longjingjun avatar Nov 21 '18 07:11 longjingjun

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 31 '20 15:07 stale[bot]

Please reopen this issue.

TheDevelolper avatar Oct 20 '20 13:10 TheDevelolper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 20 '20 08:12 stale[bot]

Please reopen

TheDevelolper avatar Jan 08 '21 11:01 TheDevelolper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 09 '21 12:03 stale[bot]

Please reopen

andreivictor avatar Apr 10 '21 16:04 andreivictor

@VadimDez could we reopen this please?

cyptus avatar Dec 06 '21 08:12 cyptus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 05 '22 08:02 stale[bot]

+1

LukasKlement avatar Mar 04 '22 21:03 LukasKlement

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 05 '22 00:05 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 18:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '22 16:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 26 '22 05:12 stale[bot]