473,699 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing Postscript in Perl

Hi Everyone,

I'm having a real hard time with this. Maybe some smarter people can
assist.

I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.

I have absolutely no idea where to start or what to do. My
/etc/printcap file looks pretty shallow:

HPLJ4|HP Laserjet 4:rm=nitelife:r p=HPLJ4:

I set my printer up using the DrakConf program. I can print, but just
not any formatted text or anything.

I see so much information around, that I'm lost as to which really
applies to me situation.

Any help would be appreciated.

Thanks,

Arthur
Jul 19 '05 #1
4 6411
Arthur wrote:
I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.


How do you print a regular Postscript file today, i.e. without using a Perl
script?
Then just mimic that code in your Perl script and you are all set.

jue
Jul 19 '05 #2
In article <8b************ **************@ posting.google. com>, Arthur wrote:
I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.

Go to CPAN en look for PostScript:: modules:
PostScript::Bas icTypesetter or Postscript::Sim ple
may do what you want.

Then spool your results to a RAW queue.

Cheers, Roel van der Steen
Jul 19 '05 #3
I do not print anything really from my Linux box today. It is
something I want to start doing......so, printing from MS Word is not
going to help me print Postscript and fonts and such from Perl......

Arthur
"Jürgen Exner" <ju******@hotma il.com> wrote in message news:<Cy******* ***********@nwr ddc02.gnilink.n et>...
Arthur wrote:
I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.


How do you print a regular Postscript file today, i.e. without using a Perl
script?
Then just mimic that code in your Perl script and you are all set.

jue

Jul 19 '05 #4
[Please do not top-post, trying to repair]
[Please do not blindly fullquote but trim to a reasonable context]
Arthur wrote:
"Jürgen Exner" <ju******@hotma il.com> wrote in message
news:<Cy******* ***********@nwr ddc02.gnilink.n et>...
Arthur wrote:
[...] I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.
How do you print a regular Postscript file today, i.e. without using
a Perl script?
Then just mimic that code in your Perl script and you are all set.

I do not print anything really from my Linux box today. It is
something I want to start doing......
Well, then I suggest you get that one up and running first. If you have
neither a Postscript-capable printer nor a software rendering engine, then
Perl isn't going to help you printing Postscript at all.
Once you know how to print PostScript files on your computer, then we can
probably tell you how to loop in Perl.
so, printing from MS Word is not
going to help me print Postscript and fonts and such from Perl......


Where did I mention or suggest MS Word?

jue
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
5824
by: memmmmm | last post by:
So I have a client program written in java and it needs to be able to print pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf file to a real printer. I have tried pdfgo and jpedal but both have their small issues. Suggestions?
4
2774
by: Fuzzyman | last post by:
I looked through the manual, I looked on the web and could find very little on this subject.... The closest I could find was : http://www.faqts.com/knowledge_base/view.phtml/aid/4549. Saying that printing (to a printer :-) wasn't easy (at least on windows - let alone *cross* platform) - and that was dated 2000. Oh and - http://mail.python.org/pipermail/python-list/2002-September/121462.html
1
2600
by: uri bushey | last post by:
So I have a tkinter based little program in Python that has a canvas loaded with a WaveSurfer (http://www.speech.kth.se/wavesurfer/) widget. I am trying to print the contents of the WaveSurfer canvas. Is there an easy way to do this in Python? Also, I can pretty easily use the WaveSurfer "print" function in my program, but taht only prints to a PostScript printer or prints out a PostScript file. I would like to automate the process of...
8
2423
by: David Isaac | last post by:
"Alan Isaac" <aisaac0@verizon.net> wrote in message news:_A34e.2207$1r6.248@trnddc02... > I'd like to try personal financial management using Python. > I just found PyCheckbook, but it does not support check printing. > Is there a Python check printing application kicking around? OK, I'll assume silence means "no", so new question: What is the current best practice for cross platform printing of PostScript files from Python?
10
2204
by: Rebecca | last post by:
I have an asp application that needs to print to a specific network printer. I am currently making it work by using the FSO and setting the path to the printer port, then writing out a string. The problem with that is that all the formatting I can do is with line feeds and tabs. Ideally, I'd like to pop open an html page on the client machine, print it, then close it. Is there any way to simulate calling window.print without pulling...
1
5224
by: BJS | last post by:
Sorry for the cross-posting, but based on the number of people I have seen ask for a solution to this problem, I hope by cross-posting this, that it will help a lot of people out of a common problem. Have you ever wanted to use print to a file using the System.Drawing.Printing namespace only to find out that the only way to do it is by popping a dialog box through the PrintDialog? What if you want to print to file without user...
16
48873
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
7
2169
by: Maravilloso | last post by:
Hi I'm trying to automatically send a postscript file to be printed to the default printer in a Win98 PC, by means of using the instrucction: win32api.ShellExecute (0, "print", "file.ps", None, ".", 0) but it raises an exception with the message: error: (31, 'ShellExecute', 'A device attached to the system is not
1
5824
by: Peter Afonin | last post by:
Hello, I'm using Crystal Reports for Visual Studio 2005. I'm trying to print my reports to the postscript file: PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "HP Deskjet 3840 Series"; ps.PrintFileName = txtPath.Text.Trim() + "\\" + txtFormNo.Text.Trim() + ".ps";
0
8706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8633
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9055
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8947
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8902
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5891
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4392
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2366
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2016
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.