Pdfcrowd Blog

Product updates, tips & tricks

In this article, we will show how to convert a webpage or an HTML document to PDF in C using the Pdfcrowd API.

We will show the convert() function that provides the conversion functionality. We will demonstrate how to use it to create PDF from various input sources, such as a URL, a local HTML file, or an HTML string. By the end of this article, you should have a good understanding of how to integrate the Pdfcrowd API into your C programs for HTML to PDF conversion.

The API is cloud-based and accessible over HTTP. We will use libcurl to communicate with the API. libcurl is a widely used library available on all major platforms.

To quickly incorporate the Pdfcrowd API into your own code, you can download the complete C code with examples.

We have released a new version of our API client libraries.

New:

  • Added canvas setup options to the ImageToImage API client.
  • Added page setup, watermark/background and output options to the ImageToPdf API client.

Fixed:

  • Fixed an issue with image rotation other than 90/180/270 degrees in the ImageToPdf API client.