Skip to content

Instantly share code, notes, and snippets.

@NULLx76
Created October 26, 2020 20:27
Show Gist options
  • Save NULLx76/122707406fd6cb641291b15921c0ddbf to your computer and use it in GitHub Desktop.
Save NULLx76/122707406fd6cb641291b15921c0ddbf to your computer and use it in GitHub Desktop.
Renumber PDF with LaTeX
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\usepackage[
pdfpagelabels=true,
pdftitle={A Title},
pdfauthor={An Author},
]{hyperref}
\usepackage{bookmark}
\begin{document}
\pagenumbering{roman}
\setcounter{page}{1}
\includepdf[pages=1-17]{example.pdf}
\pagenumbering{arabic}
\setcounter{page}{1}
\includepdf[pages=18-]{example.pdf}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment