Ich mache das so...
Code:
:"3. DRUCK PDF LS": printx=3;printer is "P. PDF" to "MAIN:PDF.TXT"
Code:
execute "cmd /C z:\programm\_pcl2pdf.bat c:\oa4\pdf.txt z:\daten\pdf\LS"&string(daten.i)&".pdf"
Das Batch File "
_pcl2pdf.bat" konvertiert dann wie folgt:
Code:
@echo off
echo Konvertiere PCL nach PDF....
call z:\programm\pclenv.bat
z:\programm\pcl6 -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE#pdfwrite %PCLOPTS% -sOutputFile#%2 %1
del %1
start %2
Das "
pclenv.bat" sieht so aus:
Code:
rem Set the Font directory to the urwfonts directory in UNIX-Style (with slashes instead
rem of backslashes).
rem You MUST terminate the path with a slash!
set PCLFONTSOURCE=z:/programm/urwfonts/
rem Additional options for pcl6
set PCLOPTS=-J"@PJL SET FORMLINES = 66" -J"@PJL SET ORIENTATION=PORTRAIT" -J"@PJL SET PAPER=A4"
Du findest es etwas ausführlicher hier ...
http://www.waldbauer.com/vb/showthread.php?t=2173