Solved

save .ps files then send them to physical printer...

Posted on 2009-04-01
7
647 Views
Last Modified: 2013-11-26
Hey Guys,

I'm writing a program in which I'm using PDFCreator to create a multi-page PDF. Part of the requirements for this program is that it also have the ability to print directly to a physical printer without creating a pdf.

Because of the application I'm doing, I'm using the initial run through a set of AutoCAD drawings to print out the .ps files using PDFCreator. I am then going back through and using those .ps files to create the various sets I need for each multi-page pdf without having to back through AutoCAD and print each set again.

My dilemma comes with the physical sets that need printed WITHOUT creating a pdf (so the  print after saving setting from PDFCreator is not applicable).

Ok... so my question:
Does anyone know of a way that I can still use the .ps files that I'm creating and send those to a physical printer??
0
Comment
Question by:LittleOleMeDesigns
  • 3
  • 2
7 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 24070999
PostScript is  device dependent format, so it's in general not a good idea to use a file that was created for one purpose and send it to a device that it was not created for.
0
 
LVL 4

Author Comment

by:LittleOleMeDesigns
ID: 24096212
I'm not sure exactly, but from my understanding, I can change the PDFCreator printer to the desired Print Device and then use it to create the .ps file.  So the file will be created for the device it's intended to go to, but I want to hold that .ps file and give the user the ability to modify the list of what to print before going to the printer.  After the user has modified the list to their desired set of drawings, then I want to send the .ps files to the printer.

I'm hoping to do it this way because of the very tedious process of looping through AutoCAD drawings to read block attribute data to determine what criteria various sheets inside one file fall into.  Field Print, Machine Print, Detail Drawing.. etc.  Currently I have to go through all the drawings once and gather this information, display it to the user, then go through all the drawings again to actually print.  What would be ideal would be to generate the .ps files during the first pass through AutoCAD and then just print from those.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 24096365
I am not familiar with PDFCreator, so I can only give you some generic information.

If you change the printer driver when printing to the PDF generating application, you are again creating device dependent PostScript, which will result in PDF that is not truly "portable". There is a reason why the Adobe PDF printer installes a specific PPD that creates a PostScript file that is optimized for creating PDF (but not for printing to a physical printer).

But, you should be able to do what you want to. Again, I'm not familiar with PDFCreator, so my assumption is based on what I know from working with the Adobe solution. Adobe allows you to automate the PDF generation from a PostScript file, so what you need to do is a two step process: In the first step you print to a PostScript file by selecting a PostScript printer driver that allows you to select to print to file. Of course, you would select a driver that would create the best possible PostScript for the task of PDF generation.
Once you have the file, you would move it to an area where you save all the PS files for a given job. You would also run the PS2PDF conversion step to create a PDF file (that is the second step in the process). It depends on how PDFCreator works to determine how that needs to be done.

Does this make any sense?
0
 
LVL 4

Author Comment

by:LittleOleMeDesigns
ID: 24096483
Thank-you for that information...

With PDFCreator it is designed to be able to generate several formats, .ps, pdf, jpg, tiff, etc... and several other file formats.  It also has the ability to print to a physical printer from the .ps file automatically after saving it into one of the other formats.  So it already has the ability to send a .ps file to a physical printer and there are not adverse affects to the quality or scaling of the print when it does this.  Generating the pdf file from the ps file is not the problem at all... that's easy.  It's the scenario where I do not want a pdf.. I want just physical prints without the pdf file... in this case I need to find a VB.NET method to send .ps files directly to a physical printer.  If I can do it through PDFCreator, that's great.. but not necessary.  

So, PDFCreator aside... with VB.NET... is it possible to send a .ps file directly to a printer?
0
 
LVL 4

Author Closing Comment

by:LittleOleMeDesigns
ID: 31565312
While this didn't really help me, it did give me a more thorough understanding of how ps files work.  What I ended up doing was setting PDFCreator to print after saving and I'm basically saving the ps file back on top of itself to kick start PDFCreator's print after saving without waiting on a PDF to be generated.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now