Re: How can I create a PDF document from a string in a non-GUI application?
Re: How can I create a PDF document from a string in a non-GUI application?
- Subject: Re: How can I create a PDF document from a string in a non-GUI application?
- From: Sherm Pendley <email@hidden>
- Date: Thu, 18 May 2006 15:19:49 -0400
On May 18, 2006, at 7:54 AM, Johan Kool wrote:
So am I right that if Will wants to create his PDF
in a CLI app without a window server connection that he needs to go
look for a 3rd party PDF creating library elsewhere?
PostScript files can be converted to PDF with "pstopdf". So, we can
get from hello.txt to hello.pdf, with a quick stop at hello.ps on the
way, in three easy commands:
echo "Hello, PDF!" > hello.txt
groff -Tps hello.txt > hello.ps
pstopdf hello.ps -o hello.pdf
Fair warning though - Groff is complex, with a lot of page layout
macros and options.
I'd assume that TeX can produce PS output too, and its fans swear by
the quality of its typesetting, but I haven't used it myself so I
can't give an example.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden