Convert HTML to PDF and add Page number stamp in PDF document with elixir using Aspose.PDF REST API

Hi, We are looking for aspose to covert phoenix html template( with tables, svg, paragraphs beautified with css) into pdf. Pdf should have header and footer in each page like current date, page 1 of 50 etc. We are not able to use given SDKs as our current stack is elixir. Can we use aspose with this stack and how. If you can please provide some example.

@dkaushik

It can be achieved using couple of Aspose.PDF Cloud APIs. First convert HTML to PDF and then add PageNumber and Date as a text stamp in the resultant PDF.

I am afraid we do not have a SDK for Elixir at the moment. We are looking into your requirement and will update you soon.

We have logged a new feature request PDFCLOUD-991 for the support of Aspose.PDF Cloud SDK for Elixir. We will notify you as soon as it is resolved. Meanwhile, you can use Aspose.PDF Cloud REST API via some HTTP Client.

It can be achieved using couple of Aspose.PDF Cloud APIs. First convert HTML to PDF and then add PageNumber and Date as a text stamp in the resultant PDF.

Is there a quicker way to add a generic header/footer to all the pages of the pdf? Since the solution that you provided is only meant for a specific page, so, if a pdf contains around 50 pages, we’ll have to hit the api 50 times which is really time consuming process and not at all feasible.

We have logged a new feature request PDFCLOUD-991 for the support of Aspose.PDF Cloud SDK for Elixir. We will notify you as soon as it is resolved. Meanwhile, you can use Aspose.PDF Cloud REST API via some HTTP Client.

Regarding this, when you are ready with the sdk for elixir, will it have this same functionality to add the header/footer page wise or you’ll provide us with an option to add a generic header/footer to the whole pdf?

@pgarcha

Thanks for your feedback. I am afraid currently the subjected feature is not available. We have logged a feature request PDFCLOUD-1015 in our issue tracking system. We will notify you as soon as it is implemented.

@pgarcha

I am afraid we cannot share any ETA at the moment, as the issue is still pending for investigation in the queue. As soon as the issue analysis is completed, then we will be in a good position to share any ETA with you. Furthermore, if PDFCLOUD-1015 is resolved before the release of Aspose.PDF Cloud SDK for Elixir, then the feature will be included in it.

@pgarcha

About PDFCLOUD-1015, we have implemented the following API to add a page number stamp on all the pages of a PDF document. Hopefully, it will help you to accomplish the task.

POST ​/pdf​/{name}​/stamps​/pagenumber Add document page number stamps