Opening a pdf file without using ABAP

Hi All,
    Can I open a pdf file in the ITS without using ABAP
    coding. I mean by using Java Script in an another
    dialog/page can i open a pdf file. If anyone has got
    any idea or sample code please let me know.
  Thanks,
   Amitabh

Hi,
  Where exactly you want to open the file?
The most simple way  would be to upload the file under MIMES and provide the URL in the corresponding ITS service.
BR,
Disha.
Pls reward points for helpful answers.

Similar Messages

  • Open *.PDF file by using ABAP program

    Hi,
    Can anyone please tell me about  " how to  open a PDF file by using an ABAP program".
    Regards,
    Prasanth

    Welcome to SDN.
    Refer this class - CL_GUI_PDF_VIEWER
    You may refer this thread also -
    Re: Open Jpg, Excel, word, pdf files from SAP screen.
    Regards,
    Amit

  • Saving a Text data to a PDF file without using print option

    Hi,
    I want to save a Text to a PDF file. I want to assign the path of the PDF file as a default one.
    If I use Print options, then it ask for the file path at the run time.
    Is there any method to save to a PDF file without using print option in Labview 8.2.
    Regards,
    Raja

    This question comes up a lot. Did you try searching? It depends on the PDF printer driver that you're using. See here, here, here, ...

  • How can I open a PDF file without first saving the file?

    How can I open a PDF file without first having to save the file?

    How can I open a PDF file without first having to save the file?

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

  • Opening a pdf file stream using java

    I am developing a web app using jsp that needs to dynamically create xml files, then using fop I convert those files into pdf's.
    I would need to be able to open multiple pdf files in a row...
    Here's what I have so far....this will only open the 1st file...
    I don't need to open the pdf files in a web browser, it can be done in acrobat reader if needs be...
    do
    if ( ( ( startRec * cache) + 1 ) <= ( min( ( startRec + 1 ) * cache, recCount ) ) )
    System.out.println( ( startRec * cache ) + 1 + "-" + min( ( startRec + 1 ) * cache, recCount ) );
    String xmlString =      xmlStart;
    for ( int n=( startRec * cache ); n<min( ( startRec + 1 ) * cache, recCount ); n++ )
    ViewFileDetailsBean viewBean = (ViewFileDetailsBean)listOfViewFileDetailsBean.get(n);
    xmlString = xmlString + viewBean.getxMLString();
    xmlString = xmlString + "/t</data>\n"; // THIS FINISHES THE XML
    pdfBean.makePDF( xmlString );
    response.setContentLength( pdfBean.getOutput().length );
    response.setContentType( "application/pdf" );
    response.getOutputStream().write( pdfBean.getOutput() );
    response.getOutputStream().flush();
    startRec++;
    }while ( startRec <= ( recCount / cache ) );
    Thanks,
    GoldenEye4ever

    I forgot to say,
    We will not have write access to the server, also, the higher-ups would like to view pdf files.. rather than extracting a zip file containing pdf files...lol
    Basically, the xml file that I was initally creating was getting far too large for java to handle, 190,000 records +,
    so i am breaking them down to perhaps 10,000 record long xml files, to be converted to pdf
    Thanks for your fast reply
    GoldenEye4ever

  • Creating an Adobe .pdf file without using the Adobe printer

    Is it possible to create a .pdf file by using Acrobat or Microsoft Word or any other program without using a printer driver? So far, when I remove the Adobe printer, I cannot create a .pdf file, as it is looking for the printer and printer driver. Is it even possible to create a .pdf without using, or having, a PDF printer of any sort? Any help on this issue would be most helpful. Thanks.

    I was trying to find a way to create PDFs without using the Adobe printer, or any PDF printer. I posed this question to see if there was a way to create a PDF without the aid of a printer or not. I mean, I know how to reinstall the Adobe printer, since I had to to see if there was another way to go about creating without using the printer. I am just curious if there is a way to create a PDF file without the aid of the Adobe printer or other PDF printers.

  • HELP! opening a pdf file and using page view

    Hi everyone!
    I'm doing a school project in which I'm trying to develop an app that opens a pdf file from the device memory (ipad or iphone) and lets the user turn pages forward and backward by swiping on the screen. Although I have very basic knowledge of C++ and Objective C programming, I find myself completely lost and don't know how nor where to start. I'd be pleased if you could help me or at least give me a starting point to develop my app.
    Thank you
    Albert

    https://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introductio n/Intro.html#//apple_ref/doc/uid/DTS40010281

  • Opening a PDF file without downloading first

    I have version 9.5.5 on my Apple desktop & my laptop. When I open a PDF document on my laptop, a window opens and asks if I want to save or open on screen. I like this feature, however on my desktop I do not get the choice, it goes to download only and I have to open from that folder. I compared preferences between the 2 computers and they are the same. Could not find a preference allowing a choice in opening a document. Can anyone help? I'm sure there is a simple solution.

    I normally use Firefox, but sometimes Safari. I have both on both computers

  • Since few days, Firefox crashes when trying to open local php files - without using localhost . It shoudn't. I tried to unsinstall everything and reinstall. But it didn't work. I use a mac osX 10..6

    I'm a beginner web developper. When I try to open php files, Firefox crashes and open millons of new firefox windows . I have no choice other than forcing Firefox to quit. When I use the localhost adress, it's Ok. But because I usually open the file directly from a folder in my HDD, (it's faster to dothis way) transforming it after with the localhost/~username/file ... it' s quite irritant.

    Hi.
    I tried logging in as a different user in the OS and that didn't work.
    Do you mean that Safari crashed there as well?
    If so, that's an indication that the startup disk needs repairing.
    Using Disk Utility to verify or repair disks

  • How do I get Adobe Acorbat to open a .pdf file from a sharepoint library without having to checkout the file

    I have a customer that is using Adobe Acrobat pro version 10.1. When they try and open a .pdf file from a SharePoint site, the user is prompted to check out and open the file or open the file. Is there a way to get Adobe Acrobat to open the .pdf file without prompting to check out or open?
    Thanks
    Jim

    This is mostly a lion thing, rather than a PSE thing. To disable applications opening where they left off last time for all the programs on your computer, go to system preferences>general and untick this box:
    You can also do on a per-program basis, but it's more complicated and the best thing to do is to search around for directions on the web and see which way is least uncomfortable for you.
    There's an odd little glitch in PSE that it opens the last image you had open, even if you closed it before quitting last time. Adobe says this is correct behavior, but of course it isn't.

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • I can't utilize my free Adobe Reader.  Help.  I can't open my PDF files sent to me.  I keep getting

    I can not open my PDF files sent using my Adobe Reader.  I keep gettting prompts to buy Adobe XI and that my free trial period is up.       

    What is your operating system?  What is your Reader version?  What means "can not"?
    Can you post a screenshot of such a message "to buy Adobe XI"?

  • Unable to open existing PDF files after downloading Adobe reader

    I have an Advent 7085 PC with Windows XP Home version 2002 service pack 2. After downloading the latest Adobe Reader 8 I cannot open any of my existing PDF files, nor can I open any new ones. I have several times downloaded it, tried it and found it doesn't work so have then deleted it from the system and rebooted. Downloaded again only for the same thing to happen again. Error message says that Adobe Reader 8.1 has encountered a problem and needs to close. Then I am advised to let microsoft know of this problem.
    Please!!! Is there anybody out there who knows what the problem might be and help me resolve it?
    Thanks
    IG

    I finally called tech support and this is what we did and it worked for me...First go to start/control panel/add&remove programs. Once the program list is configured, hilite Adobe reader and select remove. Once the program is removed, from the control panel select user accounts. Set up a new user account "test". Through user "test" go into www.adobe.com and select icon to download adobe reader. You do not need to run media player, remove check unless you want to download it. After program is downloaded and copied you can close out of adobe. At that point I was able to open my PDF files without any error message. Tech advised me to keep the "test" user set up, doesn't hurt anything to have it there. He told me that there probably was some settings under my user account that was causing a glitch in the download and that is why we opted to download through a new user account. BTW the tech support was free if you still can't get it to work. Good Luck

  • When I open a pdf file, after a few seconds, it hides the toolbar and I don't know how to get it back.  I use multiple monitors and, without being able to grab the toolbar, I am unable to move the pdf file to a different monitor.  How do I stop this?

    When I open a pdf file, after a few seconds, it hides the toolbar and I don't know how to get it back.  I use multiple monitors and, without being able to grab the toolbar, I am unable to move the pdf file to a different monitor.  How do I stop this?

    Does Firefox switch to full screen if you press F11 ?
    You can also try the F10 key to see if that brings up the menu bar.
    * If the above steps didn't help then see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Note: Do not delete localstore.rdf in the program folder (Windows: "C:\Program Files\Mozilla Firefox\defaults\profile\") (Mac: "/Applications/Firefox.app/defaults/profile/")

Maybe you are looking for