Results 1 to 2 of 2
  1. #1
    Marcus is offline Member
    Join Date
    Jun 2007
    Posts
    92
    Rep Power
    0

    Default Visualization of PDFs

    I'm having problems with the visualization of PDFs in the pages of an application.
    The idea is that when somebody does click in the Link of the pdf directly opens it in a window, the problem that I have is that when I want to record the open pdf (from the Acrobat) it puts as name the complete URL of the file.
    The code that I am using for the writing of HttpServletResponse is:

    Java Code:
    response.setHeader("Content-Disposition", "inline; filename=".concat
    ("\"").concat("FILE_NAME.pdf").concat("\""));
    response.setContentType("application/pdf");
    what is wrong ?

    Marcus :cool:

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default RE: Visualization of PDFs

    The only stranger thing which I saw are the comiles that you are putting them to the name of the file, try to leave the name of the file without comiles:
    inline;

    Java Code:
    filename=FILE_NAME.pdf

    Daniel:o

Similar Threads

  1. Data Visualization
    By jafaryj in forum New To Java
    Replies: 0
    Last Post: 11-28-2007, 07:16 PM
  2. multiple pdfs
    By mary in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2007, 05:31 PM
  3. UML Visualization (DNX file)
    By Marcus in forum XML
    Replies: 1
    Last Post: 07-06-2007, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •