pdfjoin fails for PDF-files containing pages with different orientation. Look at the attached file document_with_different_orientations.pdf in kpdf. The first page is portrait and the second page is landscape. Reproducible: Always Steps to Reproduce: 1. LANG="" pdfjoin document_with_different_orientations.pdf 2. kpdf document_with_different_orientations-joined.pdf Actual Results: Both pages are portrait. Expected Results: document_with_different_orientations-joined.pdf is identical to document_with_different_orientations.pdf.
Created attachment 184815 [details] document for reproducing the bug > equery b $(which pdfjoin) [ Searching for file(s) /usr/bin/pdfjoin in *... ] app-text/pdfjam-1.20-r1 (/usr/bin/pdfjoin)
Here is a workaround: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=document_with_different_orientations-joined.pdf -dBATCH document_with_different_orientations.pdf
This bug seems to be rather an upstream bug. If it is not fixed in the latest version, please report it to the programmers of pdfjam. I suggest to close it.