The draft options of hyperref or package nohyperref also removes the specials for the hyper features as links and destinations. These specials can have influence on paragraph and page breaking.
The following example disables most hyper features, when driver pdftex is used. Links and destinations removed by redefining the primitives of pdfTeX relying on the way, they are called in hyperref. The replacement definition will add a whatsit, a write whatsit to the log file, to keep the influence on the paragraph and page breaking.
\documentclass{article}
\usepackage{makeidx}
\makeindex
% Disable information and catalog entries
\makeatletter
\AtBeginDocument{%
\let\PDF@SetupDoc\relax
}
\makeatother
% Disable links, hyperref usually ends \pdfstartlinks arguments with \relax
\protected\def\pdfstartlink#1\relax{%
\immediate\write-1{- \string\pdfstartlink#1}%
}
\protected\def\pdfendlink{%
\immediate\write-1{- \string\pdfendlink}%
}
% Disable destinations, \pdfdest usually ended by \relax in hyperref
\protected\def\pdfdest#1\relax{%
\immediate\write-1{- \string\pdfdest#1}%
}
\usepackage[
% disable features independent from typesetting
bookmarks=false,
pdfpagelabels=false,
]{hyperref}
\begin{document}
\tableofcontents
\section{Hello World}
\index{Einstein}
\begin{equation}
\label{eq:einstein}
E=mc^2
\end{equation}
See equation (\ref{eq:einstein}) on page \pageref{eq:einstein}.
\section{TeX user groups}
\begin{itemize}
\item[\href{http://www.tug.org/}{TUG}:] \url{http://www.tug.org/}
\item[\href{http://www.dante.de/}{DANTE}:] \url{http://www.dante.de/}
\end{itemize}
\printindex
\end{document}
The list of disabled features is not complete, e.g., forms and option ocgcolorlinks still leave traces.
The log file contains:
- \pdfdestname{Doc-Start}XYZ
- \pdfdestname{section*.1}XYZ
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[1 0 0]}goto name{section.1}
- \pdfendlink
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[1 0 0]}goto name{section.2}
- \pdfendlink
- \pdfdestname{section.1}XYZ
- \pdfdestname{equation.1.1}XYZ
- \pdfdestname{equation.1.1}XYZ
- \pdfdestname{equation.1.1}XYZ
- \pdfdestname{equation.1.1}XYZ
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[1 0 0]}goto name{equation.1.1}
- \pdfendlink
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[1 0 0]}goto name{equation.1.1}
- \pdfendlink
- \pdfdestname{section.2}XYZ
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[0 1 1]}user{/Subtype/Link/A<</Type/Act
- \pdfendlink
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[0 1 1]}user{/Subtype/Link/A<</Type/Act
- \pdfendlink
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[0 1 1]}user{/Subtype/Link/A<</Type/Act
- \pdfendlink
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[0 1 1]}user{/Subtype/Link/A<</Type/Act
- \pdfendlink
- \pdfdestname{page.1}XYZ
- \pdfdestname{section*.2}XYZ
- \pdfstartlinkattr{/Border[0 0 1]/H/I/C[1 0 0]}goto name{page.1}
- \pdfendlink
- \pdfdestname{page.2}XYZ
Does this help with your document?
\linespread{0.99}for my custom author version – Rabarberski Mar 07 '14 at 08:09