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 6763395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:28:15+00:00 2026-05-26T14:28:15+00:00

We use on our production server: Ubuntu 10 server edition. We need to create

  • 0

We use on our production server: Ubuntu 10 server edition.
We need to create a document that includes text , images and tables in the content and images in header and footer.
Now we use http://phpword.codeplex.com/ to create it and it does a great job generating docx files but we need the pdf version of that file.
How can we convert the docx to pdf ? Or any other library to generate pdf files that allows images in header /footer ?
Using windows components is not a solution.
Using openOffice maybe? can it be used on an ubuntu server edition ?
any other convertor for docx to pdf in linux – server environment ?

  • 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-05-26T14:28:16+00:00Added an answer on May 26, 2026 at 2:28 pm

    If your documents include images using OpenOffice is definitely a good solution. Check out PyODConverter if you want to try this out.

    If it’s simple text you might want to consider using a simpler solution like PHPDocx, unoconv, AbiWord or LiveDocx.

    I’ve used OOo in the past for this (and still use to convert Odt files to Pdf) and it works great. 🙂
    I only got one problem with it, but has already been resolved. You can check that out here: Docx to pdf using openoffice headless way too slow

    EDIT:

    I’ve created a bash script “/etc/init.d/openoffice” to start openoffice with the correct options. The file contents are the following:

    #!/bin/bash
    # openoffice.org headless server script
    #
    # chkconfig: 2345 80 30
    # description: headless openoffice server script
    # processname: openoffice
    
    OOo_HOME=/usr/lib/openoffice
    SOFFICE_PATH=$OOo_HOME/program/soffice
    
    if [ "$1" == "start" ]; then
     echo "Starting OpenOffice headless server"
     $SOFFICE_PATH --headless --accept="pipe,name=beubi_OOffice;urp;StarOffice.ServiceManager" --invisible --norestore --nodefault --nolockcheck --nofirstwizard
     exit
    fi
    
    if [ "$1" == "stop" ]; then
     echo "Stopping OpenOffice headless server."
     killall -9 soffice.bin && killall -9 soffice
     exit
    fi
    
    echo "Usage: $0 {start|stop}"
    exit 1
    

    Then just set execute permission on it and you should be ready to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The security policy at our client's production environment requires that we use separate connection
We need to install a Subversion server on one of our production web servers.
I use the APC extension on our production server. I added this code: $tmp
are there any free Team Foundation Server sites we can use for our private
I'm interested in replacing an aging control we use in our project that is
My company has a ClickOnce application that has been in use with our customers
We will soon be migrating company data from our pre-production server to production with
My company has haphazardly upgraded the production server of our website to CF9, and
I'm looking for guidance on the optimal REST/Json method to use for our production
In the office we use Visual Studio 2008 with Team Foundation Server as our

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.