New answers tagged

0

So I found multiple things. First I needed to add printing = BSD maybe otherwise CUPS is used which overrides settings. Then I needed to set printcap name = /dev/null otherwise the ghostscript files disappeared before I could access them. The lpq and lpr commands where not required. [pdfCreatorLinux2] # load printers = no printcap name = /dev/null path ...


0

I believe this line has an error: "hello" >> /home/pi/logs/2.log You may want to try echo "hello" >> /home/pi/logs/2.log And you are quoting the $s in the rest of script. I would try to remove the \s. And quote the full file names. Ending up with: echo "hello" >> /home/pi/logs/2.log ps2pdf "$1" "$OUTDIR/$DATE.temp" mv "$OUTDIR/$DATE....


2

A lot depends on what the supplied ppd for the printer proposes. List the options, and their current settings shown by an asterisk next to that option. The options and values are entirely arbitrary, but fairly conventional so you might see eg: $ lpoptions -l PageSize/Media Size: Photo4x6tab A6 8x10 Legal Letter EnvDL ... InputSlot/Media Source: *Auto Main ....


0

I had the same problem: PDF document seemed scaled out and not fitting on the A4 page provided by my printer HP Deskjet 3050. Solution: Add (or change) the option fitplot to True: #/etc/cups/printers.conf <Printer Deskjet_3050> ... Option fitplot True ... </Printer> According to the manual a value of True scaled the document to ...


0

It turns out that the answer is the scaling parameter. I thought the parameter was relative to the image, but turns out it is relative to the page. So setting scaling=0 will print the image on its native size. It is possible to also manipulate it using the ppi (pixel per inch), and the natural-scaling parameter. More info here.


3

A utility that seems to work quite well with handling ansi escapes and input line editing from a typescript is ansi2html.sh which obviously generates html. You can either view this output in your browser and use its printing features, or, if you dont mind losing the colours, convert the html back to simple text with no escapes, eg with ansi2html.sh <...


3

There's two choices: replay the script (with pauses, even via XOFF/XON), and make screenshots which some tool may convert into PDF strip the control sequences from the file, leaving a plain-text file that can be converted into PDF. Generally I've done the latter; both have their pitfalls. When making screenshots, you may not get exactly the picture you ...


0

The counterpart of script(1) is scriptreplay(1): DESCRIPTION This program replays a typescript, using timing information to ensure that output happens at the same speed as it originally appeared when the script was recorded. Also, scriptreplay provides option to speed up/slow down the replay. Thus, you can't just print it. You could ...


0

psmerge and psnup from psutils should do what you want. psmerge figure[0-9].eps | psnup -4 | lpr From the Description field in the Debian packaged version: Description-en: PostScript document handling utilities This collection of utilities is for manipulating PostScript documents. Page selection and rearrangement are supported, including ...



Top 50 recent answers are included