How to main the styling when converting HTML to PDF

I have some code for an invoice written in HTML and bootstrap version 5, however, when I try to generate a PDF file from the HTML, the styling breaks and is not maintained. Is there a standard way to write HTML that is going to be converted to PDF?
This is the first time I am converting HTML to PDF, please help.

I have checked online but I can’t seem to find a solution, please help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.