0

ZK PDF Viewer

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

Senthilchettyin gravatar image Senthilchettyin flag of India
2625 3 8
http://emrpms.blogspot.in...

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

Comments

Thank you.

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

1 Answer

Sort by ยป oldest newest most voted
1

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

cor3000 gravatar image cor3000
5364 2 7
ZK Team

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)

Pdfviewer.setContent(
    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

Follow
1 follower

RSS

Stats

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

Seen: 11 times

Last updated: Apr 16

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