Skip to main content
Participating Frequently
April 11, 2017
Answered

Inconsistent styles in pdf created from RH 2015

  • April 11, 2017
  • 2 replies
  • 665 views

Hello,

My styles do not correctly map from the online to print (pdf) version. I used Arial font for my online help but get some randomly applied Garamond in the PDF version. I have checked all of my styles/settings and can't seem to figure out why this is happening.

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

From the files you sent me, I suspect the problem is not random but related to all text in a table. Is that the case?

If so, it is because you have not applied a style to the content in the table. Try setting it to Normal first and let me know how that goes. It may or may not be that easy but it is an issue I am familiar with.

Let us know if that fixes it.


See www.grainge.org for RoboHelp and Authoring information

@petergrainge


Further testing has shown the CSS used contained print media definitions that were causing this. Commenting them out seems to have fixed the problem.


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

2 replies

icascallAuthor
Participating Frequently
April 11, 2017

Thanks for the response. I am not sure why some portions of the content in the PDF are not holding the styles from the css when a pdf is generated. The online help has consistent styles that align with the css.

Peter Grainge
Community Expert
Community Expert
April 11, 2017

Have you tried what I suggested?

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
icascallAuthor
Participating Frequently
April 12, 2017

I did and unfortunately nothing changed with my PDF output.

Peter Grainge
Community Expert
Community Expert
April 11, 2017

When you say "randomly applied", do you mean that the same text might be OK if you regenerate a second time and the problem will be somewhere else?

OR

Do you simply mean you cannot fathom the logic why the same random text is being "converted"?

If the latter, go to a browser and change the default font to Times. Then view your online help in that browser and check the same text. What happens there?


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

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