• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I create a PDF document from a string in a non-GUI application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How can I create a PDF document from a string in a non-GUI application?
      • From: Tim Gray <email@hidden>
References: 
 >How can I create a PDF document from a string in a non-GUI application? (From: email@hidden)
 >Re: How can I create a PDF document from a string in a non-GUI application? (From: "Johan Kool" <email@hidden>)
 >Re: How can I create a PDF document from a string in a non-GUI application? (From: j o a r <email@hidden>)
 >Re: How can I create a PDF document from a string in a non-GUI application? (From: "Johan Kool" <email@hidden>)

  • Prev by Date: Re: NSTreeController: do leaf and non-leaf nodes have to be of the same class?
  • Next by Date: RE: Binding to Accessors of Application Delegate
  • Previous by thread: Re: How can I create a PDF document from a string in a non-GUI application?
  • Next by thread: Re: How can I create a PDF document from a string in a non-GUI application?
  • Index(es):
    • Date
    • Thread