How to open a PDF within a PDF viewer embedded in a html page

Hi. I'm trying to modify a jsp that opens a runtime generated pdf. Originally, the pdf is opened by prompting the Adobe Reader program, but now I need to open the pdf within the jsp (which also have other content, not just display the pdf). I tried to embed the pdf in an iframe (similar to this: http://www.cs.tut.fi/~jkorpela/html/iframe-pdf.html ), but not works, it still prompts the Adobe Reader program. Actually the pdf content is generated on runtime and output through a servlet's output stream (this servlet is written by someone already left), what i did is try to open this servlet url in an iframe. If the iframe src is really a pdf file, it really works. But now the url is a servlet that output a pdf, is there anything special needed to do in the servlet in order to fulfill my requirement?

i'm a bit confused...sounds like you don't like the adobe reader welcome screen poping up....or perhaps even the quick buttons that would surround the document. i believe these are unavoidable.
It also sounds like you have a servlet that returns a application/pdf mime type. ( or is at least capable of) you should be able to mark that as the source of your iframe and have no issues. i personally don't use a servlet...i use a jsp...its very easy...here's the code:
<%
     response.setContentType("application/pdf");
     MyDataBean db = new MyDataBean();
     try {
          /* pass parameters and outstream for return */ 
          db.generatePDFFile( request, response.getOutputStream());
     } catch ( Exception e ) {
          response.setContentType("text/html");
          out.print( "there was a problem with your request..." );
%>gl, hope that helps.

Similar Messages

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

  • Is it possible to nest a PDF within a PDF?

    Is there any way of nesting a PDF within a PDF? In word for example you can have a thumbnail image which will then open into a PDF, however when you then change the entire word document into a PDF the nested PDF files no longer open into a new window or expand at all.
    Any help would be much appreciated
    Thank you
    Sam

    You can manually attach a file in a pdf file. There is no reason the file could not be a pdf file.

  • Is there a way to create a PDF within a PDF?

    Hi!
    I am creating a PDF form using Adobe LiveCycle Designer.  The group that I am creating this form for would like to have their customers fill out the form itself but then also have a form that is attached to the original form where the users would give more detailed information or fill out a chart.  They would then like the original PDF form along with the attached PDF form to be emailed to them.  Is the PDF within a PDF possible?  I know you can attach a file as a comment (though for some reason it is not working now - I don't know if it is because my form is now a dynamic PDF) but I don't know if you can attach a file another way then be able to update and save it.
    Thanks~
    Jodi

    It almost sounds like you are trying to do forms in a package format (needs at least AA8 on the user end). You might find a useful example at grants.gov in terms of one of the submission packages. I think you can download those (I generally get them from our contracting office). The basic package had several forms embedded already and there was an option to add more - sure sounds like what you want to do. Whether you need to create such a package in Acrobat or Designer is not something I can answer. Good luck.

  • How do you open a link within a PDF in a new window?

    I created a PDF that will be viewed in a browser. Is there a way to set the links within the PDF to open in a new window?

    Did you get an answer to this?   I am having the exact same issue.  My source html document has a link which specifies a target of _blank, but when I generate a pdf from that html doc, view the PDF in my browswer, and click the link, it overlays the PDF instead of opening a new window with the linked URL.  I've seen this posted as an issue a number of times, but have yet to see a solution.

  • How do I make hyperlinks within a PDF (loaded on a website) open in a new window?

    I dont want the user to have to click the back button to navigate back to the webpage.
    When I made the button in the pdf, I used the action: Open a web link.
    When viewing the file within acrobat it obviously opens the link through my browser, however, when its loaded to the site, it just opens in the same browser window.
    Has anyone managed to solve this issue before?
    I have trawled through many forums now and not found anything appropriate. If someone has seen a solution to this somewhere else then please do share the link.
    Many thanks,
    Z

    The only way to do it, and even that doesn't always work, is by using a script. The basic code to use is:
    app.launchURL("http://www.google.com", true);
    The second parameter tells the browser to open the link in a new window.

  • How to open all subfolders within a folder

    I have a rather large folder of photos with many subfolders and further subfolders. At least a couple hundred folders.
    I would like to open them all so I can compare by name looking for duplicates and for size so I can delete the very small ones.
    Can someone tell me how to open them all?
    Thanks

    This is great! In the off chance anyone else is trying to do this, this is also useful if you have Papers and you want to switch to Mendeley. Papers keeps PDFs all organized by year and then author so the PDFs are all nested in subfolders. If you option-click the triangle next to the Papers folder, it will then show all the PDFs. Select All and then drag over the whole thing into Mendeley. I just imported my entire collection in under a minute. Glad I looked this up!

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some
    light on the h264 use in flash.
    Instead of displaying a progressive download .FLV video , I
    am trying to have an MPEG4 /h.264 approx. - a 30meg video display
    in flash in an .html page. Quicktime is easy to do, but Flash is my
    goal.
    I read several articles on h264 and flash 9, including this
    adobe
    H264 article but was hoping there might be an easier and maybe
    quicker solution. I did try renaming the .mp4 extension to .flv in
    dreamweaver but it did not display the video. (...unless it was
    downloading the video completely before displaying...not sure)
    There is a ton of sites, blogs and articles on h.264 and how
    flash 9 will display it...but when it comes to how one might
    actually have h.264 in flash on their own site...I am finding it
    difficult to figure out.
    Forgive my lack of action script and Flash knowledge...any
    direction is appreciated.
    Erick

    ...well I did follow that article on playing an h264/mpeg4
    video in flash. It works well, but how would you add playback
    controls?
    FLVPlayback component only allows you to source an FLV video
    not h264/mpeg4.
    This is probably a simple as3 answer...but I am not
    knowledgeable on as3 to know what code to add.
    Any suggests or direction that I should look would be great.
    In the meantime I am researching actionscript 3 to find and anwer.
    E.

  • How to use a jdbc query result to redirect to a variable html page

    uh, my problem is that i'm making a servlet which should redirect to a variable html page based on jdbc query (I'm really sorry if this is not the correct forum to post it, but since it's jdbc i thought it was).
    Anyway, the problem is that when a string say, "mystring" is equal to the value in a column, say "column1" of the database then page should redirect to "mystring.html".
    Is this possible, if so then how?
    and if not then is there any other way to solve my problem?
    please, help!!
    thanks in advance.

    uh, since i've already asked man, please gimme an answer if you know, it'll be appreciated.
    OK, HERE'RE THE DETAILS:(as you requested them)
    i have an html page where there's a textfield say "t1", the value of that text field is sent to the servlet which compares the value of the field with the value in Database, say "db1" in column say "column1".
    if there's a value in the column matching the value inputted in the textfield, then i need the servlet to redirect to an html page of the same name as inputted in the textfield. Hope that helps you understand.....
    thanks in advance.......

  • How to use getContent() method in custom JSP Provider to display a HTML Pag

    Hi,
    If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
    I want the code in the provider java file to for the getContent method...
    Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
    I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
    Pls get me the getContent() method code to retrive the JSP file..
    satyabrata

    Hi,
    You don't have to do anything in the custom JSPProvider's getContent method except the call {  return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Sanjeev.

  • How to execute an applet after a button was clicked in an html page?

    the title says it all..
    I have an applet, and I want it to run only after I click a button, anyone knows how to do that?

    here is htmlpage
    www.somepage.com/index.html
    index.html has a button the hrefs to /yourapplet.html page
    www.sompage.com/appletPage.html

  • How to combine PDFs into a single PDF and preserve links between original PDFs within single PDF

    Acrobat Pro can combine multiple PDF files into one PDF file.
    However, during this process not all links are supported.
    Links within the individual PDF files that are combined seem to work in the single resulting PDF file.
    Links that were between the individual PDF files when combined do not seem to work in the single resulting PDF file.
    Combining the PDF files should support the links that were btween the original individual PDF files in the resulting single PDF file.
    How can this be done?

    Sorry, not possible.

  • How to open a byte array of pdf into acrobat reader dynamically..

    hi,
    my java program is connecting to a url and downloading various file(.pdf,.xml format) into hard-disk. now the requirement is if user select "Preview" button, then file is downloaded and opened with appropriate application(acrobat reader for .pdf file) but not saved anywhere in hard-disk ...
    any idea, any hint any help is welcomed..
    thanks in advance..

    hi friends,
    i got the solution. i am using one external api of adobe acrobat, through which i am able to stream pdf document in form of byte array into acrobat viewer,without writing data in any file.
    so my work is done.. :)

  • How to open a link in secure pdf on iphone?

    I got a secure pdf in my e-mail. I've already type in the password and be able to open the pdf. However, what I want to see is in the link in that pdf. I touch the link but cannot open the file. Please advise.

    I cannot copy the link. It's not show up the URL. I have to click on the link on that pdf. I also try on Acrobat Reader App.

  • Open an attachment (non-PDF) within a PDF document (via button/link/other)

    Good morning,
    I have a PDF file where I attached an excel file and I'd like to use a mechanism (button/link/other) in the PDF to open the attachment. I read the the link technique only works if the attachment is a PDF. Is that true ? Is there anything else I could do to achieve this ?
    Thanks,
    Fabrizio

    This can't be done with a script, but you can do it manually by going to
    the link you created, editing the "Go to a page in another document" action
    in it and then setting the "Open in" option to "New Window".
    This can also be done with a stand-alone tool, but that is more
    complicated, of course.

Maybe you are looking for

  • HP Officejet Pro 8620 e-all-in-one printer & dual band router

    Hi, I'm hoping someone will be able to confirm whether this printer is compatible with my router which is a dual band 2.4 GHz and 5 GHz. I am not able to connect it to the internet. The box says that the printer is compatible only with 2.4 GHz router

  • "Touch Gestures" Option Missing from Photoshop

    I am using a Surface Pro 3 with Photoshop CC (2014). When I follow instructions to enable Touch in Photoshop (Edit -> Preferences -> Experimental Features -> tick the boxes next to "Scale UI 200% for high density displays" and "Use Touch Gestures) th

  • Tree is not appearing after login

    Hi, We have created a tree in 0 page.So we are able to access the same tree in all pages. I am having around 10 pages in my application with one standard tabset. Now my question is whenever i login for the first time tree is not appearing. If i navig

  • Unplanned Delivery Cost

    Dear All , I need to post undelivery cost for a single PO and i receive the invoice after final delivery . How can i  enter the following unplanned delivery costs for this PO ? Thanks Dash

  • No Version Cue in Bridge

    I am trying to connect to a version cue server using bridge but the connect menu is not showing up under tools.