wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Show PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Show PDF" Watch "Show PDF" New topic
Author

Show PDF

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
Hi

I have a javascript file which does this

When I click my button it send me to the original page without download any pdf. I suppose I should put the location of the empty pdf but how?

Would you do it this way? Am I missing something?

Regards
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 295
    
    5

Some questions:
  • What is it about the HTML page tm-renewal.htm that will cause it to generate a PDF?
  • What is this 'empty PDF' you mention?
  • Why do you have spaces in your URL?


  • Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
    Paul Clapham
    Bartender

    Joined: Oct 14, 2005
    Posts: 18541
        
        8

    It seems very strange to see Response.ContentType = 'application/pdf'; as a parameter of the URL. Does that actually do something? Do you need to do it when you have an ordinary link to the PDF at that address, or when you type that address into the browser's address bar?
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Show PDF
     
    Similar Threads
    Problem with PDFReader with CUPS PDF writer
    java.awt.xs:base64Binary for pdf
    Appending to PDF form fields using iText APIs
    Watermark image on pdf
    PdfBox, do you have to save the .pdf to a file?