Skip to main content
Inspiring
October 17, 2020
Answered

RH2020: CSS Styles for PDF documents

  • October 17, 2020
  • 4 replies
  • 365 views

I've found a couple of other topics on the boards relating to this, but it looks like they might be for different versions of Robohelp.

 

Thanks to Peter's great help on my PDF build issue I am on a roll. One more question ... it appears that the online docs generate fine as far as styles go. I'm using different master pages for online and print (different headers and footers).  I attached the same style sheet to the master pages. 

 

The online docs use the style sheet as intended, but the PDF does not (it's like the styles don't exist). I've seen other posts that indicate that online and print need to use different style sheets.

 

What do I need to add to the online style sheet to get the PDF Output to recognize that it will be used for print output?

    This topic has been closed for replies.
    Correct answer Deecey52

    I believe I found the cause to this. My main style sheet was using a non-standard font intstead of Web-safe fonts. Once I changed the body to use standard Web fonts, both the Web and the PDF generated with the same fonts.

    4 replies

    Peter Grainge
    Community Expert
    Community Expert
    October 19, 2020

    If you want to use other fonts see https://www.grainge.org/pages/authoring/fonts/fonts.htm

     

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

    I believe I found the cause to this. My main style sheet was using a non-standard font intstead of Web-safe fonts. Once I changed the body to use standard Web fonts, both the Web and the PDF generated with the same fonts.

    Deecey52Author
    Inspiring
    October 17, 2020

    The Ref_PDF master page, and the Bondware Manuals.css style sheet are the ones I have been using for PDF generation.

    Peter Grainge
    Community Expert
    Community Expert
    October 17, 2020

    I still have your project. Which output and which master page is this happening in?

     

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