I understand from the issue description PDF generation is not working as expected on Azure WebApp; facing alignment and font issues.
All Azure Web Apps run in a secure environment called a sandbox. There are limitations - Please check this Azure App Service Sandbox wiki for more info:
The following PDF generators are supported:
- SQL Reporting framework: requires the site to run in Basic or higher
- EVOPDF Telerik reporting: requires the site to run in Basic or
higher.
- Rotativa / wkhtmltopdf: requires the site to run in Basic or
higher.
- NReco PdfGenerator (wkhtmltopdf): requires subscription plan
Basic or higher
Known issue for all PDF generators based on wkhtmltopdf or phantomjs: custom fonts are not rendered (system-installed font is used instead) because of sandbox GDI API limitations that present even in VM-based Azure Apps plans (Basic or higher).
You may try one of the supported framework or try this via a App Service custom container.
Reference: Checkout Unsupported frameworks doc section