Skip to Content
author's profile photo
Former Member

Display of a PDF file

Hi

I have an application in which click of link opens a PDF File in same window. So I want to display PDF file in a View. For this I want to use a PAR file,in which i keep my PDF file in one of the folders under PORTAL-INF. and then on click of link i'm able to open the PDF file in the same window.

Can some body tell me how to go about this.

or somebody can tell me better approach to this.

Thanks in advance

Srikant

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Oct 03, 2005 at 05:17 AM

    Hi DV,

    Its better to use KM as the repository for the pdf files. If u use KM there is no need for creating a projetc and all.

    SAP provides KM Documnets iview. Only thing u have to give is path of the document in the KM as one of the iview property.

    http://help.sap.com/saphelp_nw04/helpdata/en/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm

    Refer to this link for more deatils abt KM Documnets iview

    Hope this Helps

    gEorgE

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 08:37 AM

    When you have a file inside the par-file (not inside the PORTAL-INF directory), then the url to this file is http://portal:50000/irj/portalapps/par-file-name/filename

    Example:

    com.test.par contains /test/testfile.txt

    then url is http://portal:50000/irj/portalapps/com.test/test/testfile.txt

    In SAP Developer studio project, these files are located in the /dist direcotry in the project.

    If you want to have the file in the PORTAL-INF directory, you can code portal component, which returns the file as content.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Samuel

      I don't want to hard code the value and file name, I want to include it in PORTAL-INF directory, Can u tell me what we have to code which returns file as content . can you please elaborate on this.

      Thanks in advance

      Srikant