So we setup a new express instance, define a post handler for the root route and configure it to accept raw binary data of content-type “application/pdf”. This handler will finally return the success status code 204 (no content). We start the web server with the listen method on the defined port 3000.
In the final step we implement actual printing. Therefore we need the following steps: