Quote:
Originally Posted by DiaLogical
That did the trick indeed, and now it sounds like a stupid mistake)
Thanks a bunch, appreciate the quick reply!
One more question, the font of the Guardian pdf files seems to be rather on the small side. Is there another quick way to enlarge them a few points instead of manually zooming with the iLiad's build in function every time?
|
I don't have my iliad at the moment so I have not been able to see what this looks like on the iliad, but if you have latex, pdfinfo and awk installed this script will create a latex file and process it to split the columns of the
Guardian 24 World.pdf and produce a long thin version of the PDF. You could then read this using continuous mode on the iliad.
Here's the code for the script. I'll attach it as well. At the moment it is a bash script that is hard-coded to work with World.pdf. With a little more work it could download the PDF, but this will do for now.
Code:
cat << EOF > temp.tex
\documentclass[a4paper]{article}
\usepackage{pdfpages}
\usepackage[lmargin=0cm,rmargin=0cm,tmargin=0cm,bmargin=0cm,nohead,paperwidth=124mm]{geometry}
\begin{document}
\includepdf[pages=1, pagecommand={\thispagestyle{empty}}]{World.pdf}
EOF
## Get number of pages
NUMPAGES=$(pdfinfo World.pdf | grep Pages | awk '{ print $2 }')
for i in $(seq 2 $NUMPAGES)
do
echo \\includepdf[pages=$i, trim=0 0mm 107mm 0, clip, pagecommand={\\thispagestyle{empty}}]{World.pdf} >> temp.tex
echo \\includepdf[pages=$i, trim=107mm 0mm 0 0, clip, pagecommand={\\thispagestyle{empty}}]{World.pdf} >> temp.tex
done
cat <<EOF >> temp.tex
\end{document}
EOF
pdflatex temp.tex
mv temp.pdf World-iliad.pdf