Hi Hans, When arranging pfd pages from a pdf file with the ruby version of the texexec script the following error occurs: cid:part1.07050109.01020703@boede.nltexmfstart texexec.rb --pdfarrange --paper=a5a4 --print=2up --result=a5a4-artiplydoc artiply-doc.pdf ..... systems : system commands are enabled ! Missing number, treated as zero. <to be read again> a \@@ppoffset ->a 5a4 \calculatepaperoffsets ...lue {\??pp #1\c!offset } \divide \scratchdimen \arr... <argument> ...!height }\calculatepaperoffsets {A4} \xdef \papersize {A4} \firstofoneargument #1->#1 \next1 #1,->\docommando {#1} \doprocesscommaitem ..... l.3 \setuplayout ? It does work with the perl script. COuld you please have a look at this? Thanks Willi