![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Wolfgang Schuster wrote:
Am 10.04.2009 um 09:23 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Hi Hans, the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
line 289:
job.setvariable('result',"texexec-#{n}")
should do the job
works but didn't it makes more sense to create 'filename-number' by default and 'resultname-number' with with 'texexec --pdfsplit --result=resultname myfile.pdf'
result = @commandline.checkedoption('result','texexec') nofpages.times do |i| if f = File.open(tempfile,"w") then ... job.setvariable('result',"#{result}-#{n}") ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------