Answers.Body: <p>This is commonly called "2-up" page placement, and, no, k2pdfopt cannot do 2-up page placement by itself.  Sorry.  But you can run k2pdfopt in "fit-width" mode with the width and height of the output page set for normal portrait like so:</p>
  
  <pre><code>k2pdfopt -ds 2 -w 8.5in -h 11in -mode fw -ls- ...
  </code></pre>
  
  <p>This will strip the margins and create 8.5x11-inch pages.  (The -ds 2 scales up the source document so it will fit the full width of a portrait page.)  Then you can use <a href="http://www.cutepdf.com/Products/CutePDF/writer.asp" rel="nofollow noreferrer">CutePDF's print-to-PDF driver</a> (free download) to print that 8.5x11-inch PDF 2-up by selecting 2 pages per sheet in the printer preferences.</p>
  
  <p>Or you can use Coherent PDF's <a href="http://community.coherentpdf.com/" rel="nofollow noreferrer">command-line tool</a> (free for personal use).  In this case, I use cpdf's -twoup-stack option, so I want the k2pdfopt output pages to be exactly half the size of an 11x8.5 page.</p>
  
  <pre><code>k2pdfopt -w 5.5in -h 8.5in -mode fw -ls- myfile.pdf
  cpdf -twoup-stack myfile_k2opt.pdf -o temp.pdf
  cpdf -rotate 90 temp.pdf -o final.pdf
  </code></pre>
  
  <p>Examples <a href="http://willus.com/k2pdfopt/help/2up" rel="nofollow noreferrer">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T14:09:39.993Z
Answers.Text: This almost works. What would be nice is if all the pages were cropped to the same box or scale factor. When I have a last page with only e.g. a single column this gets blown up and spread over 2 pages.
Answers.UserDisplayName: Adi Shavit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-04T16:17:11.363Z
Answers.LastActivityDate: 2018-03-04T16:17:11.363Z
Answers.UserDisplayName: willus
Body: <p>Can I use K2pdfopt to take a PDF, crop it to the tightest bounding box, and generate a new PDF with 2 consecutive (portrait) pages set side-by-side on the same (landscape) page such that they are scaled to maximally fill an A4 page (preserving aspect ratio)?</p>
  
  <p>If so, what command line options will allow me to achieve this?</p>
  
  <p>By removing margins and such re-scaling I can save a lot of paper when I need to print a document.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-03T15:17:44.807Z
Comments.Text: @willus? Any suggestions?
Comments.UserDisplayName: Adi Shavit
Tags: <pdf>
Title: Using K2pdfopt to prepare a document for printing
UserDisplayName: Adi Shavit
ThreadText: # Using K2pdfopt to prepare a document for printing
  
  (Asked by: username_0 on 2018-02-28)
  
  Can I use K2pdfopt to take a PDF, crop it to the tightest bounding box, and generate a new PDF with 2 consecutive (portrait) pages set side-by-side on the same (landscape) page such that they are scaled to maximally fill an A4 page (preserving aspect ratio)?
  
  If so, what command line options will allow me to achieve this?
  
  By removing margins and such re-scaling I can save a lot of paper when I need to print a document.
  
  **Tags:** pdf
  
  > **Comments:**
  > **username_0**: @username_1? Any suggestions?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-03-04. Score: 1 | Accepted answer
  
  This is commonly called "2-up" page placement, and, no, k2pdfopt cannot do 2-up page placement by itself.  Sorry.  But you can run k2pdfopt in "fit-width" mode with the width and height of the output page set for normal portrait like so:
  k2pdfopt -ds 2 -w 8.5in -h 11in -mode fw -ls- ...
  
  This will strip the margins and create 8.5x11-inch pages.  (The -ds 2 scales up the source document so it will fit the full width of a portrait page.)  Then you can use CutePDF's print-to-PDF driver (free download) to print that 8.5x11-inch PDF 2-up by selecting 2 pages per sheet in the printer preferences.
  Or you can use Coherent PDF's command-line tool (free for personal use).  In this case, I use cpdf's -twoup-stack option, so I want the k2pdfopt output pages to be exactly half the size of an 11x8.5 page.
  k2pdfopt -w 5.5in -h 8.5in -mode fw -ls- myfile.pdf
  cpdf -twoup-stack myfile_k2opt.pdf -o temp.pdf
  cpdf -rotate 90 temp.pdf -o final.pdf
  
  Examples here.
  
  > **Comments:**
  > **username_0**: This almost works. What would be nice is if all the pages were cropped to the same box or scale factor. When I have a last page with only e.g. a single column this gets blown up and spread over 2 pages.  
  
  ---
  
  