Skip to main content
Legend
Oct 13, 2020 8:23 AM UTC
Answered

RH2020 element size in Word vs. PDF

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 is closed to new replies. Start a new post to keep the conversation going.
    Peter Grainge
    Peter GraingeCorrect answer
    Community Expert
    Oct 13, 2020 9:06 AM UTC

    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.

    5 replies

    Legend
    Oct 14, 2020 6:58 AM UTC

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

    Translate
    Community Expert
    Oct 13, 2020 11:40 PM UTC

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

    Translate
    Peter Grainge
    Community Expert
    Community Expert
    Oct 13, 2020 10:11 AM UTC

    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?

     

    Translate
    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Legend
    Oct 13, 2020 9:15 AM UTC

    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:

    Translate
    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    Oct 13, 2020 9:06 AM UTC

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

     

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

     

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