File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show PDF

 
Isaac Ferguson
Ranch Hand
Posts: 831
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 297
5
Android Fedora Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  •  
    Paul Clapham
    Sheriff
    Pie
    Posts: 20171
    25
    MySQL Database
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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?
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic