Tags:
create new tag
view all tags

Generating DOCX files

Overview

  • mutool and gs have experimental support for generating DOCX files suitable for loading and editing with Microsoft Word, LibreOffice or similar.
  • This requires that mutool and/or gs were built with the extract library.
  • Rotated text is placed inside a text box in the DOCX output.
    • Note that text boxes do not seem to be supported by WordPad.
  • (mutool only) Images are extracted and placed inline to nearby text in the DOCX output.

Usage

  • With mutool, use the convert command with a .docx output suffix, for example:
    • mutool convert -o foo.docx foo.pdf
    • Putting rotated text into text boxes can be disabled with -O rotation=no.
  • With gs, use the docxwrite device, for example:
    • gs -sDEVICE=docxwrite -o foo.docx foo.pdf

Examples

Artifex Licensing

Artifex offers a dual licensing model for MuPDF. Meaning we offer both commercial licenses or the GNU Affero General Public License (AGPL).

While Open Source software may be free to use, that does not mean it is free of obligation. To determine whether your intended use of MuPDF is suitable for the AGPL, please read the full text of the AGPL license agreement on the FSF web site.

With a commercial license from Artifex, you maintain full ownership and control over your products, while allowing you to distribute your products to customers as you wish. You are not obligated to share your proprietary source code and this saves you from having to conform to the requirements and restrictions of the AGPL. For more information, please see our licensing page, or contact our sales team.


Please send any questions, comments or suggestions about this page to: julian.smith@artifex.com

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2021-02-18 - JulianSmith
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2014 Artifex Software Inc