Skip to content

Commit 7c78757

Browse files
committed
Helper for nos
1 parent b5c8c9c commit 7c78757

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

no.bat

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
REM Usage: no.bat infile.txt "Title of PDF"
2+
3+
echo %1 %2
4+
wc -w %1
5+
6+
no.py %1 > no-%1
7+
wc -w no-%1
8+
9+
no.py -t %1 > no-x2-%1
10+
wc -w no-x2-%1
11+
12+
echo "PDF:" no-%1
13+
REM https://openbookproject.googlecode.com/svn/tangle/html2pdf/reportlab_2_1/reportlab/tools/py2pdf/py2pdf.py
14+
py2pdf.py --fontSize 10 --mode mono --title "%2" no-%1
15+
16+
echo "PDF:" no-x2-%1
17+
REM http://two.pairlist.net/pipermail/reportlab-users/2007-February/005791.html
18+
REM http://two.pairlist.net/pipermail/reportlab-users/attachments/20070213/80c61e82/attachment.obj
19+
txt2pdf.py no-x2-%1

0 commit comments

Comments
 (0)