From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Scanning double sided documents and printing them the same.
Date: Thu, 10 Dec 2020 10:37:31 -0500 [thread overview]
Message-ID: <CAGfcS_nRnKM2RKSeb2mQ3qnnFQWDP3xoCtjbzqu=JdjvZ9huxA@mail.gmail.com> (raw)
In-Reply-To: <6c6ec963-5766-d0d8-c644-d5bbaaee6fcf@gmail.com>
On Wed, Dec 9, 2020 at 7:09 PM Dale <rdalek1967@gmail.com> wrote:
>
> How do I print them the
> same way tho?
I didn't see much discussion on the printing side of this - how to
print two-sided on a one-sided printer.
Step 1 (optional): I created a CUPS queue for such jobs that just
outputs everything into PDF in a directory. This lets you easily
print stuff that isn't already PDF from various computers/OSes and
accumulate a bunch as printing this way is easier in bulk since it
involves a bit of manual manipulation.
Step 2 (optional): I have a script that takes each PDF and adds a
blank page if needed to result in an even number of pages, then
concatenates all the PDFs into a single file. I probably stole this
from somewhere:
#!/bin/bash
for file in *.pdf
do
#get the number of pages
numberofpages=`pdftk "$file" dump_data | sed -e
'/NumberOfPages/!d;s/NumberOfPages: //'`
echo -n "$file" 'has' $numberofpages 'pages, '
uneven=$(($numberofpages % 2))
if [ $uneven == 1 ]
then
echo 'which is uneven - added 1 more'
tempfile=`mktemp`
pdftk A="$file" B=/usr/local/share/blank.pdf cat A B1 output "$tempfile"
mv $tempfile $file
else
echo 'which is even'
fi
done
pdftk *.pdf cat output out.pdf
Step 3: To print a single PDF double-sided follow this guide:
http://duramecho.com/ComputerInformation/HowToDoTwoSidedPrinting/index.html
So the idea is that I accumulate a bunch of documents to print this
way, combine them such that they can be printed all at once, and then
do the page flip technique in that guide. No need to worry about
individual pages as long as you ID which type of printer you have and
follow the appropriate process. However, to print multiple documents
at once this way they all have to have an even number of pages, which
is why I have the script. Concatenating the files with blank pages
added means that you can just print the whole thing once, flip, then
print it again, and it all works.
--
Rich
next prev parent reply other threads:[~2020-12-10 15:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 0:09 [gentoo-user] Scanning double sided documents and printing them the same Dale
2020-12-10 0:46 ` thelma
2020-12-10 1:29 ` thelma
2020-12-10 2:16 ` Dale
2020-12-10 8:27 ` Neil Bothwick
2020-12-10 9:20 ` Michael
2020-12-10 9:26 ` Neil Bothwick
2020-12-10 15:21 ` [gentoo-user] " Grant Edwards
2020-12-10 17:36 ` Michael
2020-12-10 22:25 ` Grant Edwards
2020-12-11 0:00 ` Dale
2020-12-11 0:04 ` Dale
2020-12-10 9:28 ` [gentoo-user] " J. Roeleveld
2020-12-10 10:49 ` Dr Rainer Woitok
2020-12-10 13:09 ` J. Roeleveld
2020-12-10 15:37 ` Rich Freeman [this message]
2020-12-10 17:58 ` J. Roeleveld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGfcS_nRnKM2RKSeb2mQ3qnnFQWDP3xoCtjbzqu=JdjvZ9huxA@mail.gmail.com' \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox