{"id":388,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=388"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"ghostscript-create-pdf-files","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=388","title":{"rendered":"Ghostscript: Create PDF files"},"content":{"rendered":"<p>If you have Jake Hamby&#8217;s port of <a href=\"http:\/\/www.bebits.com\/app\/797\">Ghostscript<\/a> and BeOS R4.5, you can create PDF files from any BeOS application.<br \/>\nIn the Ghostscript directory, there is a <code>bin<\/code> subdirectory with several shell scripts. The script &#8222;ps2pdf&#8220; converts Postscript files to PDF files. Copy or move it up a level, to <code>\/boot\/apps\/Ghostscript<\/code>. (This assumes you&#8217;ve installed Ghostscript according to the directions, and <code>\/boot\/apps\/Ghostscript<\/code> is in your PATH environment variable. Alternatively, you could add <code>\/boot\/apps\/Ghostscript\/bin<\/code> to PATH.)<br \/>\nTo create a PDF file, first you have to create a Postscript file. Doing this is simple under R4.5&#8211;set up a Postscript printer in the Printer Preferences panel to print to a file. Then when you print from any application you&#8217;ll be prompted for the filename to create.<br \/>\nThen, from a terminal prompt, type <code>ps2pdf [filename]<\/code> to create a PDF file (if you&#8217;d created a file called <code>document.ps<\/code>, you would type <code>ps2pdf document.ps<\/code>).<br \/>\nIf you have xicon, you can give the ps2pdf shell script drag-and-drop capability.<br \/>\nPDF files can be displayed under BeOS with BePDF and Ghostscript itself (just type <code>gs filename.pdf<\/code> at a shell prompt). Ghostscript also has the ability to print PDF files. (Read the documentation for more information on this ability. If you download the &#8222;pslpr&#8220; shell script from BeBits, it will let you print PDFs and Postscript files to any Ghostscript-compatible printer without having to know Ghostscript&#8217;s command line options.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have Jake Hamby&#8217;s port of Ghostscript and BeOS R4.5, you can create PDF files from any BeOS application. In the Ghostscript directory, there is a bin subdirectory with several shell scripts. The script &#8222;ps2pdf&#8220; converts Postscript files to PDF files. Copy or move it up a level, to \/boot\/apps\/Ghostscript. (This assumes you&#8217;ve installed [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[2],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","tag-applications"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=388"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/388\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}