don't error on missing path on pdf generation either
support unlinked references in pdf preview generation
don't draw box unless page number will be drawn