Fix overrun in `pdfj` command