Pdfcrowd Blog

Product updates, tips & tricks

Postman is a platform for using APIs. You can use it to interact with the Pdfcrowd API and convert between PDF, HTML and various image formats.

Let's first configure the API endpoint and the credentials. This configuration is common for all conversion types.

API endpoint - Select the HTTP POST method and enter the API endpoint: https://api.pdfcrowd.com/convert/

Postman - Pdfcrowd API endpoint

API credentials. The authorization method is Basic Auth. You can use either the demo credentials or your personal API credentials.

Pdfcrowd website has been restructured. Main changes:

API clients have been updated to version 5.2.2 and WordPress plugins to version 2.6.2 to reflect the changes in the API reference.

We have released a new version of our Save as PDF and Save as Image WordPress plugins.


  • Added the "URL Lookup" option to select how to retrieve URLs for Conversion Mode-URL.
  • Added the "Diagnostics" option that displays useful info about the button settings.


  • Minor text update in the plugin settings.


  • Minor fix in the plugin settings.

In this tutorial you will learn how to add header and footer to PDF created by Pdfcrowd API. We will use PHP for illustrative purposes, but the code would be essentially the same in all languages the API supports.

Step-by-Step Example

Let's start with instantiating the Pdfcrowd client and setting the page format to Letter:

$client = new \Pdfcrowd\HtmlToPdfClient($user_name, $api_key);

The next step is to design our HTML footer and header. We can use special CSS classes that will be expanded as follows:

  • pdfcrowd-page-count - the total page count of printed pages
  • pdfcrowd-page-number - the current page number
  • pdfcrowd-source-url - the source URL of the main document