Printing an existing PDF file

I have been looking around everywhere to find a solution to this problem but just can't find anything. I am generating PDFs using iText. Once I have the file created I simply want to print it, which is apparently impossible without buying a 3rd party library.
Has anyone found a way to take an existing pdf file and send it to a specific printer.
To make it very clear (as in most other threads people don't seem to understand what the asker is actually saying)
I have a file (C:\a.pdf)
My default printer is called "abc"
I have a 2nd printer called "xyz"
I want to print C:\a.pdf to printer "xyz".
Currently I am printing via acrobat but it's crap. It refuses to close after printing which is the main problem and I don't want to look up the processes and kill it as this is nasty.
Surely someone, somewhere, has found out a way to say "print this file" from java! I don't care if it is a lot of code. I don't mind using an external library. It must work on windows, linux and crapple macs otherwise I'd just use FoxIt instead of acrobat.
I have experimented with MANY different methods. The one found here (http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/) seems to be the best, however, the first page in a PDF seems to print portrait regardless of whether or not it's portrait. All following pages are then landscape. It was almost an amazing solution! If anyone has any ideas on that it would be much appreciated

Hi
I found jpedal on my searches but it's not an option due to the cost. Seems expensive considering all I want to do it send an existing PDF to a printer :S I really don't understand how it's so difficult to be honest. PDFRenderer on the dev.java.net site looks really promising but has a few issues. It doesn't seem to be active any more though which is disappointing.
I think I have solved the problems I was having with it. I will post here after I have done some testing to say exactly what I have done

Similar Messages

  • Printing existing PDF-File via SAP-Spool

    Hi to all,
    I'm looking for a solution to print existing PDF-Files (external Directory) via SAP-Spool, in order to create a set of documents in correct succession, where some of them are created within SAP and others beeing created externally (PDF-Files).
    We use NW7.0 and have AdobeDocumentServices activated.
    I don't want to create PDF-Files out of SAP-Spool-Requests.
    Thank you for any helpful hint.
    Best Regards
    Christian

    Thanks for this, having a look through at the moment, just one question do I have to install this SDK just to automatically print an existing PDF document from a 3rd party application when I have only the Reader installed?
    Thanks

  • Used to be able to print multiple page pdf files on my HP 7310 all in one and then it stopped and would only print the curent page. This is tedious for long PDF docs. I am on 10.6.8 .

    Used to be ablert to print multiple page pdf files on my HP 7310 all in one printer and now I can only print the current page and therefore it takes forever printing them one by one. I am in version 10.6.8. Tried printing as image using the advanced click and that did not work either.  I have Adobe 9.0 reader installed.

    I tried this earlier, and I tried it again today.  Both times it said "Software Missing!"  and "HP Software required to connect to your printer over the network could not be found on this computer."  But when I tried to install the software (AIO_CDB_Net_Full_Win_WW_130_141.exe, which I downloaded from HP's web site), it wouldn't install, as described above.  In the diagnostic utility, I clicked "skip", and it said "Connection Verified!", and "The printer is connected to the network and the services related to the network connections have been verified and reset to a normal operating state.  Everything appears to work fine at this point.  Please doa test print to verify that the issue is resolved or click Skip to move to the next step."  I clickedthe "Test Print" button, and immediately it popped up a box that said "Test Print Failed."
    I tried again to install the HP software, and it installed, detected the printer, and asked me to select it.  I selected the printer, clicked "next", and it did its network diagnostics.  Then it said "Problem(s) found with your network" and "Problem(s) may exist with the network functions of your printer . . ."  I continued the installation without connecting to the printer.  Then I ran your network printer diagnostic tool again, and got the same result - "HP Software required to connect to youir printer over the network could not be found on this computer."

  • How do I delete some pages from an existing pdf file?

    I have an existing pdf file that is too large to send to some people. How can I delete some pages from this existing pdf file, and break it up into two files?

    Acrobat
    You can download a 30 day trial at that link.
    You may also be able to do it with CreatePDF, but I'm not sure.

  • [Applet]Printing issue with pdf files on Xerox 4595

    Greetings !!
    I'm trying to print to a Xerox 4595 printer from a Windows XP station (limited account) using a Java Web Applet.
    This applet generates pdf files which have to be printed.
    The Xerox 4595 uses a printing queue that is detected by the Applet.
    The problem is the following: usually when printing a simple local file from this computer there is a box that asks you your login to let you create a job and then print.
    When using the Java Applet, there is no way to have this print box displayed. We have the Java Print Dialog but once clicked on "Print" there is no box displayed to pass the login to the printer and let us print.
    Is anyone already worked with Xerox 4595 and experienced such issue ?
    How can I, using the Java language and modify the Applet, ask the printer to send me the dialog box asking for the login ? Without this login no jobs are accepted and we can't print the generated pdf files.
    I looked on the printer queue settings and it seems that the Xerox uses the IPP to communicate with the local computers in the office.
    The server from which the Applet is used is a openSuSE Linux Web server (apache2)
    How come using Linux workstations any pdf files are printed (on shared printers such HP laserjet) and under windows there is jammed characters and sheet feed instead ?

    A lot can depend upon which app your are using on your tablet device, the same applies to computer programs but apps are much worse.
    Which app are you using?
    I would try the free Adobe Mobile Reader. This product seems to support more features than other apps.
    There could even be issues with the type of tablet you are using. The Apple line may work better then Android devices since there is QA check and approval by Apple.
    Another factor is the how the PDF was created.
    How well are the maps displayed on your laptop or desktop? Try different values of zoom.

  • How to Embed fonts in existing PDF file

    HI,
    I want to know how to embed the fonts in an existing PDF file, i do have Acrobat.
    Thanks

    Post your question in the forum for Acrobat.

  • Adobe Reader XI won't launch, can't download or open existing PDF files.

    Running Windows 7 and have had no trouble with PDF files until few weeks ago.  Now Adobe Reader Xi won't execute and I can't download or open existing PDF files using Adobe.  Interesting that I can open existing PDF files unsit PaintShop Pro X4 but not in Adobe.  Have unistalled and reinstalled Adobe Reader XI several times with no change in problem.

    You can try using Windows Explorer to navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement

  • Word v.X no longer printing or creating PDF files (specific to one user)

    As of yesterday I cannot print from Word (v.X 10.0) documents or create PDF files from Word documents.
    I can print by logging out and using a test user ID.
    I can print after a safe restart (which disables many functions).
    I am still able to print and create PDF files from Pages, Firefox and other programs.
    When attempting to create a PDF from a Word file through the Print dialog box, then saving as PDF, I can see the "magnifying glass" image for the PDF briefly on the desktop, then it disappears.
    Apple Care Phone Support refuses to deal with Microsoft issues (even though it appears to be a print command failing within Mac OS steps of the process, and/or a Mac OS-generated and sorted plist file corrupting the process).
    Microsoft no longer supports the software (i.e., any file you are now using ending in .doc is no longer supported).
    Has anyone had a similar problem or an idea about what to do with likely culprit files?

    Sounds like a M$ problem to me.
    Can you save an Excel file as a PDF?
    There are .plist files in user>library>preferences
    that control the last used settings in apps.
    Quit the office app.
    Trash the com.microsoft.word.plist first.
    If that doesn't work trash the com.microsoft.office.plist
    PS What does yesterday have to do with PDFs not working?
    Something change?

  • Will not print anything but Pdf files!

    If I try to print anything at all other than a PDF file from Adobe only(other readers will not even work) very little of the page prints if anything at all. For example, I was trying to print a shipping label off of the website, and the only thing that would print was the barcode. Nothing else. I actually had to convert it to a pdf file and open it with Adobe, and then it printed perfectly. I have tried reinstalling, restarting, using the HP support doctor, which says absolutely nothing is wrong with my printer. I am at a loss to why it will only print pdf files from Adobe. Can anyone please help me?! I forgot to mention it worked perfectly about a month ago. We don't print a whole lot and didn't notice it was messed up until just a few days ago.

    Hey , Welcome to the HP Support Forums!
    I understand that when printing from your Windows 8.1 computer to your HP Deskjet 1512 All-in-One Printer, nothing is printing, except Adobe PDF files. I would like to assist you today with resolving this issue. Now, you indicate in your post that you had tried to print a shipping label from a website, and only the barcode prints. However, if you open the file up and print it from Adobe it appears to print fine. This leads me to believe that the actual issue that is occuring is a print system issue with the black cartridge. I know it may come as a surprise to hear that as Adobe is printing fine. However, when you print from certain programs on your computer the file is sent to the printer as an 'image' file. If your printer 'thinks' it is printing an image it will use a mixture of colour ink and black to print the black document. Therefore, what you may actually be seeing when you print from Adobe is colour ink mixed. To start troubleshooting I am going to have you print a Quality Diagnostics Report from your printer and this will help us to isolate this printing issue. Please follow the steps below.  How to Print a Quality Report: Load clean, white U.S. Letter or A4 paper in the input tray, if necessary.Press and hold the Power button. While holding down the Power button, press and hold the Cancel button. Hold them both down for 2 or 3 seconds.The test page prints. (1) Printed with the tri-colour cartridge(2) Printed with the black cartridge  If this Report prints perfectly: Then the printing issue that you're experiencing is not being caused by your products print system. Rather, there may be a driver conflict occuring between your Windows computer and your printer. Please do not proceed with troubleshooting at this time.  If this Report prints with missing black or other quality issues: Then the printing issue that you're experiencing is being caused by your products print system. To resolve this hardware issue can I please have you click here. Once the support document opens please choose the Windows 8 dropdown. Next, follow the steps under Solution one, Solution five, Solution six, and Solution seven. This includes any sub steps under the listed Solutions to complete. Once troubleshooting has been completed please print another Quality Diagnostics Report to confirm if the issue has been resolved. Please respond to this post with the result of printing the Quality Diagnostics Report. I look forward to hearing from you!

  • 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

  • Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    'Cuz that's what mail merges do.  They create multiple documents based on the parent doc and all the names/addresses in your data tables.
    Perhaps if you describe exactly what you're trying to do & why you need PDF, we can point you to relevant tutorials.
    Nancy O.

  • Create a Print button to Print a specific PDF File

    Hi,
    Need help with scripting. I'm creating a Menu Page where in I list the PDF files and right beside it put a PRINT BUTTON which of course will print that specific PDF file. Is this doable or not?
    Thanks.
    VicZam

    For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    Note the nStart and nEnd parameters in particular.

  • How can i add or create Layers into existing PDF File

    How can i create or add new Layers into new or existing PDF file using DLE JAVA API (Datalogics API)

    sandyrock,
    The PDFL, as Adobe distributes it, only has a C/C++ interface.
    The JNI APIs are developed and supported by Datalogics, the company you licensed your copy of the PDFL from. Have you contacted them? Support for their API extensions to the PDFL should be included with your licensing fee and they have many tips and ready-made examples specific to their API extensions they could give you.

  • How do i add a photo to an existing pdf file?

    How do i add a photo to an existing pdf file?

    Hi,
    You can download Acrobat XI Pro trial version from www.adobe.com then insall it on your computer then do following:
    1. Open your PDF file in Acrobat
    2. Select "Tools" from right hand panel
    3. Select "Content Editing" tool menu
    4. Select "Add Image" menu
    5. Select a photo file
    6. Place it where you like in the PDF file
    Hisami

  • Printer filter to PDF file

    Hello everyone,
    I wonder how to set up a printer filter to pdf file on JDS/Linux?
    E.g OpenSuse 10 comes ready preconfigured with a printer filter to pdf file.
    Not sure if it may be Ghostscript that is used for this setup.
    Has any of you set up such a filter for JDS/Linux?
    Terje J. Hanssen

    A follow up:
    Looks like this is a feature of the KDE KPrinter, as the pdf filter was found in KDE desktop printer KJobViewer. The OOo one that I am aware of, I would expect works only internally from OOo applications, while the Kprinter's to pdf file filter looks to be general available for all applications, if I'm right.
    Tried also a Gnome login to OpenSuse, but didn't see the pdf file filter available for the "Gnome printer". Possibly can it be set up also here?
    Terje J. Hanssen

Maybe you are looking for

  • Automator: Create folder with name and subfolders in it.

    Hello everyone, my question is related to Automator. I work in a company where we have a huge server. Every time a new job comes in it gets a six digits number and a folder with 5/6 subfolder needs to be created. The main folder will be xxxxxx_nameof

  • Change the default arrangement of tabs in the Project Panel

    With every new project, I'm having to manually re-arrange the tabs in the Project panel to suit my workflow.   Specifically, I'd like to permanenly change the tab order so that the "Good" tab is listed first, followed by Video Duration..etc. Can this

  • IPhone  does not appear in list of devices in iTunes in the cloud

    my iPhone does not appear in the list of devices

  • Cache inserts not reflected across different readonly cache

    I am a new developer to JavaBDB. I have designed a process as below : 1. A java BDB cache loader which loads data to a environment with a home path in write mode. 2. A java BDB cache reader which point to same home path and in readonly mode. I load d

  • Flash on the mac?

    I recently got a part-time gig doing Flash dev. Cool, except I have to use a mac and I cannot believe how much Flash sucks on the mac. Why will nothing doc? How to have Flash fill the screen so I don't click somewhere and my email comes forward? I do