I cannot set up correct PDF bookmark for Bibliography chapter in the backmatter.
The page number in TOC is correct, however the PDF bookmark consistently points to the last section in the mainmatter.
\documentclass{book}
\usepackage{bookmark}
\begin{document}
\pdfbookmark{\contentsname}{Contents}
\tableofcontents\cleardoublepage
\pagenumbering{arabic}
\begin{mainmatter}
\chapter{Chapter A}
\section{Section a}
\end{mainmatter}
\begin{backmatter}
\addcontentsline{toc}{chapter}{Bibliography}
\begin{thebibliography}{9}
\end{thebibliography}
\end{backmatter}
\end{document}

\addcontentslineand \begin{thebibliography}` – Jul 03 '14 at 13:12\mainmatterand\backmatter, not\begin{mainmatter}etc. Those constructs are true commands and not environments – Jul 03 '14 at 13:14\printbibliographyinstead of\begin{thebibliography}. At least in that short file the bookmarks and page numbers are correct – Jul 04 '14 at 16:19