1

I'm trying to find a way to convert docx to image-only pdf, so I could put a watermark on the pdf document right after conversion.

I've looked through convertapi documentation and I can't find any available options.

rreckonerr
  • 387
  • 1
  • 3
  • 12
  • Convert to image or pdf? Not clear from the question. – Tomas Jan 24 '19 at 18:13
  • Convert docx to image-only pdf, like the one you get when you print your docx to a file. – rreckonerr Jan 25 '19 at 09:49
  • I am not sure why you need image-only pdf but you can put Watermark on any PDF using ConvertAPI watermark rest api https://www.convertapi.com/pdf-to-watermark What programming language do you use? I would send you example. – Tomas Jan 29 '19 at 12:47
  • @Tomas thank you! I'm already using https://github.com/galkahana/HummusJS to do the watermark part internally without making another API request. So far I have to convert docx to pdf and pdf to image files. – rreckonerr Feb 04 '19 at 16:22

1 Answers1

1

First convert the .docx file to a .jpg:

https://www.convertapi.com/docx-to-jpg

then feed the .jpg to

https://www.convertapi.com/jpg-to-pdf

to generate .pdf

You can chain the API calls to get your desired output.

saibbyweb
  • 2,864
  • 2
  • 27
  • 48