texlive[51874] trunk: pdfbook2 (13aug19)
commits+karl at tug.org
commits+karl at tug.org
Tue Aug 13 22:54:58 CEST 2019
Revision: 51874
http://tug.org/svn/texlive?view=revision&revision=51874
Author: karl
Date: 2019-08-13 22:54:58 +0200 (Tue, 13 Aug 2019)
Log Message:
-----------
pdfbook2 (13aug19)
Modified Paths:
--------------
trunk/Build/source/texk/texlive/linked_scripts/pdfbook2/pdfbook2
trunk/Master/texmf-dist/doc/man/man1/pdfbook2.1
trunk/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf
trunk/Master/texmf-dist/doc/support/pdfbook2/README
trunk/Master/texmf-dist/scripts/pdfbook2/pdfbook2
Modified: trunk/Build/source/texk/texlive/linked_scripts/pdfbook2/pdfbook2
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/pdfbook2/pdfbook2 2019-08-13 20:54:36 UTC (rev 51873)
+++ trunk/Build/source/texk/texlive/linked_scripts/pdfbook2/pdfbook2 2019-08-13 20:54:58 UTC (rev 51874)
@@ -47,7 +47,6 @@
name, tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -89,7 +88,6 @@
tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -121,7 +119,6 @@
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 @@
pdfJamCallList.append( r"\usepackage{everyshi}\makeatletter\EveryShipout{\ifodd\c at 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 @@
#------------------------------------------------------------ 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"""
Modified: trunk/Master/texmf-dist/doc/man/man1/pdfbook2.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/pdfbook2.1 2019-08-13 20:54:36 UTC (rev 51873)
+++ trunk/Master/texmf-dist/doc/man/man1/pdfbook2.1 2019-08-13 20:54:58 UTC (rev 51874)
@@ -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 @@
.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
Modified: trunk/Master/texmf-dist/doc/man/man1/pdfbook2.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/pdfbook2/README
===================================================================
--- trunk/Master/texmf-dist/doc/support/pdfbook2/README 2019-08-13 20:54:36 UTC (rev 51873)
+++ trunk/Master/texmf-dist/doc/support/pdfbook2/README 2019-08-13 20:54:58 UTC (rev 51874)
@@ -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 @@
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
Modified: trunk/Master/texmf-dist/scripts/pdfbook2/pdfbook2
===================================================================
--- trunk/Master/texmf-dist/scripts/pdfbook2/pdfbook2 2019-08-13 20:54:36 UTC (rev 51873)
+++ trunk/Master/texmf-dist/scripts/pdfbook2/pdfbook2 2019-08-13 20:54:58 UTC (rev 51874)
@@ -47,7 +47,6 @@
name, tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -89,7 +88,6 @@
tmpFile],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE )
- p.wait()
out, err = p.communicate()
if len( err ) != 0:
print err
@@ -121,7 +119,6 @@
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 @@
pdfJamCallList.append( r"\usepackage{everyshi}\makeatletter\EveryShipout{\ifodd\c at 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 @@
#------------------------------------------------------------ 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"""
More information about the tex-live-commits
mailing list