I have a report presented in the form of an HTML table that is quite large, causing the browser to create a scroll in the x-axis. It becomes necessary for me to scroll or zoom-out in order to view the entire table. My goal is to utilize Javascript to convert this HTML table and its associated CSS into PDF format specifically for printing purposes. Given the width of the table, capturing screenshots does not seem like a feasible option.
Does anyone have any suggestions on how I can achieve this while considering the following two points?
- The table in the report is wide.
- I would like the CSS styling to be retained when converting to PDF format.