Write PDF file to client's machine using Applet

Hi all,
I want to use Java Applet to write a PDF file into the client's computer when he/she double click the URL in browser. Can I do that and HOW. I heard that i need to signed the applet and make security manager enable, but how to do it?
Also, is it any different to do this for IE5X and NS4X browser?
Thanks for your information.

Hi,
I don't know how to do that with a signed applet (excepting if you want to write in the PDF format), but you can do this with a script (like asp) and an active X written with VB. You can build and manipulate Word or Excel Object with VB and so build dynamically your document.
When your document is ready (in the active X), you can use the distiller from acrobat (you need a license to use it) and you can create a new file on your hard drive (server side).
Your script will do the following:
1) load (createobject) the active X
2) call the method in the active x
3) redirect the client to the correct page (the new document you created)
I don't have any code to give you, but I did the same thing last year and it worked...
I think that you can also interact between an applet and an active X (I saw something like that in the forum)...
Of course this solution is running server side (the file will be created server side) but the client will be able to see his document in his browser and will be able to save it.
I hope that it can help you even if it is not with java...
Blaise

Similar Messages

  • Is there a way to download/view PDF files on the iPad without using another computer?

    I just recently purchased the new iPad. I have also downloaded iBooks and a PDF reader. Is there any way to view and/or download PDF files from my iPad, without using an outside computer? Please help!

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    One way is to get the GoodReader app. It has a built in web browser that allows you to web surf and download pdfs into GoodReader. You can read them in the GoodReader app or open them in other apps that can read pdfs.

  • Check IN a file from local user machine using Input file tag

    Hi
    We have created a webapplication using Oracle UCM. We have designed certain forms and want to give users an input field to upload images to content server.
    I included a input type file tag in my form and on submit redirected to a JSPX.
    I included on JSPX following tag when the form is submitted as follows
    <wcm:idcService service="CHECKIN_NEW_FORM" var="fileUpload">
    <wcm:idcParameter name="doFileCopy" value="1"/>
    <wcm:idcParameter name="dDocName" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocTitle" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocType" value="Document"/>
    <wcm:idcParameter name="dSecurityGroup" value="Public"/>
    <wcm:idcParameter name="dDocAuthor" value="anonymous"/>
    *<wcm:idcParameter name="primaryFile" value="C:/test.txt"/>*
    </wcm:idcService>
    I was hoping to pass primary path that a client will specify will allow the file to check in to the UCM server.But, to my dismay the tag expects that primary file be the path of file present on the Server and not on client machine accessing the webapplication.
    How can I check in file from client local machine to UCM server. I found default IdcService=CHECKIN_NEW_FORM through web-application allows one to select primary file from his local machine. But, this not the case when i do the same using the tag above. Please help how can i achieve the desired result.
    Thanks,
    Aakash
    Edited by: 856575 on Jul 19, 2011 12:31 AM
    Edited by: 856575 on Jul 19, 2011 12:32 AM

    Hi
    We have created a webapplication using Oracle UCM. We have designed certain forms and want to give users an input field to upload images to content server.
    I included a input type file tag in my form and on submit redirected to a JSPX.
    I included on JSPX following tag when the form is submitted as follows
    <wcm:idcService service="CHECKIN_NEW_FORM" var="fileUpload">
    <wcm:idcParameter name="doFileCopy" value="1"/>
    <wcm:idcParameter name="dDocName" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocTitle" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocType" value="Document"/>
    <wcm:idcParameter name="dSecurityGroup" value="Public"/>
    <wcm:idcParameter name="dDocAuthor" value="anonymous"/>
    *<wcm:idcParameter name="primaryFile" value="C:/test.txt"/>*
    </wcm:idcService>
    I was hoping to pass primary path that a client will specify will allow the file to check in to the UCM server.But, to my dismay the tag expects that primary file be the path of file present on the Server and not on client machine accessing the webapplication.
    How can I check in file from client local machine to UCM server. I found default IdcService=CHECKIN_NEW_FORM through web-application allows one to select primary file from his local machine. But, this not the case when i do the same using the tag above. Please help how can i achieve the desired result.
    Thanks,
    Aakash
    Edited by: 856575 on Jul 19, 2011 12:31 AM
    Edited by: 856575 on Jul 19, 2011 12:32 AM

  • Write a file on client from java procedure

    Hello to all, my problem is that i want to write a file from a java procedure using the normal java class. But when i try to write
    File file=new File("C:\\DiscoD\\myFile.txt");
    FileWriter fw=new FileWriter(file);
    fw.write("ciao");
    nothing happens and no file is created. How can i write a file on my pc client from java procedure?
    Thanks to anyone that want helps me.

    I want to write a java procedure loading java class on oracle with utility loadjava and this work for example for classical Hello World. Now i want to write data on a text file on my hard disk using class java calling the procedure for example in this mode:
    begin
    procedure('ciao'); //this procedure have to write on a file located on my pc the word ciao
    end;
    But nothing happens. Why? There is a special reason related to how oracle works(privileges, permission etc)?
    Thanks

  • How to retrieve system Information on client machine Using Applets

    How to retrieve video card information on client machine using applets and JNI, please suggest me on this
    Thanks
    GReddy

    1. Research platform specific OS API to do whatever you want with video cards
    2. Write C/C++ code to wrap the functionality in 1 into something looks closer to what you want to see in java
    3. Write a class that models the functionality of 2 with native methods.
    4. Write the native methods of 3 such that they call the methods of 2.
    Note that steps 1 and 2 have NOTHING to do with jni nor java. So you start by looking somewhere else for the answers to that.

  • Java applet writes to file on client, no signing necessary

    Hi,
    I wonder if this is a feature or bug:
    I download and execute in my browser an unsigned applet/jar myCharts.jar from server. The applet references classes from package org.jfree.chart, which are not packed in myCharts.jar downloaded from server, but are locally stored on client in jre/lib/ext/jfreechart.jar (and therefore JVM running the applet loads and uses these local classes from local jar).
    The applet can write the file to client disk without any problem using classes from locally loaded jfreechart.jar. If I merge both jars into a big one and load it through network, file write access is forbidden.
    I am using JRE 1.5.0.3 for Windows and default java_policy file with 2      permissions added:
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    Is it a bug, or feature ?
    According to my opinion these 2 permissions should not result in applet ability to write files using locally loaded classes.
    Thanks for your answer
    Martin

    The following is a duplicate posting in reponse to similar question:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=200482&start=0&range=30#735223
    In short, you cannot write to a server without help from servier-side software such as a servlet, cgi, ASP, etc.
    If you go with something like an Oracle database on your server, it's a non-issue because the seucirty aspects are taken care of for you.
    V.V.

  • I cannot open pdf files from one supplier when using Adobe Reader but I can using another Viewer

    I cannot open pdf files from one supplier when using Adobe Reader but I can open it if using Google PDF viewer or another viewer. The Adobe reader gives the error "There was an error opening this document. The file is damaged and could not be repaired" when I try to open the file. The version of Adobe Reader is 10.1.7, however I have tried other versions and they all fail the same way.  I have tested on a number of different PC's in different networks and all fail using Adobe Reader but work using alternate viewer. Also the PC's will open a PDF from any other source.

    Newer Reader versions are more strict than older versions (and other PDF viewers).  If certain minimum requirements are not met, Reader will tell you that the PDF is damaged.  This can happen when a document was created with software that does not adhere to PDF standards, or when the file was damaged during a download or email transmission.
    You should contact the creator of these PDFs.

  • How do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    how do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    Save as is back again - available - in Mavericks by hitting the Option key while in the app's File menu (duplicate will change to save as).

  • I cannot get Adobe ExportPDF to work. The screen is blank when I click on Select PDF files to Export.  I use windows 7.

    I cannot get Adobe ExportPDF to work. The screen is blank when I click on Select PDF files to Export.  I use windows 7. I also tried to export a document directly from Adobe Reader using the tool, but it gave me an error message. Any suggestions?

    Hi,
    Try to use different browser.
    Would it be possible for you to send me the document so that i can take a look at my end?
    You can email me at:[email protected]
    Regards,
    Florence

  • The PDF file and slideshow view corrupted using iPhoto. Macbook air only get corrupted slideshow and Mac Mini both slideshow and PDF file is corrupted.

    The PDF file and slideshow view corrupted using iPhoto. Macbook air only get corrupted slideshow and Mac Mini both slideshow and PDF file is corrupted.

    Saving as a PDF file for some users have been a problem.  If you boot into  Safe Mode and run iPhoto you can create undamaged PDF files.  We don't know why the problem but this is a workaround.
    This problem prevents many from ordering books, calendars and cards since iPhoto creates PDF file of them for uploading and printing.  Booting into Safe Mode lets them successfully order those items.

  • Unable to open PDF files from Fileserver Content Source using Browser

    The situation is this :
    A content source was created to search a fileserver
    Search facility finds the files using the browser
    Able to open MS Office files from the fileserver
    Able to open PDF files that are in the Sharepoint Portal
    Unable to open PDF files from the Fileserver
    Currently using Sharepoint 2010. PDF Filter is installed and configured on the Sharepoint Server
    Your assistance is always greatly appreciated.
    Have a great day.
    NRH

    Hello Nate,
    I have the necessary access to the folder.
    The content source addresses are
    \\172.25.136.53\KDrive\Home\Company\DAILYREP
    \\172.25.136.53\KDrive\Home\Company\TRINMAR
    \\172.25.136.53\KDrive\Process Safety Management
    NRH

  • Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hello,
    Please see the support article below for full information on viewing PDF in Firefox:
    [[View PDF files in Firefox without downloading them]]
    If you want to use Firefox's built in PDF viewer (i.e. not a plugin) then you will need to ensure that any PDF plugins are uninstalled from Firefox and that 'Preview in Firefox' is selected as the Action for PDF files (see screenshot below).
    I hope that helps. Let me know if not.

  • Why my safari browser is not opening pdf files?I'm currently using the lat 2013 macbook pro with os mavericks and all my software is uptodate?

    Why my safari browser is not opening pdf files?I'm currently using the lat 2013 macbook pro with os mavericks and all my software is uptodate? 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Client Server program using Applets for client

    Creating a client server program using Applets for the clients.
    Having problems distrubting the message from client to client
    using ObjectOutputStreams/ObjectInputSteams.
    I can connect each client to simple server and respond with by writting
    the i/o stream of each client but unable to communicate from client to client. If any one out there has in tips of creating a class of objectOutputStreams that holds a array of ObjectOutputStreams and then broadcasts the message to every client, it would be much appreciated
    Thanks.

    Cheers poop for your reply
    I never explained the problem properly. What it is I am trying to set up a Client Server program using Applets as the clients GUI. The problem is broadcasting the message to multiply client connnection(s).
    Below is code, each client can connect and send message to the server. The problems is broadcasting the message to every client connection. The every client can input a message but only the last connected client can receive the message?????? Thanks in advance..
    /*this my server class */
    import java.io.*;
    import java.net.*;
    public class Server extends JFrame
    private static final int ServerPort=8080;
    private static final int MaxClients=10;
    private ObjectOutputStream output=null;
    private ObjectInputStream input=null;
    private BroadCastMessage broadcastMessage;
    public void runServer()          
    BroadCastMessage broadcastMessage= new BroadCastMessage();
    try
    {  //connect to server
    ServerSocket s = new ServerSocket(ServerPort,MaxClients);
         //listen to port 5000 for new connections
         ///max is 25
         System.out.println("Server listening on port "+ServerPort);
    while (state.isProgramRunning())
         try
         /// sGUI.waitForConnection();//new line
         s.setSoTimeout(100);
         //enable times in server-socket
         while (true)     
         Socket incoming = s.accept();
         //wait and accept connnections from serverSocket
         //instance of the class,pases the new connection and message
         //spawn as a thread
         SocketConnection connection=new SocketConnection(incoming,broadcastMessage);
         Thread a = new Thread(connection); a.start();
         System.out.println(state.getConnectionCount()+"Connection received from :"+incoming.getInetAddress());
         catch(InterruptedIOException x){}
    while (state.getConnectionCount()>0);
    System.exit(0);
    }catch (IOException e){}
    public static void main(String[] args)
    Server s =new Server();
         s.runServer();
    /*this is my socket connection thread*/
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    public class SocketConnection implements Runnable
    private ObjectOutputStream out;
    private ObjectOutputStream output=null;
    private ObjectInputStream input=null;
    private BroadCastMessage passOnMessage;
    private Socket theConnection=null;
    private String Inmessage="";
    private int Ocount;
    public SocketConnection(Socket caller,BroadCastMessage broadcastMessage,Ocount)
    theConnection =caller;///(5000,n)
    Ocount=ncount;
    passOnMessage=broadcastMessage;
    public void run()
    try
    getStreams();
    processConnection();
    catch(Exception e)
    {String clientDetails=("connection from IP Address: "+theConnection.getInetAddress());}
    private synchronized void getStreams() throws IOException
    { //get streams to send and receive data
    //set up output buffer to send header information
    ///Ocount++;
    //create new objectoutputstream
    output=passOnMessage.getOutputObject(output,theConnection,Ocount);
    ///flush output buffer to send header info.
    Ocount++;
    //set up input stream for objects
    input =new ObjectInputStream(
    theConnection.getInputStream());
    System.out.print("\nGot I/O streams\n");
    private synchronized void processConnection()throws IOException
    //process connection with client
    String Outmessage =" count : "+status.getConnectionCount();
    //send connection successful message to client
         Outmessage=Outmessage+"SERVER>>>Connection successful";
         output.writeObject(Outmessage);
    output.flush();
    do ///process messages sent from client
         try
         Inmessage = (String) input.readObject();
         System.out.println(Inmessage);
         /* //while the connection is open each line
         that is passed from the client to the server
         is read in and is displayed*/
         messageDetails.setMessage(Inmessage);
         String CurrentMessage=messageDetails.getMessage();
         //output.writeObject(CurrentMessage);
         // output.flush();
         passOnMessage.FloodMessage(CurrentMessage);
         //sending out the message
    catch(ClassNotFoundException classNotFoundException){}
    }while (!Outmessage.equals("CLIENT>>>TERMINATE"));
    /*this my attempt at broadcasting the message to all clients
    my thinking was that you could create a array of objectoutputstreams
    which in turn could be broadcasted(bit confussed here)*/
    import java.io.*;
    import java.net.*;
    public class BroadCastMessage /// implements Runnable
    private int count;
    private String Inmessage="";
    private ObjectOutputStream temp=null;
    private ObjectOutputStream[] output = new ObjectOutputStream [12];
    //temp level of array of objects
    public BroadCastMessage()
    count=0;
    public synchronized void FloodMessage(String message) throws IOException
    System.out.print(count);
         for(int i=0;i<count+1;i++)
         try
    {  System.out.print(count);
         output[count].writeObject(message);
         output[count].flush();
         catch(IOException ioException)
    {ioException.printStackTrace();}
         notifyAll();
    public ObjectOutputStream getOutputObject(ObjectOutputStream out,Socket caller,int Ocount)
    try
    { temp = new ObjectOutputStream(caller.getOutputStream());
         AddObjectOutputStream(temp,Ocount);
    ////FloodMessage();
         catch(IOException ioException)
    {ioException.printStackTrace();}
    return temp;     
    public void AddObjectOutputStream(ObjectOutputStream out,int Ocount)
    { ///add new object to array
    count=Ocount;
    output[count]=out;
    System.out.print("\nthe number of output streams : "+count+"\n");
    }

  • Copying client machine files into the Server BY Using APPLET

    Hi there,
    I created an applet which is DRAG and DROP enabled. In this applet content page i am dropping some file and trying to copy the same files in to the server. But when i am trying to save the files my code is saving the files in clients machine.
    I thought we are embedding the applet in a browser and the applet is running in clients machine, so for the applet SERVER is the local machine and if we create any files then they will be created in SERVER machine.
    But here the files are going to be saved in clients machine.
    I SIGNED THE APPLET TO ACCESS THE CLIENT MACHINE FILES TO DRAG AND DROP INTO MY APPLET. THAT IS NOT A PROBLEM , BUT COPYING THE FILES FROM CLIENT MACHINE TO SERVER HAS BECOME A BIG PROBLEM
    please any body can help in this regards?
    THANKS IN ADVANCE.
    batta

    I cannot see how you will copy files From the Applet to the Server.
    The only method I know to transfer data from a Java-Applet-Client to a Server and back is with the named method "HTTP-Tunneling".
    This means your, your applet made a connection e.q with a Java-Servlet wich resides on a Web-Server.
    This Servlet than can write to the Server-Filesystem and respond to the Applet.
    May be you can reach a Server with PHP, but I have not yet experience with this (I did not found anything about Servlet-Response to the Applet).
    Regards Dieter

Maybe you are looking for

  • Java.rmi.MarshalException is thrown when we run JUnit TestCase

    Hi, We wrote a JUnit TestCase to test our EJBs of our J2EE project. When we run the JUnit TestCase, we are facing Marshalling Exception. Our application development IDE is WSAD5.0 and it's JUnit jar's version is 3.8.1 But the application is running f

  • QCI Implementation in SAP ECC 6.0 having IS OIL

    Hi All, I have a problem implementing QCI in my SAP ECC 6.0 having IS OIL. The SAP note 619060 details how this can be done. The note provides the C source programs which can be compiled to build executables qci_srv executable, which will be used to

  • Cluster and ASM services doesnt start automatically

    Hi, I have configured a 2 node 10g RAC environment (rac, rac2) in RHEL 4 through vmware. However the cluster services and ASM services do not come up automatically after server reboot. I have to manually bring it up using ./srvctl command. [root@rac2

  • Releasing a PO line item wise

    Hi All, Is it possible to release a PO line item wise? If so how and what are the implications? thanks, Savindi

  • Can't access image files

    Wondering if anyone can help me ..... I am deploying an applet for an intranet, about 15 local users. The applet is a simple tree view which contains links to HTML files found in the same directory on the server as the applet. These links work fine a