Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi all, I've got this problem that I've been trying to solve for some time but nothing so far seems to work. Basically I need to print a postscript file (which is actually a screenshot of a program) to A3 paper, using the lpr command if possible. The problem now is that when I print it to an A3 paper, the screenshot only fills up around 1/4 of the paper, which is like an A4 size. I need to scale it to fill the whole A3 paper.
I've tried searching around and have tried different commands like
lpr -Zmedia=A3 -Zscaling=100 snapshot.ps
lp -omedia=A3 -oscaling=100 snapshot.ps
lpr -ZPageSize=A3 -Zscale=10 snapshot.ps
things like that. But none of them seems works. The only time I got it to fill the whole paper was when I used GIMP to scale and print it...but that's not what I want. I want to use command line only, if possible. Does anyone have any solutions or suggestions? I'm currently using Redhat 7.1, with LPRng 3.7.4-22 installed. I can't change my redhat or LPRng version due to some restrictions.
Any suggestions would be greatly appreciated. Thanks in adv.
There's a program/script called poster that will do all sorts of things from the CL
It can scale, rotate, and even print an image across multiple pages. Perhaps it will help you.
See this thread, from last month: http://www.linuxquestions.org/questi...14#post2798514
D/L the program from the link in (my) post #4 and take a look at its manual.ps
OK, here's the update. When i execute this command
poster -mA3 -pA3 snapshot.ps -o outfile
the postscript file did get resized to fit an A3 paper nicely. I haven't tested printing it yet, I only did a gv outfile to see a preview. The problem is, some parts that was in my original postscript file didn't get converted and saved into the outfile.
I'm not sure whether there's such a thing as layers for postscript file, because the "background" portion of my ps file got converted but not the "foreground" portion. So now all I see in the outfile is the background of my original ps file in A3 size. Any idea? In the meantime I'll try to see if I can like...compress the ps file and convert it again.
Hi, having a small problem again. The psresize commands works beautifully on my machine. However, if I were to execute the same command on another machine, or even on a postscript file that is on a network-mounted directory, the output file will be exactly the same as the original file. But when I resize it on my own machine (local directory), it works just fine. I can resize an A4 postscript to A3. Any idea what could be the problem? All the machines are on redhat 7.1
Yup, I initially thought that it was a permission problem. But the output file can be written to the network-mounted drive, so it's unlikely to be permission problem.
I kinda found out the cause of problem already, though I don't really know why. Apparently, I have to execute ps2ps on the original postscript file and then run psresize on the output file. For example, the program that generates the original postscript file is called screenshot.ps
So I have to run:
ps2ps screenshot.ps outfile.ps
psresize -pA3 outfile.ps final_outfile.ps
If I were to simply run psresize on screenshot.ps, nothing would change. But if I were to execute ps2ps or maybe open it in Gimp and save it, psresize will work. I guess some formatting is lacking in the original postscript file, thus psresize wouldn't work. At least I learn something new today, and I got my problem solved =D
Thumbs up for LQ, wouldn't have done it without the help of you guys!