Free Support Forum - aspose.cloud

Convert HTML to PDF via REST API - Set page margins?

I’m using the Aspose Cloud to convert HTML to PDF using the REST API. I’ve got everything working fine except that I cannot figure out how to set the Page Margins on the PDF. The default Page Margins are huge and it ruins my documents - I don’t want any margins on the PDF unless I specify them.


Does anyone know how to set the PDF margins before/during HTML to PDF conversion?

Hi Peter,


Thanks for your inquiry. I’m sorry to share with you that there is no way to set page size or margins. I have logged these feature requests under ticket ids SAASPDF-99 and SAASPDF-100 in our issue tracking system. Your request has also been linked to these issues and you will be notified as soon as it is supported and available for the public use. We’re sorry for your inconvenience.

Hi Imran,


Thanks for the response. I’m disappointed that it isn’t a feature right now, but glad to hear it’s been logged as a request.

I’ve already done an implementation using the .NET library so I can fall back to that, but the pricing for that is too high to use the .NET library in production - hence the interest in Aspose Cloud.

Can I check the status of those 2 tickets on this website somewhere or do I just wait for an email?

Regards,
Peter

Hi Peter,


Thanks for your inquiry. Unfortunately, there is no direct way you can track issues by yourself. But, you are welcome to ask the issue status via forum threads. We will verify the status from our internal issue tracking system and reply you back.