Linux - GeneralThis 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.
Notices
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.
I'm trying to work with another person that has a Windows based system. He generates a PCL (HP printer control language) encoded file. I take the PCL file and run it through pcl6 to convert it from PCL to a PDF. If I look at the resulting PDF it looks fine. But when I print to a hylaFAX / fax4CUPS setup the receiving fax only shows the bottom left corner which is actually the top right corner of the PDF. I tried tweaking setting thinking it might be defaulting to A4 sized paper but that didn't help. I turned on a cover page in CUPS for the job. The cover page shows up centered properly but the necessary pages are all 1/4 of what they should be.
I use similar logic on another job where a different programmer generates a postscript output file which I convert to a PDF then use a similar command to fax from there. That works perfectly.
The command I issue is
lpr -Pfaxit -o phone=1234567890 /tmp/fax.pdf
The faxit queue uses fax4CUPS hylaFAX.ppd then routes to hylaFAX to send via fax modem.
Any help greatly appreciated.
Anyone with expertise with ghostscript CUPS or fax4CUPS with an idea?
After spending many hours trying different parameters with lpr I opted to convert the source PCL file into postscript rather than using a PDF. Using a similar command line
lpr -Pfaxit -o phone=1234567890 /tmp/fax.ps
only ps differs as prior was pdf
The file is spooled to the faxit pseudo printer and routed to hylaFAX then out the modem to the recipient's 123456789 fax machine.
I don't know why using a PDF didn't work, I can't spend any more time trying to determine why.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.