Skip to main content
1-Visitor
March 5, 2020
Question

Regarding PDF view

  • March 5, 2020
  • 1 reply
  • 3521 views

Hii,
Actually i created mashup, I want to display a pdf file in a mashup (webframe), but the problem is that when i click on a grid i download the pdf file instead of display it in a webframe. Can u help me to do that.. I attached my screenshot below.

1 reply

18-Opal
March 5, 2020

Hello @DMu3,

 

You're asking two questions:

 

  1. How to fix the HTTP 404 error? For this you need to bind downloadLink as the webframe URL, not the filename or path.
  2. How to display the PDF in the webframe instead of downloading it? It's a popular question on this website, you should be able to find few existing suggestions. Here's a recent example: https://community.ptc.com/t5/ThingWorx-Developers/Display-a-pdf-file-in-mashup/m-p/645592

 

Regards,
Constantine

DMu31-VisitorAuthor
1-Visitor
March 6, 2020

Hello,
Thank you for your reply,.
Where i have to give this code?  I used service that is GetFileListingWithLinks. 

location ~* /(.*\.pdf) {
 proxy_hide_header Content-Disposition;
 add_header Content-Disposition "inline";
 ... the rest of redirect config ...
}