[gs-devel] PS to PDF convertion : problem using
ghostscript gsdll32.dll
Russell Lang
gsview at ghostgum.com.au
Tue Feb 17 00:03:54 PST 2004
Mário,
> Im a Delphi develloper and i trying to use the gsdll32.dll to convert ps
> files to pdf.
>
> The application works fine, but the original header/footer margins in the
> pdf file is lost in the convertion.
>
> In ghostview the "convert" options makes the convertion to work without lost
> the header/footer margins.
>
> argv[0] := 'ps2pdf';
> argv[1] := '-dNOPAUSE';
> argv[2] := '-dBATCH';
> argv[3] := '-dSAFER';
> argv[4] := '-sDEVICE=pdfwrite';
> argv[5] := '-sOutputFile=file1.pdf';
> argv[6] := '-c';
> argv[7] := '.setpdfwrite';
> argv[8] := '-f';
> argv[9] := 'file1.ps';
>
I'd add -sPAPERSIZE=a4
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list