ZK PDF Viewer

asked 2020-04-15 22:54:47 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8

How to provide input for ZK PDF Viewer.

Hello, i am storing PDF Files in the server and path is stored in the database. I've already provided download option for the same. Now i am trying to provide new PDF Viewer option.

Note : Example path for stored pdf /home/ubuntu/data/Allergy/EDI837PISASegment.pdf

delete flag offensive retag edit


Thank you.

Senthilchettyin ( 2020-04-16 16:07:10 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-16 15:26:04 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2020-04-16 15:27:40 +0800

just use Pdfviewer.setContent with an AMedia (I assume you already use AMedia for download, so there's almost no difference)

    new AMedia("EDI837PISASegment.pdf", "pdf", "application/pdf", 
               new File("/home/ubuntu/data/Allergy/EDI837PISASegment.pdf"), true));
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2020-04-15 22:54:47 +0800

Seen: 12 times

Last updated: Apr 16 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More