How to open a pdf file in JFrame

hi to all,
i need to know how to open a pdf file in JFrame. Help is needed with this would grateful, and i used the code state below..
InputStream in=this.getClass().getResourceAsStream("/images/help1.pdf");
Process p = Runtime.getRuntime().exec(in);Thanks in Advance...

this is the error which i'm getting while executing the code
init:
deps-jar:
Compiling 1 source file to /home/VEL AREA/SampleApplication/build/classes
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:3: package com.sun.pdfview does not exist
import com.sun.pdfview.PDFFile;
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:4: package com.sun.pdfview does not exist
import com.sun.pdfview.PDFPage;
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:5: package com.sun.pdfview does not exist
import com.sun.pdfview.PagePanel;
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
symbol : class PagePanel
location: class sampleapplication.Main
PagePanel panel = new PagePanel();
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
symbol : class PagePanel
location: class sampleapplication.Main
PagePanel panel = new PagePanel();
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
symbol : class PDFFile
location: class sampleapplication.Main
PDFFile pdffile = new PDFFile(buf);
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
symbol : class PDFFile
location: class sampleapplication.Main
PDFFile pdffile = new PDFFile(buf);
/home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:39: cannot find symbol
symbol : class PDFPage
location: class sampleapplication.Main
PDFPage page = pdffile.getPage(0);
8 errors
BUILD FAILED (total time: 2 seconds)
for the reply #4..

Similar Messages

  • How to open a pdf file only in one computer

    I would like to sell pdf publications by allowing  the user to open them only in one computer. I learnt that this has been done  the past when I bought  some publications but I don't know the way to do it. Could you help me?
    thank you
    Marco

    thank you for your support
    Best Regards
    Marco
    Da:     Mylenium <[email protected]>
    Per:    MARCO1 <[email protected]>,
    Data:   09/10/2013 11:09
    Oggetto:        How to open a pdf
    file only in one computer
    Re: How to open a pdf file only in one computer
    created by Mylenium in Downloading, Installing, Setting Up - View the full
    discussion
    You will havwe to sign up for some service that supports rights
    management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
    to create your own ePub stuff using Digital Publishing Suite. In any case,
    it will probably cost you money upfront before you make any revenue.
    Mylenium
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5746873#5746873
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5746873#5746873]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up at Adobe
    Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.
    Il messaggio trasmesso può contenere informazioni di carattere
    confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
    la diffusione, la distribuzione o la riproduzione da parte di altre
    persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
    questo messaggio per errore, siete pregati di segnalarlo immediatamente al
    mittente e cancellare quanto ricevuto.
    This electronic mail transmission may contain confidential information
    addressed only to the person(s) named. Any use, distribution, copying or
    disclosure by any other person and/or entities other than the intended
    recipient is prohibited. If you received this transmission in error,
    please inform the sender immediately and delete the material

  • How to open a pdf file and then attach it with images

    I am new to Indesign Server.
    I'm currently working on a pdf.
    I have a white blank pdf template.
    that I want to attach/glue it with images.
    How to open a pdf file and then attach it with images.
    Please, help me.
    Thanks.

    First step would be to make yourself familiar with InDesign desktop version.
    Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
    Then try to automate your steps with scripting (see scripting docs or forum)
    If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
    If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
    A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
    Dirk

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • How to open a pdf file in Adobe Reader using URL scheme on iOS devices

    To open a pdf files in Adobe Reader on iOS devices,
    I created url links as follows:
    com.adobe.Adobe-Reader://mysite.com/myfile.pdf
    com.adobe.reader.request://mysite.com/myfile.pdf
    But none of these does work.
    Adobe Reader starts up but never opens pdf files.
    Does anyone know how to write URL scheme?
    Thanks in advance.

    Sorry. Wrong category.

  • How to open a pdf file in signed version?

    Hello,
    I like to open a singed pdf file in the singed version mode.
    If I open the pdf with command windows.open() it's possible to change the fields of the pdf file, signed fields are displayed but we don't want to give the user the change opportunity. When I open the pdf with windows.show() then the singed fields are empty and we want to see the signed fields as well.
    When I do a right click on the signed field there is an option show signed version. Then the edit functions an interactive functions are disabled. This is the state I like to open the pdf files. How to achieve this?
    hope that someone can help me!

    this is the error which i'm getting while executing the code
    init:
    deps-jar:
    Compiling 1 source file to /home/VEL AREA/SampleApplication/build/classes
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:3: package com.sun.pdfview does not exist
    import com.sun.pdfview.PDFFile;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:4: package com.sun.pdfview does not exist
    import com.sun.pdfview.PDFPage;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:5: package com.sun.pdfview does not exist
    import com.sun.pdfview.PagePanel;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
    symbol : class PagePanel
    location: class sampleapplication.Main
    PagePanel panel = new PagePanel();
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
    symbol : class PagePanel
    location: class sampleapplication.Main
    PagePanel panel = new PagePanel();
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
    symbol : class PDFFile
    location: class sampleapplication.Main
    PDFFile pdffile = new PDFFile(buf);
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
    symbol : class PDFFile
    location: class sampleapplication.Main
    PDFFile pdffile = new PDFFile(buf);
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:39: cannot find symbol
    symbol : class PDFPage
    location: class sampleapplication.Main
    PDFPage page = pdffile.getPage(0);
    8 errors
    BUILD FAILED (total time: 2 seconds)
    for the reply #4..

  • How To Open a PDF File in a Oracle Forms

    hi
    all
    I have a Open a PDF file in a PDF viewer when i Press a Button and Check if File is Exit in given Location then open Or Message .
    How This is Possible.
    Help

    this code runs on the webutil configred machines
    PROCEDURE Open_Doc
    IS
    -- Open a stored document --
    LC$Cmd Varchar2(128) ;
    LC$Nom Varchar2(100) ;
    LC$Fic Varchar2(128);
    LC$Path Varchar2(128);
    LC$Sep Varchar2(1) ;
    LN$But Pls_Integer ;
    LB$Ok Boolean ;
    -- Current Process ID --
    ret WEBUTIL_HOST.PROCESS_ID ;
    Begin
         -- Local temporary file name --
         LC$Sep := WEBUTIL_FILE.Get_File_Separator ; -- 10g
         LC$Nom := Substr( :FILE_NAME, instr( :FILE_NAME, LC$Sep, -1 ) + 1, 100 ) ;
         LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
         LC$Fic := LC$Path || LC$Sep || LC$Nom ;
         -- File extraction --
         If Not Webutil_File_Transfer.DB_To_Client
    LC$Fic,
    'CLM_CASE_ATTACHMENTS', ---------table name
    'DOCUMENT_PIC', ----------field name of the picture(blob)
    'CASE_ATTACHMENT_ID = ' || To_Char( :CASE_ATTACHMENT_ID )-------where claues
    ) Then
    Raise Form_trigger_Failure ;
    End if ;
         -- Open the local temporary file --
         LC$Cmd := 'cmd /c start "" /WAIT "' || LC$Fic || '"' ;
         Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
         LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
         If LN$But <> 0 Then
         LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Raise Form_Trigger_Failure ;
         End if ;
    end;

  • How to open a PDF file using NWDS or VC

    Hi Frndz...
    As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
    Thanks in Advance
    Regards
    Rajesh
    09903726944

    hi,
    can you put your question much more clearly? I couldnt get you properly.
    Check out the following links, they may be useful
    [How to Create a pdf form Using Web Dynpro - Java;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
    [Diff - PDF view inside NWDS livecycle designer and when App. is run;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
    Regards,
    Murthy.

  • How to open a PDF-File in a browser with 50% screen view and without any modification rights?

    Hello everyone,
    i have the following problem. I would like to open a PDF-file on my web-page in a new window but this file should be shown without any option to Print, Save, Copy or resizing option (Increase and Decrease in percentage size).
    Is this actually possible. The perfect solution would be if the the buttons to print, save, copy, increase/decrease would not only be disabled but completely blinded out. My perfect solution would look like below so that the user can only navigate through the pages but he/she cannot do anything else.
    Hopefully, someone can help me out.
    Thank's a lot,
    Jo

    Hi Alexandre,
    I don't think this is possible with the current APIs that
    HTMLLoader exposes. (Unless webkit supports object tags that takes
    the source data in base 64 encoded form, which I think is unlikely)
    But it is a good feature to have. Please file a feature
    request at
    http://www.adobe.com/go/wish

  • How to open a pdf file in Acrobat Reader from a webdynpro application

    Hi,
    I need to open a pdf file stored in the server from a web dynpro application. The pdf needs to be opened in the stand alone reader at the client and not in a reader embedded in the browser.
    Cheers,
    Krish

    Hello,
    I'm fairly new to webdynpro and am trying to  render a pdf via webdynpro.
    The webdynpro application runs but I see only a blank screen with the title.Is there any specific setting I need to do in order to view this pdf?I have used the FileDownload-UIElement.
    Thanks in advance
    Biraj

  • How to open a pdf files?

    Just a week ago, I was able to open my pdf files that were created in 2013 until my adobe reader was updated to X!. What will I need to do? Please help. Thanks.

    "weird" and "strange" doesn't explain anything.
    Can you post a screenshot?  See http://forums.adobe.com/thread/1070933

  • I can't remember how to open a pdf file that I saved in My Documents.

    At one time I knew how to open a pdf saved in My Documents on my iMac, but I can't remember now. I need to open this document because it's for my taxes. Any help will be greatly appreciated.
    ~ Sue

    Care to share which OS you are using?

  • How to open the pdf file using LabVIEW program

    I want to open the pdf file using the system exe, but it is not happening . Can you help me?
    Solved!
    Go to Solution.

    In simpler version
    Mark the satisfied answer as accepted solution for your question,you mistakenly marked youself 
    Message Edited by Baji on 04-07-2009 05:03 PM
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    open pdf.JPG ‏25 KB

  • How to open report.pdf file? getting error message file cannot be previewed pdf preview handler

    how can I open a report.pdf file that shows error: file cannot be previewed because of an error w/ pdf preview handler

    Hi pfmercerville,
    If you are running the 64-bit version of Windows 7 (or Vista), you will find that your PDF files do not preview in Windows Explorer as they do in the 32-bit versions. Instead, all you see is a message stating that This file can’t be previewed. To enable this functionality on your 64-bit operating system, follow these steps.
    1. Click the Orb (Start Button).
    2. Go to the Search programs and files textbox and input regedit.
    3. Select regedit.exe from the results.
    4. When the UAC prompt appears, click the Yes button.
    5. In the left pane of the Registry Editor, go to (and select):&#8232;
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{DC6EFB56-9CFA-464D-8880-44885D7DC193}
    6. In the right pane, locate AppID.
    7. Change AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}.
    8. Restart your computer for the change to take affect.
    Regards,
    Rave

  • How to open protected pdf files.

    I am trying to find out how to get my new tablet to allow me to open password protected pdf files.

    It sounds like you have DRM-protected PDF files, which are different from password-protected PDF files.
    Are your PDF files protected with Vitrium's Protect PDF technology?  None of the Mobile version of Adobe Reader (e.g. Reader Touch, Reader for iOS or Android) currently supports it because it's a proprietary technology.
    Your school should have the information about which PDF viewer to use to open those files.  Does it tell you to use Adobe Reader?  If so, you might want to try the desktop version of Adobe Reader XI.

Maybe you are looking for

  • TX1120US, Windows 7 RC and drivers that work

    Is HP planning on offering Windows 7 drivers that work with the TX1120US Pavilion Laptop?  I was recently warned that my Windows 7 Beta needed to be upgraded to Windows 7 RC (by Microsoft) and so.... I forged ahead.  However, many of the devices on t

  • Cannot Install CS5 trial version on Vista 64 bit...been weeks..please help..!

    I've been trying to install the CS5 for a couple of week now but cannot get it to install. I've tried lots of things I've seen in the forums but I still cannot get it to install. I'd appreciate it if someone could offer some help and direction to ste

  • Pages-created document cannot be opened

    I created a few documents within the Pages iOS application. I have created copies of a few of them. Now the orignal and the copies of the document will not open at all in Pages. Nor will the edit function that enables the ability to send the files wi

  • Using 'Function Returning SQL Query' with Flash charts

    I have created a pl/sql function that returns a SQL query as a varchar2 of this form: select null link <x value> value <Series1 y value> Series 1 Label <Series2 y value> Series 2 Label <Series3 y value> Series 3 Label from tablea a join tableb b on a

  • Default units of measure FM10

    can the default units of measure be set so they always read in mm instead of inches, rather than having to switch every time I open a document? I am beginning to find this really irritating. Using FrameMaker 10, windows 7, 64 bit system