Support Article

Column width in Printed PDF from HTML code is different

SA-29268

Summary



The user is trying to generate a PDF file with the data collected from Clipboard. They are making use of HTML to show it in tables and this html is converted to PDF

For all the tables, the user has given same column width, but for one of the tables the column width is different in the generated PDF file.


Error Messages



Not Applicable


Steps to Reproduce

  1. Try adding two tables in HTML.
  2. Give the table column widths same for both the tables.
  3. Then try to run the rule and check whether the two tables are same in column width.


Root Cause



The column width specified was auto and hence the width generated in PDF is taking up as per content in the column.



Resolution



As user wanted fixed widths for all the tables added the below CSS in user's HTML code.
td.col1{
width: 30 %
}
td.col1{
width: 70 %
}

 

 

Published October 20, 2016 - Updated October 8, 2020

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.