Create a virtual printer in Java

I would like to create a virtual printer using Java, so that when you go to print a file( using Word or something) the Java printer is listed as a valid printer. My goal is to get the printer formatted object that the programs (Word, etc..) send directly to the printer. I don't know if this is possible. It seemed like a more logical solution to this question:

Printing multiple file types using java

Any ideas? I heard this is only possible using C or C++, but I don't know for sure.

-------------Problems Reply------------

There is a LPD implementation available in Java. You can then create manually a printer in Windows which use the LPR protocol to print to said Java LPD. This captures the result as a byte stream which you can then manipulate further.

You will have to write a new printer driver that re-direct API calls to your Java classes.


You could use RedMon to pipe the printed output into a Java program. Together with a Standard postscript driver this would give you Postscript that can be read and post-processed by your Java program.

The RedMon port monitor redirects a special printer port to a program. RedMon is commonly used with Ghostscript and a non-PostScript printer to emulate a PostScript printer.

RedMon can be used with any program that accepts data on standard input.

Category:java Views:1 Time:2010-11-30
Tags: java printing

Related post

  • How to create a virtual printer in Windows? 2009-06-19

    I want to create a virtual printer driver for Windows. Where should I start? The WDK has some printing drivers examples, but nothing I can use. MSDN doesn't seem to be very helpful. There are a lot of virtual printers for Windows out there (mostly th

  • I need to create a virtual printer driver for windows which will redirect requests through another program 2012-03-09

    To summarize my issue, I work at a company that uses a laser to create labels that go on our product. The laser came with a specific marking software that has an API that we use with our custom-written software to handle each request. As it works now

  • I need a way to mock a printer or spoof it or create a virtual printer where I can see the print 2012-04-21

    I need a way to spoof a printer kind of like smtp4dev ( smtp4dev is a great tool for testing email functionality and I would love to find a product like it that can spoof a printer and provide access to virtual print pa

  • Is there any free SDK to create a portable virtual printer? 2011-06-10

    my needs is to run with (if possible) the same code on * *BSD * MacOsX * Linux * Windows and the preferred language is Java, but possibly C, C++, Perl, Ruby, Python. It can be a PDF printer, but it can be an image printer too. My goal is to treat the

  • I want to create my own virtual printer which popups my application when print happens 2011-08-22

    Possible Duplicate: How to create a virtual printer in Windows? I want to create my own virtual printer which popups my application when print happens. Also wants to work with network printers.. Can any one help me...? Thanks in advance.. somesh ----

  • Виртуальный принтер PDF Converter (Adobe) устанавливается но не работает как надо. Virtual Printer PDF Converter was created, but don't working as correct. 2013-06-12

    Почему установленный виртуальный принтер не работает как надо? Переустановка или обновление драйвера ничего не дала. Новый продукт от Адобэ формирует такой же виртуальный Принтер, который потом тоже не работает. Не находится и служба "Очередности печ

  • How to write a driver for virtual printer 2011-01-09

    we want to write a driver for virtual printer ( in language C or Java) ( for example How to create a virtual printer in Windows?) We would redirect the file to a file server ( for example What

  • Writing a Virtual Printer in .NET 2008-11-03

    I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application. It would we really nice to be able to write it all in C#, but I have a feelin

  • Virtual Printer Driver for Windows 2010-02-03

    can you please help me with the following questions... If I need a virtual printer that will convert a PostScript stream to a different format, do I have to implement a virtual printer from scratch or implement a rendering plug-in? The rendering plug

  • Virtual Printer for Window 7 2013-07-14

    What do i need to do to create a virtual printer on my windows 7 64bit machine. I am trying to print 40"x30" posters out of microsoft powepoint. I have a ppd from an older printer (lambda/cheetah) but need a generic driver. Thank you. --------------S

  • Why will not the virtual printer is not working as it should? 2013-08-16

    Why will not the virtual printer is not working as it should? Reinstalling or updating the driver did not get anywhere. A new product from Adobe creates a virtual printer, which then does not work either. And not in service "Priority Printing" as men

  • Create a recursion function with Java that prints all possible sequences of items contained within the list. 2011-10-01

    I am supposed to be creating a recursive function within Java that prints out all possible colors from a list of colors. E.G.{r, b, g ; r, g, b ; g, r, b ; g, b, r} etc... I believe I had it figured out and my code is below. Unfortunatly I continue t

  • How can I create a virtual disk (letter, share, etc.) on Windows using Java? 2012-02-03

    I'm looking at trying a project for class and as part of it I will need to create a "disk" to allow users to write some files (e.g. a RAM disk). I've used various languages, but I'm most familiar with Java (I could maybe use C# and get it done in tim

  • How to create a Virtual Com1 port in windows? 2008-10-16

    I am developing a mobile app to run on a pocketpc. We have a mobile printer and card swipe that uses com1 to send and get info. I'm using the device emulator and want to test without the printer. How do I create a virtual com1 port to right to and re

  • Fix text stretching when printing to a receipt printer with Java 2010-06-01

    I am printing to some Epson receipt printers by implementing the Java Printable and placing my code into the print method. To draw the text to the printer I use Graphics2D.drawString. I am also drawing a rect to the printer to see how to compares to

  • How to create own XP printer driver 2010-06-18

    How would I create my own XP printer driver which will do the following: print to file (probably XPS format) put this file into a password protected ZIP file email the zip file to a configured email address --------------Solutions------------- What y

  • Creating a virtual world with Red5 2010-10-29

    I'm thinking about creating a virtual world using the open source socket server 'Red5'. I know that i'd have to develop a custom adapter/addin to make it suitable for a virtual world. but am unsure where to start. I have a good knowledge of java. ---

  • How does one get a program to print with a printer in java 2010-11-08

    How do you get a program to print with a printer in java? I'm trying to get together a board game for my friends and I to play but the mechanics of it requires that a new deck of cards be created for every game. --------------Solutions------------- U

  • Reliably print PDF (1.4 and 1.5) to a network printer using Java 2010-12-15

    I've been using the solution detailed in this question (including jLpr) to print PDF documents to a network printer. However, I've run into some problems with PDF version compatibility. When I print documents that are PDF 1.4, it comes out fine. (To

Copyright (C), All Rights Reserved.

processed in 0.181 (s). 11 q(s)