Feb 19, 2014, 1:45 AM
40 Posts

Preview of the pdf attachment on mouse over

  • Category: Other
  • Platform: All
  • Release: 9.0.1
  • Role: Administrator,Developer,End User
  • Tags: Preview Attachment
  • Replies: 1

Hello everyone!

I built an Xpage with a File Uplad control; there's also a File Download control do manage the attacments.
I need to upload only pdf file .
Now, I need a preview of the pdf file , but i don't know how to do it.
It could be in dijit.Dialog window, in a new page.. it doesn't matter, I just need to see the preview of the pdf attachments on mouse over!

Have you got any hints for me ?

I think it's weird File download doesn't have this features, it's so useful !

Ajeet Kr Gupt

Feb 21, 2014, 5:32 PM
37 Posts
pdf in dialog

I think you need to be able to get a PDF to appear in a dialog. I agree its useful, but I also don't think its something that needs to be added to the product.

I had some success with adding bumbpox to xPages. Bumpbox is a lightbox clone which will handle PDF's. it will only work on desktops though, no mobile for PDF. I can give you some pointers on how to add that to an xPage if you want.

The other option is pdf.js. If you are able to have pdf.js render the pdf on the server you would have a lot more options on how to display the pdf.

The first step I think will be getting the PDF to appear inline. Then work on how to get it to display on mouseover.