Two pdftk usage questions, if I may:
1) given a multipage input PDF all of whose pages involve
5.5":x8.5" output sheets (with 1" margins all around a 3.5"x6.5"
inked block), is there a pdftk invocation that will crop that to an
output PDF file all of whose pages involve 5"x8" output sheets
(with 0.75" margins all around that same 3.5"x6.5" inked block)?
2) given a single-page input PDF, is there a pdftk invocation that
will deliver as output a PDF file that is essentially the
original, rescaled by a scaling factor of my choice, between 0.9
and 1.1, with both inked matter and underlying output sheet scaled
(down or up) by that same factor?
I don't think pdftk does ... . But ...
... so
assuming the 3.5"×6.5" block is accurate, pdfcrop --margins 54 (margin
in Adobe points) should work ...
Peter Flynn <peter@silmaril.ie> writes:
On 07/02/2017 03:12 AM, tlvp wrote:
2) given a single-page input PDF, is there a pdftk invocation that
will deliver as output a PDF file that is essentially the original,
rescaled by a scaling factor of my choice, between 0.9 and 1.1, with
both inked matter and underlying output sheet scaled (down or up) by
that same factor?
I don't think pdftk scales either. It looks as if you might be able
to do it by converting the file to Postscript and using psresize,
then converting the result back to PDF, eg for a 1.1 scale of an A4
document (210mm×297mm):
pdf2ps filename.pdf
psresize -w231mm -h327mm filename.ps filename.eps
ps2pdf filename.eps filename-1.1.pdf
But when I tested this, it gave me a file scaled up by 1.1, but
truncated on the top edge. Maybe a little experimenting is needed.
You should also look at psbook and psnup, both of which have scaling facilities. They also both require conversion to Postscript but the
pdf2ps and ps2pdf utilities do this easily.
On Wed, 12 Jul 2017 22:40:52 +0100, Peter Flynn wrote:
... so
assuming the 3.5"×6.5" block is accurate, pdfcrop --margins 54 (margin
in Adobe points) should work ...
Quick sanity/comprehension check here: by "Adobe points" I take it you mean what others call simply "points" or "printer's points"? I.e., lengths of
1/72 of an inch (so that 54 of them amount to 3/4 of an inch)?
On Wed, 12 Jul 2017 22:40:52 +0100, Peter Flynn wrote, with details:
I don't think pdftk does ... . But ...
Thanks very much, Peter. All the utilities you mention are new to me, and very much bear my looking into: pdfcrop, pdf2ps. psresize, ps2pdf, as well
as psbook and psnup. All new to me, believe it or not. So thanks again.
... by "Adobe points" I take it you mean
what others call simply "points" or "printer's points"? I.e., lengths of
1/72 of an inch (so that 54 of them amount to 3/4 of an inch)?
Yes, as distinct from printers' traditional Anglo-American points, which
are 72.27 to the inch.
The difference between an Adobe big-point and the old point is only
0.27pt per inch, but in 10″ of text (a full page of A4) that’s 2.7pt, which is nearly 1mm, enough to be clearly visible if you’re trying to
align one sample with another.
Wow! As far back as 1952, when I started out as a printer's devil for my local high school newspaper, and long before Adobe ever caught its first living breath, what I understood by a point was 1/72nd of an inch, no extra decimal .27 to the total 72 per inch. When did that .27 get added :-) ?
tlvp <misc.tlvp@att.net> writes:
Wow! As far back as 1952, when I started out as a printer's devil for myThat value of the printer's point (0.01383 inch) was established in the
local high school newspaper, and long before Adobe ever caught its first
living breath, what I understood by a point was 1/72nd of an inch, no extra >> decimal .27 to the total 72 per inch. When did that .27 get added :-) ?
19th century by the ATA (American Type Founders Association). But the numerical relationship of 1/72.27 of an inch was recognized by Knuth. In
fact 1/72.27 is not exactly 0.01383, but the size of an inch has changed slightly in the meantime, and 1/72.27 is the relation with the modern
inch. This is still an approximation, the difference is 0.1µm. I guess
it was just sloppiness to use 1/72 of an inch, until Adobe started to
use that as their official value (also called Postscript point), and now
it is generally used as the value of a point in typesetting.
On Wed, 26 Jul 2017 12:50:09 +0200, Piet van Oostrum wrote:
Wow! As far back as 1952, when I started out as a printer's
devil for my local high school newspaper, and long before Adobe
ever caught its first living breath, what I understood by a point
was 1/72nd of an inch, no extra decimal .27 to the total 72 per
inch. When did that .27 get added :-) ?
[snip useful help]tlvp <misc.tlvp@att.net> writes:
I guess it was just sloppiness to use 1/72 of an inch, until Adobe
started to use that as their official value (also called Postscript
point), and now it is generally used as the value of a point in
typesetting.
Thanks, Piet, for your comprehensive survey of this point business.
Little did I realize how very rough-and-ready my hal-century-old "72
to the inch" approximation was.
Two pdftk usage questions, if I may:
…
2) given a single-page input PDF, is there a pdftk invocation that will deliver as output a PDF file that is essentially the original, rescaled by
a scaling factor of my choice, between 0.9 and 1.1, with both inked matter and underlying output sheet scaled (down or up) by that same factor?
…
1) given a multipage input PDF … is there a pdftk invocation that will
crop that to an output PDF file …
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 89:09:19 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,334,022 |