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: 10283
Joined: Mon Mar 10, 2008 9:44 pm

Difference in how PDF renders in different readers

Post by Stefan Kottwitz »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10283
Joined: Mon Mar 10, 2008 9:44 pm

Difference in how PDF renders in different readers

Post by Stefan Kottwitz »

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

Code: Select all

\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

Difference in how PDF renders in different readers

Post by tripwire45 »

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.

Code: Select all

\documentclass[openany,10pt]{book}
\usepackage{verbatim,textcomp}
\usepackage[pdftex]{color,graphicx}
\usepackage[table]{xcolor}
\usepackage{calc}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{array,booktabs,color}
\usepackage{multirow}
\usepackage{float}
%Starting header and footer information
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[RO,LE]{\tiny\bfseries Test\textsuperscript{\textregistered}}
\fancyfoot{}
\fancyfoot[LE,RO]{\tiny\thepage}
\fancyfoot[LO,RE]{\tiny\bfseries Technical Test Guide}
\fancyfoot[C]{\tiny\copyright 2008 Test Inc.}
\renewcommand{\headrulewidth}{0cm}
\renewcommand{\footrulewidth}{0.01cm}
%finishing header and footer information
\usepackage{wrapfig}
%improves font quality
\usepackage[T1]{fontenc}
\usepackage{makeidx}
%Renders cross-reference links black and URL links blue
\usepackage[pdftex,colorlinks=true,linkcolor=black,urlcolor=blue]{hyperref}
\usepackage{caption}
%Creates customized color tags
\definecolor{olivegreen}{rgb}{0.419608 0.556863 0.137255}
\definecolor{webred}{rgb}{0.75,0,0}
\usepackage{titlesec}
%Modifies section heads
\titleformat{\chapter}
{\color{olivegreen}\normalfont\huge\bfseries}{}{}{\hspace*{-10pt}}
\titleformat{\section}
{\color{olivegreen}\normalfont\huge\bfseries}{}{}{\hspace*{-10pt}}
%Modifies subsection heads
\titleformat{\subsection}
{\color{olivegreen}\normalfont\Large\bfseries}{}{}{\hspace*{-10pt}}
%Modifies subsubsection heads
\titleformat{\subsubsection}
{\normalfont\normalsize\bfseries}{}{}{\hspace*{10pt}}
%Makes second level items in an itemized list bullets instead of dashes
\renewcommand{\labelitemii}{$\circ$}
%Suppresses numbering of sections
\setcounter{secnumdepth}{-2}

\makeindex
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead{}
\fancyhead[RO,LE]{\tiny\bfseries Test\textsuperscript{\textregistered}}
\fancyfoot{}
\fancyfoot[LE,RO]{\tiny\bfseries\thepage}
\fancyfoot[LO,RE]{\tiny Technical Test Guide}
\fancyfoot[C]{\tiny\copyright 2008 Test Inc.}
\renewcommand{\headrulewidth}{0cm}
\renewcommand{\footrulewidth}{0.01cm}}

\begin{document}

\newpage
\subsection{Test Table}



\begingroup
\centering
\setlength\extrarowheight{4pt}
\begin{tabular}{ |>{\small}p{2cm} |>{\small}p{2cm} |>{\small}p{1cm} |>{\small}p{7cm} | } \hline
\rowcolor{olivegreen}\textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} & \textcolor{white}{\bfseries Test} \\ \hline
\textbf{TEST} & T & 00 & Test \\ \hline
\rowcolor{olivegreen!25} \textbf{TEST} & T & 00 & T = Test \\
\rowcolor{olivegreen!25} & & & T = Test \\
\rowcolor{olivegreen!25} & & & T = Test \\ \hline
\textbf{TEST} & T & 00 & Test \\ \hline
\rowcolor{olivegreen!25} \textbf{TEST} & T & 00 & Test \\ \hline
\textbf{TEST} & T & 00 & Test \\ \hline
\rowcolor{olivegreen!25} \textbf{TEST} & & 00 & Test \\ \hline
\textbf{TEST} & & 00 & Test \\
\hline
\end{tabular}
\endgroup

\begin{center}
\begingroup
\includegraphics[scale=0.55]{test.png}
\endgroup
\end{center}

\end{document}
Attachments
test.png
test.png (5.71 KiB) Viewed 9151 times
User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Re: Difference in how PDF renders in different readers

Post by tripwire45 »

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 9137 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10283
Joined: Mon Mar 10, 2008 9:44 pm

Re: Difference in how PDF renders in different readers

Post by Stefan Kottwitz »

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 9136 times
LaTeX.org admin
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Difference in how PDF renders in different readers

Post by T3. »

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

Re: Difference in how PDF renders in different readers

Post by tripwire45 »

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: 10283
Joined: Mon Mar 10, 2008 9:44 pm

Difference in how PDF renders in different readers

Post by Stefan Kottwitz »

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

Re: Difference in how PDF renders in different readers

Post by tripwire45 »

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

Re: Difference in how PDF renders in different readers

Post by tripwire45 »

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?
Post Reply