Banner

Donate

You find LaTeX Community useful? Please donate! Learn why!

Amount:

Partner Sites

goLaTeX
TeXblog
TeXnicCenter

Who is online

In total there are 20 users online :: 1 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm

Users browsing this forum: Alexa [Bot] and 19 guests

Difference in how PDF renders in different readers

LaTeX specific issues not fitting into one of the other forums of this category.

Re: Difference in how PDF renders in different readers

Postby Stefan_K on Mon Jul 14, 2008 3: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 Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: Difference in how PDF renders in different readers

Postby Stefan_K on Mon Jul 14, 2008 3: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
Code: Select all
\usepackage[charter]{mathdesign}

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

Stefan
LaTeX Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: Difference in how PDF renders in different readers

Postby tripwire45 on Mon Jul 14, 2008 3: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.
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 944 times
User avatar
tripwire45
 
Posts: 125
Joined: Thu Apr 10, 2008 3:35 am

Re: Difference in how PDF renders in different readers

Postby tripwire45 on Mon Jul 14, 2008 3: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 930 times
User avatar
tripwire45
 
Posts: 125
Joined: Thu Apr 10, 2008 3:35 am

Re: Difference in how PDF renders in different readers

Postby Stefan_K on Mon Jul 14, 2008 3: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 928 times
LaTeX Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: Difference in how PDF renders in different readers

Postby T3. on Mon Jul 14, 2008 4: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
T3.
 
Posts: 199
Joined: Fri Mar 14, 2008 11:58 am

Re: Difference in how PDF renders in different readers

Postby tripwire45 on Mon Jul 14, 2008 4: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
tripwire45
 
Posts: 125
Joined: Thu Apr 10, 2008 3:35 am

Re: Difference in how PDF renders in different readers

Postby Stefan_K on Mon Jul 14, 2008 4: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 Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: Difference in how PDF renders in different readers

Postby tripwire45 on Mon Jul 14, 2008 4:45 pm

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

Re: Difference in how PDF renders in different readers

Postby tripwire45 on Mon Jul 14, 2008 5: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?
User avatar
tripwire45
 
Posts: 125
Joined: Thu Apr 10, 2008 3:35 am

PreviousNext

Return to General

Who is online

Users browsing this forum: Alexa [Bot] and 19 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group