Ps to pdf problem

View: New views
2 Messages — Rating Filter:   Alert me  

Ps to pdf problem

by Gerald Manickam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Friends,

    I used batch file pstopdf1.4  present in lib folder of Ghostscript 8.14. I passed arguments like the below.

    ps2pdf13 "D:\testing\test.ps" "D:\testing\testing.pdf"

 The output pdf file is cropped to A4 size. [612 X 792]. My aim is to get the full page size. when i checked the distiller the default size is A4. I do know how to set the original page size. Please tell me how to get the full page size.

Thanks and Regards,
Gerald Manickam Philiph

Re: Ps to pdf problem

by yvan roussel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

It's not a bug.
You need to know at first the size of  your eps.
gswin32c -sDEVICE=bbox -dNOPAUSE -dBATCH "d:\testing\test.ps" > size.txt
The size is in the file size.txt
Then you do the pdf with the good size (width and height)
gswin32c -dDEVICEWIDTHPOINTS=width -dDEVICEHEIGHTPOINTS=height -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile="d:\testing\test.pdf" "d:\testing\test.ps"
regards
Y.Roussel


Gerald Manickam wrote:
Hi Friends,

    I used batch file pstopdf1.4  present in lib folder of Ghostscript 8.14. I passed arguments like the below.

    ps2pdf13 "D:\testing\test.ps" "D:\testing\testing.pdf"

 The output pdf file is cropped to A4 size. [612 X 792]. My aim is to get the full page size. when i checked the distiller the default size is A4. I do know how to set the original page size. Please tell me how to get the full page size.

Thanks and Regards,
Gerald Manickam Philiph