Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7834649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:16:02+00:00 2026-06-02T13:16:02+00:00

I have an application need to print a MS Word .docx file from the

  • 0

I have an application need to print a MS Word .docx file from the command line. The background is this is on Snow Leopard Server with CUPS-PDF as the default printer. If in the finder I click once on the .docx file to select and then select print from the file menu it opens MS Word (2011 is installed) and prints the file to the spool (via CUPS) in PDF format. Perfect! Now what is the BASH command equivalent of that???

I have tried lpr, which only appears to work with straight text files. I have tried OPEN which OPENS MS Word but I see no “print” option for open. I have tried the usual MS Office equivalent (OpenOffice and LibreOffice) which both work but the generated PDF layout is so far from that generated by Word that it is shamefully unacceptable. I tried using osascript = AppleScript = which works but is spotty – it does not always trigger.

My challenge is I am creating the .docx outside of word from a template with a PHP program and just need to convert it to PDF retaining all formatting.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:16:04+00:00Added an answer on June 2, 2026 at 1:16 pm

    Take a look at launch, available here: http://sabi.net/nriley/software/, also easy to install using homebrew or macports.

    It is like open, but adds some extra features, including

    -p       Ask application(s) to print document(s).
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application and I need to print from it. I had
I have this application that need to do some things in protected paths (like
I have an application where I need to INSERT an auto_increment value from a
I have an application in which I need to pass an array from C#
I have a report I need to print out in an application I'm usually
I have a requirement to print a bill from the AIR application. Following are
I'm writing web application where I need to push data from server to the
I have one file called test.ai and I need to print it several times,
So, I need to print to a laser printer from a windows form application
I have a Silverlight application that has a DataGrid. I need to print the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.