Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 683 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 683 Bytes

pdf2docx

Simple pdf to docx converter. It will extract only the text from pdf and put it in docx for editing.

Usage:

pdf2docx -file <pdf file> -output <output directory>

Easy use: just run the program in directory that has PDF files and it will make DOCX files by the same name.

Build on Mac

You need mupdf and mupdf-tools installed. You also need mingw for Windows cross-compilation.

brew install mupdf
brew install mupdf-tools
brew install mingw-w64

Example build:

CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" CXX="x86_64-w64-mingw32-g++" GOOS=windows GOARCH=amd64 go build -tags "" -ldflags "-extldflags -static" -o pdf2docx ./cmd/main.go