bat file, but you need use "%%" to instead of "%" in. COMMAND LINE TO CONVERT PS TO PDF PDFConvert all Postscript files to PDF files in D:\temp folder and sub-folders (recursion), the output PDF files will be placed to the same folder with original Postscript files, for example,įor /r D:\temp %F in (*.ps) do "C:\VeryPDF\ps2pdf.exe" "%F" "%~dpnF.pdf" Convert all Postscript files to PDF files from D:\temp folder to D:\output folder,įor %F in (D:\temp\*.ps) do "C:\VeryPDF\ps2pdf.exe" "%F" "D:\output\%~nF.pdf" Convert all Postscript files to PDF files from D:\temp folder to D:\temp folder,įor %F in (D:\temp\*.ps) do "C:\VeryPDF\ps2pdf.exe" "%F" "%~dpnF.pdf" You can use following one command line to batch convert all of your files at one time easily, Thanks for your message, you can use DOS batch command to convert all Postscript files in a folder and its sub-folders to PDF files easily, please find the example command lines at below. I mean I want to put files PS files in A folder I want to get the out of it in PDF in B folder.Īlso whenever I put p files in PS in (A) folder automatically it will convert into pdf In B folder.Īlthough I am able to convert file single ps file to single pdf file with the script below. As always, check the quality of the final to see if it's adequate for your needs.I need a support for writing a script that I want to convert whole folder PS files to Next folder In PDF. If you go to the reference page, you will see a very large number of other choices for things such as image compression that you may wish to try out, but just using the /screen setting for an example 126KB file produced a 594KB PostScript file, then a final PDF of only 21KB, so only about 1/6 the size of the original. I think you will find that using the /ebook value will give a very good compression, but better resolution than using /screen. Choices are /screen, /ebook, /prepress, and /printer. The -dPDFSETTINGS option has a number of prebuilt subsettings which you will find on the above referenced webpage. Ps2pdf -dPDFSETTINGS=/ebook -sOutputFile=myshrunkenfile.pdf myfile.ps Or, to avoid deleting your original myfile.pdf, you might put: On the return trip, there are many settings to consider, but for simplicity's sake you might try using just one: Which will create myfile.ps, and will be larger than the original PDF. About the only setting in pdf2ps to consider is the language level, Let's say you have a file, myfile.pdf, created by Scribus. It is only in the conversion back to PDF that various settings allow for shrinking the size of the resulting file. My reading of the man page for pdf2ps and a web reference for ps2pdf suggest that the first step, converting to a PostScript file, does not involve any compression. The actual shrinkage is accomplished by the use of pdf2ps and ps2pdf, which are utilities which come with ghostscript. That article shows a Perl script, a rather long one at that, to accomplish the task. This is a simplified version of the method used in Web optimised PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |