Skip to content

Add pdftotext -cropbox option to set the page size with -bbox.

William Bader requested to merge williamb/poppler:pdftotext-pagesize into master

I have a PDF where pdfinfo -box gives

Page size: 84.95 x 2210.75 pts Page rot: 0 MediaBox: 0.00 0.00 84.95 2310.50 CropBox: 0.00 99.75 84.95 2310.50 BleedBox: 0.00 99.75 84.95 2310.50 TrimBox: 0.00 99.75 84.95 2310.50 ArtBox: 0.00 99.75 84.95 2310.50

pdftotext -bbox generates NOTICE ... 2010)

which makes a 99.75 point gap below the last word because the page size should be 2210.75 not 2310.50. I think that the section should always show the CropBox instead of the MediaBox, but I didn't want to break anything, so I added a -cropbox option.


Please make sure you check the "Allow commits from members who can merge to the target branch" option at the bottom of the page.

Makes our life much easier since we can rebase and merge from the web user interface.

Merge request reports