I'm writing some kind of a notebook using LaTex. I'd like to have basically one page for each note, the page being fitted to the text of the note. For the moment I'm using a very long page by default, generate the pdfs using pdflatex, and then crop them using pdfcrop, and finally merge them using gs. Everything runs fine, but the links inside the cropped pdfs are broken.
Can I generate fitted pdf directly from pdflatex? Otherwise, can I crop the pdfs and preserve the links? Thanks!