LaTeX forum ⇒ GeneralDifference in how PDF renders in different readers

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Stefan Kottwitz
Site Admin
Posts: 9593
Joined: Mon Mar 10, 2008 9:44 pm

Re: Difference in how PDF renders in different readers

Postby Stefan Kottwitz » Mon Jul 14, 2008 4:18 pm

tripwire45 wrote:I can't really say it would "solve" my problem since I imagine, most of our customers will be using Reader 8.

It would be just interesting to know if the behaviour of the Adobe Reader will be the same with the next version. Of course one should find a solution that works with the version 8.

Regarding the color problem, could you post a minimal example showing that? That could serve as a reference when we try to discuss a solution.

Stefan
LaTeX.org admin

User avatar
Stefan Kottwitz
Site Admin
Posts: 9593
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Jul 14, 2008 4:29 pm

Hi Trip,

tripwire45 wrote:I agree, using a different font could help but *ahem* how do I do that?

It may be different, sometimes just \usepackage is enough, like \usepackage{lmodern} for Latin Modern, derived from the standard Computer Modern fonts.

tripwire45 wrote:How do I change the font and is there a font that is known to work and play well with Adobe reader?

Perhaps try charter: \usepackage{charter}. I used it together with mathdesign (math fonts), so I wrote
  1. \usepackage[charter]{mathdesign}

instead. I did not notice bad behaviour of the Adobe Reader with that font until now.

Stefan
LaTeX.org admin

User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Postby tripwire45 » Mon Jul 14, 2008 4:30 pm

Here's the minimal working example, including a sample graphic. When I include the graphic in this .tex doc and attempt to view it in Reader 8, the shade of green used in the table becomes a brighter green and the colors in the graphic shift. I'll have to attach the .png file so you can include it. Oh...and the font I'm currently using is Monospace.
  1. \documentclass[openany,10pt]{book}
  2. \usepackage{verbatim,textcomp}
  3. \usepackage[pdftex]{color,graphicx}
  4. \usepackage[table]{xcolor}
  5. \usepackage{calc}
  6. \usepackage{fixltx2e}
  7. \usepackage[T1]{fontenc}
  8. \usepackage[utf8]{inputenc}
  9. \usepackage[english]{babel}
  10. \usepackage{array,booktabs,color}
  11. \usepackage{multirow}
  12. \usepackage{float}
  13. %Starting header and footer information
  14. \usepackage{fancyhdr}
  15. \pagestyle{fancy}
  16. \fancyhead{}
  17. \fancyhead[RO,LE]{\tiny\bfseries Test\textsuperscript{\textregistered}}
  18. \fancyfoot{}
  19. \fancyfoot[LE,RO]{\tiny\thepage}
  20. \fancyfoot[LO,RE]{\tiny\bfseries Technical Test Guide}
  21. \fancyfoot[C]{\tiny\copyright 2008 Test Inc.}
  22. \renewcommand{\headrulewidth}{0cm}
  23. \renewcommand{\footrulewidth}{0.01cm}
  24. %finishing header and footer information
  25. \usepackage{wrapfig}
  26. %improves font quality
  27. \usepackage[T1]{fontenc}
  28. \usepackage{makeidx}
  29. %Renders cross-reference links black and URL links blue
  30. \usepackage[pdftex,colorlinks=true,linkcolor=black,urlcolor=blue]{hyperref}
  31. \usepackage{caption}
  32. %Creates customized color tags
  33. \definecolor{olivegreen}{rgb}{0.419608 0.556863 0.137255}
  34. \definecolor{webred}{rgb}{0.75,0,0}
  35. \usepackage{titlesec}
  36. %Modifies section heads
  37. \titleformat{\chapter}
  38. {\color{olivegreen}\normalfont\huge\bfseries}{}{}{\hspace*{-10pt}}
  39. \titleformat{\section}
  40. {\color{olivegreen}\normalfont\huge\bfseries}{}{}{\hspace*{-10pt}}
  41. %Modifies subsection heads
  42. \titleformat{\subsection}
  43. {\color{olivegreen}\normalfont\Large\bfseries}{}{}{\hspace*{-10pt}}
  44. %Modifies subsubsection heads
  45. \titleformat{\subsubsection}
  46. {\normalfont\normalsize\bfseries}{}{}{\hspace*{10pt}}
  47. %Makes second level items in an itemized list bullets instead of dashes
  48. \renewcommand{\labelitemii}{$\circ$}
  49. %Suppresses numbering of sections
  50. \setcounter{secnumdepth}{-2}
  51.  
  52. \makeindex
  53. \fancypagestyle{plain}{%
  54. \fancyhf{} % clear all header and footer fields
  55. \fancyhead{}
  56. \fancyhead[RO,LE]{\tiny\bfseries Test\textsuperscript{\textregistered}}
  57. \fancyfoot{}
  58. \fancyfoot[LE,RO]{\tiny\bfseries\thepage}
  59. \fancyfoot[LO,RE]{\tiny Technical Test Guide}
  60. \fancyfoot[C]{\tiny\copyright 2008 Test Inc.}
  61. \renewcommand{\headrulewidth}{0cm}
  62. \renewcommand{\footrulewidth}{0.01cm}}
  63.  
  64. \begin{document}
  65.  
  66. \newpage
  67. \subsection{Test Table}
  68.  
  69.  
  70.  
  71. \begingroup
  72. \centering
  73. \setlength\extrarowheight{4pt}
  74. \begin{tabular}{ |>{\small}p{2cm} |>{\small}p{2cm} |>{\small}p{1cm} |>{\small}p{7cm} | } \hline
  75. \rowcolor{olivegreen}\textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} \\ \hline
  76. \textbf{TEST} & T & 00 & Test \\ \hline
  77. \rowcolor{olivegreen!25} \textbf{TEST} & T & 00 & T = Test \\
  78. \rowcolor{olivegreen!25} & & & T = Test \\
  79. \rowcolor{olivegreen!25} & & & T = Test \\ \hline
  80. \textbf{TEST} & T & 00 & Test \\ \hline
  81. \rowcolor{olivegreen!25} \textbf{TEST} & T & 00 & Test \\ \hline
  82. \textbf{TEST} & T & 00 & Test \\ \hline
  83. \rowcolor{olivegreen!25} \textbf{TEST} & & 00 & Test \\ \hline
  84. \textbf{TEST} & & 00 & Test \\
  85. \hline
  86. \end{tabular}
  87. \endgroup
  88.  
  89. \begin{center}
  90. \begingroup
  91. \includegraphics[scale=0.55]{test.png}
  92. \endgroup
  93. \end{center}
  94.  
  95. \end{document}
Attachments
test.png
test.png (5.71 KiB) Viewed 5623 times

User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Postby tripwire45 » Mon Jul 14, 2008 4:47 pm

The \usepackage{charter} package worked. Fonts are fixed and view well in Reader 8, as the attached screen capture shows. Now the only issue left (well, my solution for the table lines is still somewhat kloogie) is the color problem.
Attachments
fixed_fonts.png
fixed_fonts.png (7.58 KiB) Viewed 5609 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9593
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Jul 14, 2008 4:55 pm

Hi Trip,

try the png file attached. I changed the color mode from rgb to indexed color (optimal palette) using GIMP.

Stefan
Attachments
test2.png
test2.png (2.75 KiB) Viewed 5608 times
LaTeX.org admin

User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Postby T3. » Mon Jul 14, 2008 5:33 pm

Trip,

To minimize font rendering issues you can use one of the standard PostScript fonts, like Palatino or Times. They don't even have to embedded in your pdf as PostScript standard (and PDF as well, I think) guarantees that they must be always available.

Two useful links for font selection:

Cheers,

Tomek

User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Postby tripwire45 » Mon Jul 14, 2008 5:34 pm

The good news is that it worked. Thank you so much, Stefan. Alas, the bad news is that this means I need to manually convert hundreds of .png files. Oy. :roll:

Oh well, at least there's a solution. Time to get to work. ;)

User avatar
Stefan Kottwitz
Site Admin
Posts: 9593
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Jul 14, 2008 5:37 pm

tripwire45 wrote:The good news is that it worked. Thank you so much, Stefan. Alas, the bad news is that this means I need to manually convert hundreds of .png files.

You could use the GIMP batch mode.

Stefan
LaTeX.org admin

User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Postby tripwire45 » Mon Jul 14, 2008 5:45 pm

Thanks, again.

User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Postby tripwire45 » Mon Jul 14, 2008 6:44 pm

Not to look a gift house in the mouth, but how did you know that changing the color mode on the .png files would make them look correct in Adobe Reader, Stefan?


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests