Including java applets in pdf documents

Dear all,
I would like to include a java applet in a pdf document. Is this possible? If so, how would I go about it?
Thanks,
Philip

A google search threw up the following:
JView Acrobat Plug-in for Incorporating Java Applets into PDF Documents
Acrobat Plug-in allowing generic network-aware and standalone Java Applets to be incorporated as content within PDF documents.
See
http://www.giavaneers.com/technology/technology.html
Sorry, I have no other information about this item.

Similar Messages

  • Java Applet - Printing Pdf Files

    Hi
    Can anyone suggest me some libraries to print pdfs using Java Applets. I have tried using the SmartJPrint library but its giving me error when I try printing pdfs using applets.
    Thanks
    nikhil

    SmartJPrint web applets have changed recently and works to be fine every time. You might try these links for printing of existing pdf, pdf viewing, pdf print, pdf silent printing from a command line or silently printing a pdf from a browser page.
    http://www.activetree.com
    Demo that print a PDF from a browser page silently.
    [This demo printing control parameters as part of the PDF url. Interestingly this pdf print demo from browser works for a remote PDF URL that dynamically generate a PDF and then prints to the printer. In this demo you have the option to enter your URL that is either a PDF or a PDF generating URL that eventually generates a PDF and then prints.]
    http://www.activetree.com/silent_print_from_browser1/start.jsp
    [PDF print silently or using user choice dialog from the applet. PDF printing parameters such as printer name, auto page size detection, paper size selection, fit to page etc. are made as choice. This demo too print a PDF or more than one PDF as a batch pdf print. You have chice to submit the pdf print job as a separate print job or as one pdf print job.]
    http://www.activetree.com/silent_print_from_browser2/start.jsp
    These two links are opening their PDF viewer applet for viewing your local or remote PDF files.
    http://www.activetree.com/demo/pdfapplet/pdfviewer.jsp [Open the PDF viewer inside the browser frame itself. When browser resize the applet resize too.]
    http://www.activetree.com/demo/pdfapplet/pdf_viewer_no_frame.jsp [Opens the PDF viewer in a new Java frame window]
    Edited by: jatima123 on Nov 20, 2007 10:19 AM

  • Include EPS image in PDF

    Hi.
    I Want to include EPS image in PDF document but i don't know how to!
    Please help me, i don't found in the PDF referece how to!
    Thanks bye!

    > The PDF reference don't talk about that.
    It doesn't talk about it, because you cannot do it directly. The same
    with any other vector format, like WMF.
    Think of the problem as two stage:
    1. Convert your vector format to PDF.
    2. Merge the PDF content into your PDF.
    The simplest way to merge content is to take a page from your new PDF,
    turn the page into a form XObject, and add the form XObject to the old
    page. Then add q/cm/Do/Q to the page stream of the main page.
    For step 1, convert PostScript to PDF, you may want to make use of
    existing tools. Otherwise, this is a fascinating project but not less
    than 4 solid years of work.
    Aandi Inston

  • Print- Save as PDF from Java applet on a webpage in Safari

    I am on a Mac running OS X version 10.8.5 and Safari version 6.1.2.  I am using the website www.wordle.net, which uses a Java applet to create a Wordle. The applet has a print button.  The website FAQ says I should be able to save a Wordle as a PDF on a Mac.  When I try to do this I get a small dialog that simply says "Error whilte printing."
    Here is some of the system.log:
    Mar  4 16:57:54 Kroghs-iMac.local sandboxd[602] ([557]): java(557) deny file-write-create /private/var/folders/f0/c8r_ry6d4131x95phl6fv7kr0000gn/T/WebKitPlugin-f12Pu6/53 164c620f81b
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x96096].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x97097].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x98098].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x99099].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x9a09a].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:55 Kroghs-iMac.local java[557]: Printing failed because PMSessionBeginCGDocumentNoDialog() returned -108.
    I've removed the Adobe plug-ins from /Library/Plug-Ins
    Print->Save to PDF works from Safari when I am on a regular webpage.
    Print->Save to PDF works from Pages
    Help!  I want to make Wordles for the teachers at my kids school for Teacher Appreciation Week.

    YES!!!!!!!
    I was pulling my hair out last night over this. I noticed the Find function was not working properly. I KNEW there was something in the PDF and Preview was not showing it. I spent 2 hours trying to find someone with a similar Find function problem, but could not find much. Also, it could not copy and paste text. I KNOW it worked before because I had taken notes on this particular PDF and had copy and pasted whole paragraphs for myself into Pages. Which is what got me searching online tonight.
    I re-downloaded the same PDF. When first opened in Preview, the Find and copy/paste functions worked. Same thing in Acrobat reader and Acrobat Pro. After confirming this, I re-opened it in Preview, highlighted some text and closed. It asked to Save Changes and I did. I immediately re-opened it, and guess what? Find no longer works and neither does copy/paste. Just to be sure, I tried re-opening in Acrobat reader and Pro; same thing. No copy/paste, corrupted Find feature. Well, copy/paste sort of functions, its just that it pastes a square with an alien head in it that says "Private Use 100000 Plane 16".
    And finally, on some PDFs that have not even been saved in Preview, the Find function is not working properly also. It happened on the re-downloaded PDF I just talked about. It finds many instances of the word, bit the left and right arrows next to "Found on X# Pages are greyed out and do not move through the document. Once I go to the left pane that displays page thumbnails and click on a few different ones, THEN it starts working.
    So yes, Apple, Preview is corrupting PDF files upon save, AND it is not working properly on other files. Please fix this. PLEASE.
    And my specs are the same as Gary; iMac 27 inch Late 2009, Yosemite 10.10.1. Is ANYONE else having this issue with a different Mac?

  • PDF document in a Swing Applet?

    How can you display a PDF document in a Swing Applet?

    I have implemented a document archiving solution that provides a Swing UI to search a database for available documents. All the documents in the archive are in the PDF format. To accomplish this I use an html frameset where a Swing applet is displayed in one frame and the PDF document is displayed in the lower frame. I use LiveConnect to have my javascript communicate with the applet. My applet calls a javascript function that causes the URL of the lower frame point to the PDF document. This works fine, but I would rather use an all Java UI instead of depending on the browser and javascript.
    How can we get Adobe or Sun to address this need?

  • Can I save as pdf when printing from a Java applet on a webpage in Safari?

    I am trying to use a webpage that is running a Java applet. A dialog comes up that asks me, "Do you want to run this application?" The dialog also says, "This application will run with limited access that is intended to protect your computer and personal information." I select "Run". The applet generates an image I want to print.  There is a "Print" button on the applet.  I select "Print". A Security Warning dialog comes up that says, "The applet has requested access to the printer. Do you want to allow this action?" I select "OK".  The Print dialog comes up.  I choose the PDF button in the lower left corner. I choose "Save as PDF...". A second Print dialog comes up.  I input a title in the Save As box.  I choose Desktop in the Where box.  I do not change anything else and select the "Save" button. A dialog appears that says, "Print Error while printing." There is an icon with paper, a pencil, a ruler and a paintbrush on the dialog. 
    Is this an issue with Apple and Java security?  Does "run with limited access" mean I can't print and save as PDF? Should I upgrade to Mavericks?  It seems like others have not been happy with Mavericks and have had problems saving as PDF with Mavericks. How do I let Apple know about this error?  The error dialog is useless. 
    I am on a Mac running OS X 10.8.5 and Safari 6.1.2.  My Java version is 7 update 51.
    What other information can I provide to help solve the problem (if it can be solved)?
    Thank you for your help!

    Correction I would like to save as PDF/A-1b
    for archiving.
    http://www.adobe.com/enterprise/standards/pdfa/

  • Problem in printing pdf document with java code

    Hi All
    I want to print a pdf document with java code i have used PDFRenderer.jar to compile my code.
    Code:
    File f = new File("C:/Documents and Settings/123/Desktop/1241422767.pdf");
    FileInputStream fis = new FileInputStream(f);
    FileChannel fc = fis.getChannel();
    ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
    PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page
    PDFPrintPage pages = new PDFPrintPage(pdfFile);
    // Create Print Job
    PrinterJob pjob = PrinterJob.getPrinterJob();
    PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
    pjob.setJobName(f.getName());
    Book book = new Book();
    book.append(pages, pf, pdfFile.getNumPages());
    pjob.setPageable(book);
    // System.out.println(pjob.getPrintService());
    // Send print job to default printer
    pjob.print();
    but when i am running my program i am getting error
    Exception in thread "main" java.awt.print.PrinterException: Invalid name of PrintService.
    Please anybody, knows the solution for this error?
    Thanks In Advance
    Indira

    It seems that either there is no default printer setup or you have too many printers or no printer setup at all. Try running the following code. It should print the list of available print services.
    import java.awt.print.*;
    import javax.print.*;
    public class PrintServiceNames{
         public static void main(String args[]) throws Exception {
              PrintService[] printServices = PrinterJob.lookupPrintServices();
              int i;
              for (i = 0; i < printServices.length; i++) {
                   System.out.println("P: " + printServices);
    }From the list pick one of the print service names and set it explicitly like "printerJob.setPrintService(printServices);" and then try running the program.

  • How to include more than 12 files in a new PDF document?

    I have a Adobe PDF Pack, and when I click on crating a new PDF document, they say that I cannot combine more than 12 files...!
    And I want to have a document of hundreds of pages!
    Someone can help me?
    Pleeeeaaase!!!!!!

    Hi Hisami,
    Thank you very, very much!
    It is very useful what you explain.
    One only question, since I have the trying version of Acrobat Pro: how many files can you combine at the time with it?
    May be it depends on the files size.
    I tried yesterday to combine 50 files at the time and it just blocked everything...
    Thanks a lot!
    Have a very good day.
    Henric
    Henric Caldas
    30 rue de Belleville
    75020 Paris
    Home : +33.1.46.36.04.55
    Mobile : +33.6.59.08.02.27
    [email protected]
    Le 28 janv. 2014 à 22:48, "H.Spector" <[email protected]> a écrit :
    Re: How to include more than 12 files in a new PDF document?
    created by H.Spector in Adobe PDF Pack (formerly CreatePDF) - View the full discussion
    To combine more than 12 files into a single PDF file:
    1. Combine file 1 to file 12 then name it (combined 1 for example)
    2. Combine file 13 to file 24 then name it (combined 2 for example)
    3. Keep doing those steps #1 and #2 then combine "combined 1, Combine 2.....Combine 12).
    Another way is to use Adobe Acrobat. Please download Acrobat XI Pro Trial version from www.adobe.com or you can upgrade your subscription to Acrobat Plus(please see more information about Acrobat Plus subscription at https://www.acrobat.com/acrobatplus/en/home.html?trackingid=JPZKR).
    In Acrobat XI Pro:
    1. Launch Acrobat
    2. Select "File" menu > Create > Combine Files into a Single PDF
    3. Click "Add Files" button at top left corner
    4. After adding your files click "Combine" button at the bottom of the dialog.
    Thank you
    Hisami
    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/6062261#6062261
    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/6062261#6062261
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6062261#6062261. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack (formerly CreatePDF) at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • PDF document in Java application

    Hi All,
    Is it possible to show a PDF document in Java application, Using JEditorPane or.....?
    Regards,
    Byju

    What makes you think so? There's a screenshot on that page presenting a Metal GUI, so it's compatible with Swing. Also, there are lots of other solutions ...

  • Printing a PDF document using Java 1.4 Printing API

    Hi,
    When I tried to print a PDF document using JAVA 1.4 Printing API, I got the following exception.
    Exception in thread "main" sun.print.PrintJobFlavorException: invalid flavor
    at sun.print.Win32PrintJob.print(Win32PrintJob.java:290)
    at Printing.main(Printing.java:40)
    I am able to print the same PDF document using Acrobat reader.
    Is PDF format not supported in JAVA 1.4 printing API? or is something wrong in my code?
    here is the sample JAVA program that I was using
    import javax.print.*;
    import javax.print.attribute.*;
    import java.io.*;
    public class Printing {
    public static void main(String args[]) throws Exception {
    String filename = args[0];
    PrintRequestAttributeSet pras =
    new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUT_STREAM.PDF;
    PrintService defaultService =
    PrintServiceLookup.lookupDefaultPrintService();
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream(filename);
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(fis, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    System.exit(0);
    Thank you
    Sumana

    Here's a pure Java solution (that works!):
    http://www.mycgiserver.com/~zhouwu/pdf/readme.html
    The caveats are:
    - prints only to the default printer
    - requires a properties file located in the home directory
    my workaround for the last:
         * Print a PDF file to the default printer (might consume lots of memory!).
         * <p>
         * <b>Required:</b>
         * <ul>
         * <li>a file "acrobat.properties" needs to be in the working directory. The content is:
    <table align="center" bgcolor="#E0E0E0" border=1 cellpadding="10" cellspacing="0"><tr><td><pre style="margin-top:0; margin-bottom:0">
    #com.adobe.acrobat.Viewer Properties
    #Wed Oct 29 20:34:05 PST 2003
    com.adobe.acrobat.AcceptedLicAgreement=true
    com.adobe.acrobat.Fax_Fine_Mode=true
    com.adobe.acrobat.Find\:FindAll=false
    com.adobe.acrobat.Find\:FindBackwards=false
    com.adobe.acrobat.Find\:FindWholeWord=false
    com.adobe.acrobat.Find\:MatchCase=false
    com.adobe.acrobat.Open_Dialog_Directory=C\:\\temp\\
    com.adobe.acrobat.Open_Dialog_File=itext.pdf
    com.adobe.acrobat.Print_Method_Known=true
    com.adobe.acrobat.Shrink_To_Fit=false
    com.adobe.acrobat.SitePreferencesURL=file\://localhost/C\:/pdf/acrobat-site.properties
    com.adobe.acrobat.Use_Print_Server=false
    com.adobe.acrobat.util.fontDirectories=C\:\\Winnt\\Fonts
    com.adobe.acrobat.util.fontIgnoreExtensions=.fon;.pfm;.ini;.lst;.txt;.doc;.ttmap;.z;.enc;.dir;.afm;.f3b;.pfa;.spd;.ps;.bepf;.map;.alias;.scale;.all;.upr
    </pre></td></tr></table>
         * <li>The JAR files PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip in the CLASSPATH.
         * </ul>
         * <p>
         * Note: the file "acrobat.properties" is expected to be in the user's home directory. As this is not always feasible,
         * the system property "user.home" is mapped to "user.dir" for the time of execution.
         * @param fileName Name of PDF file to print.
         * @throws Exception on error.
         * @see <a href="http://www.mycgiserver.com/~zhouwu/pdf/readme.html">PDF Server (Silent) Printing</a>
        public void printPDF(String fileName) throws Exception {
            String oldHome = System.getProperty("user.home");
            System.setProperty("user.home", System.getProperty("user.dir"));
            PDFPrinter vi = new PDFPrinter();
            vi.activate();
            vi.setDocumentInputStream(new FileInputStream(fileName));
            vi.printAll();
            System.setProperty("user.home", oldHome);
        }//printPDF()I just need the following additional files in my CLASSPATH: PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip. Despite the note at the site above that "printing quality is not very good", i can't agree: the print quality is quite good. Not perfect, but acceptable for most uses.
    (Tested on Windows 2000 SP4, J2SE 1.4.2_03, hp laserjet 2300dn)

  • How to include several PDF documents into just one file?

    I have a Word document with 6 pages that I saved in PDF.
    I wanted to transform the entire document in JPEG (JPG) immage, so that I could use it in other tools, such as Facebook for example.
    The problem is that using Adobe Photoshop it opens and saves page by page.
    Can you give me s solution or hint?
    Flavio
    [email protected]

    Thank you!
    I already saved all pages as .pdf w/ Acrobat and have all 6 pages saved in
    .jpg, using Photoshop.
    Problem is that I want to post the whole text in my Facebook page, and to
    have it in six pieces is not quite readable...
    Thanks anyway and have a joyful Xmas!
    2011/12/24 try67 <[email protected]>
       Re: How to include several PDF documents into just one file?  created
    by try67 <http://forums.adobe.com/people/try67> in Adobe Reader - View
    the full discussion <http://forums.adobe.com/message/4102594#4102594>

  • Adobe javascript include "this.saveas" into the pdf document level

    Hello,
    in some posts i read that if i certify a pdf, i would be able to include doc.saveas into the pdf document level. 
    Can anybody tell me what kind of cerify i'd need and how to have it done to make the saveas work from client side?
    thanks alot

    When you use the saveAs method with code inside the PDF, do not place it in a trusted function or use app.beginPriv/app.EndPriv. You have to confirm that the certificate is in your list of trusted certificates and that it is trusted to allow execution of high privilege JavaScript. Be sure to test the document with Reader and validate the signature before attempting to execute the code. There is a preference that controls whether signatures are validated when a document is opened. I would recommend setting this preference.
    I would suggest testing it with Reader.

  • Validate PDF document with JAVA

    good morning,
    I'm a little desperate, I need to know how to validate using java pdf api but not know how. I followed your steps, which very generously put in the post whose title I refer to the subject of this message, and gives me the same error as you. Did you get it working? Could you send me the code? I ask you please
    I have two pdf documents, each with a date field. In one of them in the date field has a malformed date and another date is in correct format. Need to distinguish, using the JAVA API, each other, but do not know how? anyone can help me? thank you very much

    good morning,
    I'm a little desperate, I need to know how to validate using java pdf api but not know how. I followed your steps, which very generously put in the post whose title I refer to the subject of this message, and gives me the same error as you. Did you get it working? Could you send me the code? I ask you please
    I have two pdf documents, each with a date field. In one of them in the date field has a malformed date and another date is in correct format. Need to distinguish, using the JAVA API, each other, but do not know how? anyone can help me? thank you very much

  • Streaming  PDF Documents Using JAVA

    Hello Geeks,
    I want to develop a document viewer which gets embedded in web browser.
    Are there any JAVA API available for this ?
    I am confused where to start.

    Embedded in a web browser -> java applet.
    Document viewer -> depends on which document type you want to show (and how you want to show it). Search on "java <document type> library"to see if anyone else solved it.

  • Including Word/PDF documents and Jpegs in a folder on a DVD

    Hello
    I'm building a DVD of my short film and want to include the press pack in a folder on the DVD. The folder will contain 5/6 JPEGs and 3/4 word documents/pdf documents.
    Anyone have any idea how I go about this?
    Thanks

    Add the files to the ROM section of your project.

Maybe you are looking for