DEV Community

Sohail Pathan
Sohail Pathan

Posted on

1

File Conversion - Doc to PDF

Hi Devs,

There are several libraries available to convert Word documents to PDFs. Out of all, one of the APIs you should check out is ApyHub's Word to PDF APIs - why? Super quick to test and easy-to-use option.

You can check this out by pasting the below cURL in the terminal.

Note: You will need apy-token for making a successful request, you can get your apy-token by simply signing up from here.

curl --request POST \
  --url 'https://api.apyhub.com/convert/word-url/pdf-file?output=test-sample.pdf&landscape=false' \
  --header 'Content-Type: application/json' \
  --header 'apy-token: ADD-YOUR-APY-TOKEN-HERE' \
  --data '{
    "url":"https://assets.apyhub.com/samples/sample.docx"
}'

Enter fullscreen mode Exit fullscreen mode

Isn't this simple compared to integrating an open source library? Similar to this you can convert files like spreadsheets, PPTx, webpage and images. Check the rest of the APIS from here

Happy Coding, Thanks :)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay