8
Wombat
6y

Hi friends and others. There is a task I want to automate. I want to convert .docx files to .pdf and then minify those. Are there JavaScript libraries or npm- packages which can do that? Because I would like to use Gulp or Webpack for this task. I would not mind if external APIs are involved, but I would rather not use those if not required.

Pls share your wisdom. Bye.

Comments
  • 3
    It's not one of the tools that you mentioned, but have you tried Pandoc for the conversion? http://pandoc.org
  • 1
    @Jilano @zlice you guys are awesome and deserve medals.
  • 1
    @zlice We made it from "others" to "friends" category, late!

    @Divisionbyzero Haha, Welp hope it'll work as intended!
  • 0
    After testing pandoc and some npm packages (most behaved really weird) I finally found one, which does what it tells it does. For minification I couldn't find anything. You don't have a guess how pdf-compressor work?
Add Comment