Solved

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

Posted on 2009-04-01
7
646 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…

762 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

8 Experts available now in Live!

Get 1:1 Help Now