1

I have a website build on CakePHP framework. I have already integrated Dompdf library for generating PDF from HTML.

And now for viewing the PDF files, I need a pdf reader that will be embedded into the website with limited capabilities so that the files cannot be printed or shared. Ideally, this would be the layout of the reader. The top would show the title of the document and people can highlight, scribble, add note to the document.

ndm
  • 59,784
  • 9
  • 71
  • 110
akash
  • 101
  • 1
  • 9

1 Answers1

1

Please try out PdfJs

It suits your needs the most and it has good documentation so you could get started quickly

  • PDF.js is mainly written for reading PDF files, not editing them. Because of that they don't yet support adding any kind of annotations. – akash Mar 29 '17 at 06:50
  • 1
    This worked out fine for me. [Annotation layer for pdf.js](https://github.com/instructure/pdf-annotate.js) – akash Mar 29 '17 at 11:10
  • you need to create your own. you can check out this video [Create annotations in PDF.JS](https://www.youtube.com/watch?v=g2YAn-Yvlss) – chitgoks Mar 13 '18 at 09:39
  • This video points to a someone who is selling what he did and not trying to explain how it's done. – user2257461 Oct 08 '21 at 07:42