Presto doesn't currently support PDF files for upload. However, that doesn't necessarily mean that you cannot accomplish what you need to. If you can host the PDF files in your web server, or in the same application server as the Mashup Server, then even a simple link to that URL will open the PDF file.
Can you explain a little more exactly how you need to have users select a PDF and then open it?
Sara, technical writer/jackbe
Even i thought of accomplishing that with the help of a web server, since i thought there might be an hidden option i was posting this question.I will explain you the scenario. There are 12 pdfs. i should be able to select one at a time according to the input . So if my input is '1' i wanted to display the first pdf and if the input is '2' i wanted to display the second pdf.Seeking your help in this regard.
Thanks,
goms
It's still not clear to me what you actually want. So some more specific questions:
1. Are you creating a custom App?
2. Are the 12 documents known? So maybe a simple HTML page with 12 links that users can click is good enough?
3. If not, can you please explain the steps you expect a user to take to select a document? And what, if anything, you expect this custom App to display when it first opens?
Sara, technical writer/jackbe
I am creating a custom app. I have written a JSP/servlet coding to display a pdf for a particular ID and runs on a web server . In the mashboard i have created an App of using default features of presto which displays data according to the ID. Now i want to fetch a document in the JSP/servlet web app according to the ID chosen in the default mashboard app. In short i want to make the JSP/Servlet web app interact with the Mashboard App. The ID should be passed from the mashboard app to the JSP/Servlet on a clicking , and the JSP/servlet and mashboard app should interact.
Sounds like you need to write a simple custom app which subscribes to a topic, published by the other app when a row is clicked, constructs an iframe which points to your JSP, passing the doc id as a url param. Something like this:
Sample.IframeApp = function( app ) { var root = jQuery(app.rootElement), doc; // subscribe to anything that publishes a rowclick event app.subscribe('*.rowclick.*', function(topic, data){
if(data.documentId && data.documentId != doc){
var w = app.width,
h = app.height;
doc = data.documentId;
root.html('<iframe style="width:'+w+'px;height:'+h+'px;" ' + 'src=http:/path-to-my-jsp/myjsp.jsp?documentId="'+doc+'" ></iframe>');
}
});
}




Hi all ,
I am developing a sample application and i need to display particular Pdfs for particular inputs. Is there any way to import pdf s in presto. Please help me in this regard. Question might look naive but pls help me .
Thanks
goms