Os x print pdf command line


















Maybe you can install Word on Linux using Wine or Crossover? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks.

Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Linked 3. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings. Thanks for posting this. Lost your password? Powered by the Parse. I have used many different methods over the years to print documents to PDFs from the command line. Some have been complicated sequences of pipes to and from groff , others required TeX , and occasionally I set up a "virtual" printer, simply to print to file.

I recently read documentation for cups-pdf, however, and found that cupsfilter command is sufficient for most of my own tasks in its bare form! The reason this method is ideal is because it uses built-in routines in OS X; any time you can take advantage of these, do , because many of the core technologies are significantly faster and more secure than third-party alternatives. Of course, your mileage may vary The following comments are owned by whoever posted them.

This site is not responsible for what they say. Okay for a quick-n-dirty PDF, but Authored by: snuggles on Dec 08, '09 AM. The font used for rendering the text appears to be Monaco at some large point size.

Also, cupsfilter has no way of creating page numbers, generating useful headings, or performing word-wrap on long lines. Possible to print to PDF from Mac terminal? Ask Question. Asked 11 years ago. Active 1 year, 3 months ago. Viewed 29k times. Improve this question. What sort of file? Daniel, I should've been more clear in my question: What sort of source file?

Doug I apologize, I actually misread the question. Is this possible? Your main problem probably is, that the viewer application is file format dependent. Make up your mind what format you want and you'll get specific answers. Show 2 more comments. Active Oldest Votes. There's not much to it, just lpr filename. If not, you might have to do lpr -P printername filename. Improve this answer. Alex K 4 4 bronze badges. Perry Perry 2 2 silver badges 4 4 bronze badges.

Provided solution gives zero-size pdf on Yosemite. Any ideas how to solve it? Sorry for duplication. Provided solution gives zero-size pdf on Yosemite, when I'm trying to pring. RTF or txt are printed well. Any ideas how to fix it? You cannot generate pdf files with lpr. This does not answer the original question as it was how to 'print to pdf', not print a pdf.



0コメント

  • 1000 / 1000