Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist. You may also use "Start a topic" button to ask a new question. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. This thread is inactive and closed by the PTC Community Management Team. I've run the 64 bit GS installer and added a couple of install folders to my path statement and ps2pdf runs without error (I'm using the syntax "path/to/ps2pdf inout.ps output.pdf") but produces no output.Īnyone have an idea what I'm missing to get this running?Īlternatively, anyone have a free or cheap means of scripting the conversion of a PS file to PDF like Distiller? Unfortunately, the learning curve for GS is rather steep. I was looking at using Ghostscript, specifically the ps2pdf utility as a Distiller replacement, but I'm having no luck with it. I'd like to do the same here, but we do not have Distiller available to all users. It worked well and bypassed the many issues I saw with the built-in PDF creation in Creo. The resulting PostScript file was convert- ed to PDF using Acrobat. Search for channels in this forum for downloading.This is slightly off topic as it's mainly a Ghostscript question, but it's related to generating PDFs from Creo and I know that many here use Ghostscript.Īt my former job I had used Distiller to create PDFs from PS output from Creo. I created a PostScript file from the FrameMaker file via the PostScript printer driver. "Channels" is a tool that will create pdf for selected channels set by the user. The user will have to set/deal with plotting options such as titles, legends, curves per plot, plots per page, etc. Distiller can also run from the command line, therefore it can be called by the same application that called PSSPLT, and convert the ps file to pdf as part of a loop process.Ī second option is to use python to extract data from the *.out files and plot them using matplotlib, saving the picture to pdf format. Additional code would move the pdf files to the final folder destination. You can set watch folders that when a ps file 'arrives' (save folder used by PSSPLT), it gets converted to pdf automatically, avoiding user intervention. PSSPLT creates the *.ps file and distiller grab the ps filename to create a pdf file. One other method is to use Distiller, an application that comes with Adobe Acrobat Standard or the Pro version. Ps2pdf has been reported as problematic under windows. GSDIR - Where did you install Ghostscript OVERWRITE - If the PDF file already exists TARGETDIR - Place the PDF files in this directory DELETEPS - Delete. NAME ps2pdf - Convert PostScript to PDF using ghostscript ps2pdf12 - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript ps2pdf14 - Convert PostScript to PDF 1. The doct for the "ps2pdf" utility is here : In Python, you could use something like n() to run the cmd, or make a buch of cmd strings, write them into a temp CMD/BAT file then use Python to run that temp file and delete it after finish. There is quite a good tutorial here : How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows 10
0 Comments
Leave a Reply. |