Skip to main content
Legend
October 13, 2020
Answered

RH2020 element size in Word vs. PDF

  • October 13, 2020
  • 5 replies
  • 317 views

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

    This topic has been closed for replies.
    Correct answer Peter Grainge

    The cheeky answer is PDF is Adobe and Word is Microsoft!

     

    How are your table widths defined? I use 100% and it works OK.

     

    5 replies

    Legend
    October 14, 2020

    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 ^^

    Community Expert
    October 13, 2020

    Karin, the CSS snippet is for a table cell (table.Normal td). Can you check again the CSS for the table? 

    Peter Grainge
    Community Expert
    Community Expert
    October 13, 2020

    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?

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Legend
    October 13, 2020

    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:

    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    October 13, 2020

    The cheeky answer is PDF is Adobe and Word is Microsoft!

     

    How are your table widths defined? I use 100% and it works OK.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.