I need to create a virtual printer that 'shreds'
Basically here is my problem. I have a software program that needs to 'print' a file before it will save it. I want to be able to print to my shredder so that it saves the document, but I don't actually want the document printed. So I need to print to a program that securely deletes the document and shows as a driver in Windows.
How would I go about doing this in C# of VB.Net?
No need to write code for this just print to nul. This has worked since DOS. Just create a new printer, printing to a local port, and put nul in there for the port name.
http://www.markmmanning.com/blog/2009/01/creating-fake-printer-devnull-for.html
Related
I need own printer on Windows. I just need when I from any application (adobe reader, IE etc.) have open html page, or PDF when I click on file, print choose printer and this printer only take original input data as binary and just save to file disk.
I try to solve this problem with universla PS drivers for windows, but convert file from ps back to PDF or XPS can destroy PDF. Do you know some drivers or example?
Windows printer drivers according to documentation on MSDN can be only in C++. So I like avoid to write driver by own. I have my own port which can take document from printer and save them. But I still need driver which just take input after Ctrl+P arise and send to my port or save to disk.
What I Want : A folder where every time thousands of PDF comes. I want to print that file using C#.
What will be the best option for me
Create a service
Create a windows application
I want that my service or windows application print the file silently means no popup to select the user to select the printer default it will print every page only once and I want to make this application, which will not be dependent on AcroRd32.exe because several users are not using Acrobat reader on their system.
I have already look these posts:
print pdf silently in c#,
Send multiple pdf files from one folder to printer. ASPOSE.PDF. C#
How can I complete this?
I need help or advice how to solve my problem. I need to create a virtual printer (or something) that should do this two things:
It redirects incomming print job to the physical printer
It retrives printed document and converts it to the pdf/jpg/png or whatever format
Do I have to create especialy virtual printer? Do I need then create the printer driver? I have read this article about printing architecture in windows. Every printer has its own printer driver. This means that the spooler then modifies the print job based on driver. How can I than send this modified job to another pritner? Does exists also another approch except for virtual printer? Thanks for all advices.
I have made an desktop application using C# to make ID card .And i am required to add functionality of printing an ID card .Basically i just make an image in a win form which will be eventually printed using.
But as i have no printer,i can't test my code to see if it prints something.
Is there any emulator or software that emulates a printer in windows,so that i cant test my application?
This is a sample what i need to print.It wiil be in a win form.
And another thing. How can i maintain size of the id card while printing. Say id card size should be in 2inch * 3.5inch. How can i make sure it will print same size?
You can use the Microsoft XPS printer driver that ships with Windows (since Vista, but available for Windows XP)
The XPS Document Writer allows you to create .xps files using any
program that you can print from in Windows. Print to the XPS Document
Writer when you want to create, send, and share or publish documents
that you do not want other people to modify, or when you want to print
a document or display it online exactly as it appears on your screen.
It's also a good idea to create an XPS document for files that contain
graphics or illustrations that might otherwise display differently in
print than online or on computers with different monitors.
Once you click OK, you're prompted for the file path to save it to.
Try print to PDF file to check that Your application works. For example You can use "PDF Creator" under Windows OS's. It is the easiest way.
i'm creating a PDF Creator equivalent and I have to add some options to it while using C# language.
I would like to know how I can intercept data that was sent to the printer and how I can save it in a c# variable.
My printer launches the program as follows. Redmon is used as a redirection port
Program's like Redmon allow you to save the data to file. Save it as a temp file then pass in the filename as a command line argument. You could also pass it in as stdin/stdout which is how Redmon passes it into Ghostscript but temp file solution should work well and is easy to implement.