Copy link to clipboard
Copied
Hi all,
I am using RH2020.1.54 and have the following question: when I generate a PDF output, elements such as tables and images are resized to fit onto the pages. When I generate a Word output, this does not happen. Thus, my tables and large images are exceeding the page. Are there any settings / definitions to be made so that the Word output works similar to the PDF output in this regard?
I'm not very good with CSS and the like, but I wondered if I maybe have to tell my tables some maximum width for Word output only or something. But, why is it working for PDF, but not for Word?
Any ideas, anyone?
Best regards
Karin
The cheeky answer is PDF is Adobe and Word is Microsoft!
How are your table widths defined? I use 100% and it works OK.
Copy link to clipboard
Copied
The cheeky answer is PDF is Adobe and Word is Microsoft!
How are your table widths defined? I use 100% and it works OK.
Copy link to clipboard
Copied
ah 🙂 My tables are also 100%. This is how it looks in source code:
<table class="Normal" width="100%">
This is my table class Normal in css:
table.Normal td {
border-width: 1px;
border-style: solid;
border-color: #000000;
padding-top: 3px;
padding-right: 5px;
padding-bottom: 3px;
padding-left: 5px;
}
And this is how it looks like on the right side of my Word:
Copy link to clipboard
Copied
Try creating a new table in 2020 but don't apply a style, just add it from the toolbar.
Does that behave in a different way?
Then try repeating that but right click in the table and select the table from the context menu.
Apply on of the templates that should then be in a Table tab in Properties.
Does that work?
Copy link to clipboard
Copied
Karin, the CSS snippet is for a table cell (table.Normal td). Can you check again the CSS for the table?
Copy link to clipboard
Copied
Thank you, Amber! I found it: in the table CSS width: 900px was defined. I removed it, and now it works. I clearly have to learn much more about CSS ^^