Computing desk | ||
---|---|---|
< April 22 | << Mar | April | May >> | April 24 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I have a PDF document that has been converted to a "2-up" format, i.e. each page of the PDF represents 2 pages of an original document, side by side. Working from the Linux command line, is there an easy way to undo that conversion and recreate the original document? --174.89.12.187 (talk) 09:25, 23 April 2023 (UTC)
pdftk in.pdf burst
)pdftk cat
)pdftk rotate
pdfseparate(1)
and pdfunite(1)
depending upon what your distro provides. Martin of Sheffield (talk) 11:36, 23 April 2023 (UTC)
pdftext(1)
. There's also pdftohtml(1)
and pdftops(1)
which might possibly help. It's also worth having a look at the formatting of the double pages, try file page-1.pdf
or similar and see if there is an easy way to split them. Martin of Sheffield (talk) 13:54, 23 April 2023 (UTC)Thanks, folks. I should be fine from there. --174.89.12.187 (talk) 18:19, 23 April 2023 (UTC)
pdfcrop -clip -bbox '0 0 419.53 595.28' infile.pdf leftpage.pdf pdfcrop -clip -bbox '419.53 0 839.06 595.28' infile.pdf rightpage.pdf