docx-you-want is a tool to convert a PDF document into a .docx file

Related tags

pdf converter office


docx-you-want is a tool to convert a PDF document into a .docx file ... in an unusual way. Since these two formats are inherently different, it is impossible to get a .docx file from a PDF without a noticeable difference in their appearances. docx-you-want on the other hand, sort of preserve the look of the original PDF.

What does it really do?

  1. It calls Inkscape to convert every individual page of the PDF into SVGs, thus preserving its look. This means to run it, inkscape should be installed and in your PATH.
  2. Then it inserts those images into a minimal .docx file, adding a PNG version of each also so that programs that don't support SVG in a .docx file have something to fall back on.
  3. Finally, it zips the files and gives you the .docx (you want?).

When to use this tool?

Hopefully never.

However, if someone asks you to send them a .docx version of your document and refuses to accept the PDF version that you only have, consider using it. The next thing should be the person being very sad about your fake .docx document and wondering: is this really the .docx he wants?

Why Rust?

My bad.

I really should have written it in bash or Python, none of which, including Rust, I am good at, though.

A Rust library for PDF document manipulation.

lopdf A Rust library for PDF document manipulation. Example Code Create PDF document #[macro_use] extern crate lopdf; use lopdf::{Document, Object, St

Junfeng Liu 806 Sep 15, 2021
Generate PDF files with JavaScript and WASM (WebAssembly)

WASM-PDF Generates PDF files directly in the browser with JavaScript and WASM (WebAssembly). Idea here is to push all the work involved in creating a

Jussi Niinikoski 219 Sep 16, 2021
Generating PDF files in pure Rust

pdf-canvas A pure rust library for generating PDF files. Currently, simple vector graphics and text set in the 14 built-in fonts are supported. To use

Rasmus Kaj 104 Aug 28, 2021