Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Using postscript in Java Date: Fri, 27 May 2016 15:30:16 +0200 Organization: Decebal Computing Lines: 33 Message-ID: <87inxz39xz.fsf@Equus.decebal.nl> References: <87wpmf3fc4.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="19175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Y1xvJBfbEXB+7Q3YPX2TJ/unKJ+zMHXY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:Q9ln1eUgSBEDBVXaksXS1vwjdi4= sha1:g+oeLs8S7BYKL1m4h0J+XA9H+jY= Xref: csiph.com comp.lang.java.programmer:34405 On Friday 27 May 2016 14:21 CEST, Eric Douglas wrote: > On Friday, May 27, 2016 at 7:43:49 AM UTC-4, Cecil Westerhof wrote: >> At the moment I am using Ghostscript (from a Bash script) to render >> postscript to a PDF file. What is the best way to do this from >> Java? > > I looked into it once, as I recall there should be an API for > Ghostscript, which hasn't been updated in years. What is the purpose > for it? Do you have to start with postscript? If not there are much > better ways of making PDFs. FOP and iText are the most popular APIs > for producing PDFs. pdfbox has some functionality for producing PDF > but is more for using PDFs as input. I use it for creating things like: http://mob-com.nl/account_history_info.php?order_id=73908 https://www.facebook.com/TimeManagementTipsAndSkills/photos/a.301775443228177.69771.104189696320087/902472369825145 I especially have defined quit a few borders. Would a bit of work to translate those I am afraid. > If you already have a script you could just as well execute system > commands from Java. I would like to make things like that easier. I also would like to make it system independent, so other people could use it also. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof