summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-13 20:54:58 +0000
committerKarl Berry <karl@freefriends.org>2019-08-13 20:54:58 +0000
commit43853632d39f7c6ddc69d0d5adbb2d336e450c4a (patch)
treec2766a01067f812a8c3e6426d5d9594b1a6c6da6 /Master
parent1b79daa41d8c1f8533fba8e1fe11597d7b1db6ce (diff)
pdfbook2 (13aug19)
git-svn-id: svn://tug.org/texlive/trunk@51874 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/man/man1/pdfbook2.16
-rw-r--r--Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdfbin7053 -> 22650 bytes
-rw-r--r--Master/texmf-dist/doc/support/pdfbook2/README8
-rwxr-xr-xMaster/texmf-dist/scripts/pdfbook2/pdfbook213
4 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/man/man1/pdfbook2.1 b/Master/texmf-dist/doc/man/man1/pdfbook2.1
index 713ad258d7a..a6c61c0f90b 100644
--- a/Master/texmf-dist/doc/man/man1/pdfbook2.1
+++ b/Master/texmf-dist/doc/man/man1/pdfbook2.1
@@ -1,4 +1,4 @@
-.TH pdfbook2 1 "June 3, 2015" "" "pdfbook2 - transform pdf files to booklets"
+.TH pdfbook2 1 "August 12, 2019" "" "pdfbook2 - transform pdf files to booklets"
.SH NAME
pdfbook2 \- transform pdf files into booklets for double-sided printing
@@ -107,9 +107,9 @@ Resolution used by ghostscript in bp (default: 72)
.BR pdfcrop (1)
.SH ABOUT
-pdfbook2 v1.2
+pdfbook2 v1.3 (https://github.com/jenom/pdfbook2)
.br
-(c) 2015 Johannes Neumann (http://www.neumannjo.de)
+(c) 2015 - 2019 Johannes Neumann (http://www.neumannjo.de)
.br
licensed under GPLv3 (http://www.gnu.org/licenses/gpl-3.0)
.br
diff --git a/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf b/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf
index 4e0a92cdad1..06d1b0bc073 100644
--- a/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf
+++ b/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/pdfbook2/README b/Master/texmf-dist/doc/support/pdfbook2/README
index fd7dfa406f1..2b72d40f066 100644
--- a/Master/texmf-dist/doc/support/pdfbook2/README
+++ b/Master/texmf-dist/doc/support/pdfbook2/README
@@ -1,8 +1,8 @@
pdfbook2 - transform pdf files to booklets
==========================================
- pdfbook2 v1.2
- (c) 2015 Johannes Neumann (http://www.neumannjo.de)
+ pdfbook2 v1.3 (https://github.com/jenom/pdfbook2)
+ (c) 2015 - 2019 Johannes Neumann (http://www.neumannjo.de)
licensed under GPLv3 (http://www.gnu.org/licenses/gpl-3.0)
based on pdfbook by David Firth with help from Marco Pessotto
@@ -115,6 +115,10 @@ OPTIONS
CHANGELOG
+ 1.3 2019/08/12
+
+ - removed wait after popen to prevent deadlock with very large documents
+
1.2 2015/06/03
- added man page
diff --git a/Master/texmf-dist/scripts/pdfbook2/pdfbook2 b/Master/texmf-dist/scripts/pdfbook2/pdfbook2
index a288df70fd5..c5bc8677db2 100755
--- a/Master/texmf-dist/scripts/pdfbook2/pdfbook2
+++ b/Master/texmf-dist/scripts/pdfbook2/pdfbook2
@@ -47,7 +47,6 @@ def booklify( name, opts ):
name, tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -89,7 +88,6 @@ def booklify( name, opts ):
tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -121,7 +119,6 @@ def booklify( name, opts ):
p = subprocess.Popen( ["kpsewhich", "everyshi.sty"],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( out ) == 0:
print "\n\nABORT: The everyshi.sty latex package is needed for short-edge."
@@ -131,10 +128,10 @@ def booklify( name, opts ):
pdfJamCallList.append( r"\usepackage{everyshi}\makeatletter\EveryShipout{\ifodd\c@page\pdfpageattr{/Rotate 180}\fi}\makeatother" )
# run call to pdfJam to make booklet
- p = subprocess.Popen( pdfJamCallList,
- stdout = subprocess.PIPE,
- stderr = subprocess.PIPE )
- p.wait()
+ p = subprocess.Popen( pdfJamCallList,
+ stdout = subprocess.PIPE,
+ stderr = subprocess.PIPE )
+ out, err = p.communicate()
#-------------------------------------------- move file and remove temp file
os.rename( tmpFile[:-4] + "-book.pdf", name[:-4] + "-book.pdf" )
@@ -174,7 +171,7 @@ if __name__ == "__main__":
#------------------------------------------------------------ useful strings
usageString = "Usage: %prog [options] file1 [file2 ...]"
versionString = """
- %prog v1.2
+ %prog v1.3 (https://github.com/jenom/pdfbook2)
(c) 2015 Johannes Neumann (http://www.neumannjo.de)
licensed under GPLv3 (http://www.gnu.org/licenses/gpl-3.0)
based on pdfbook by David Firth with help from Marco Pessotto\n"""