I followed this answer to merge many pdfs together with automatic bookmarks. In spite of the fact that it worked 1 time (before updating packages with MiKTeX), now I keep getting an error which makes bookmarks link to random pages:
pdfTeX warning (dest): name{Topic\0401\040-\040Introduction\040to\040Measurment .pdf.1} has been referenced but does not exist, replaced by a fixed one
I would like to find a solution since this code is easy to automize and it may often be useful since I do not want to pay for any software. (If you know a better way tell me please).
An example of the code is:
\documentclass{article}
\usepackage{pdfpages}
\usepackage{bookmark}
\pdfminorversion = 6
\begin{document}
\includepdf[pages=-, link]{Topic 1 - Introduction to Measurment.pdf}
\bookmark[dest={Topic 1 - Introduction to Measurment.pdf.1}]{1. Introduction to Measurment}
\end{document}
Thank you!
bookmarkproperly escapes the space in the file name, whilepdfpagesdoesn't. Instead of renaming your file, you could use thelinknameoption ofpdfpages:\includepdf[pages=-,link,linkname={Topic1}]{...}and then\bookmark[dest={Topic1.1}]{...}– Robert Jan 28 '20 at 20:46