<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ting yang</title>
    <description>The latest articles on DEV Community by ting yang (@zenyang).</description>
    <link>https://dev.to/zenyang</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1678351%2F935a1e59-51c7-41d8-9e90-e313b8f93b9f.jpg</url>
      <title>DEV Community: ting yang</title>
      <link>https://dev.to/zenyang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zenyang"/>
    <language>en</language>
    <item>
      <title>How to Print a Booklet Double-Sided from a PDF (Long-Edge vs Short-Edge)</title>
      <dc:creator>ting yang</dc:creator>
      <pubDate>Sun, 20 Sep 2026 09:21:15 +0000</pubDate>
      <link>https://dev.to/zenyang/how-to-print-a-booklet-double-sided-from-a-pdf-long-edge-vs-short-edge-4d6j</link>
      <guid>https://dev.to/zenyang/how-to-print-a-booklet-double-sided-from-a-pdf-long-edge-vs-short-edge-4d6j</guid>
      <description>&lt;p&gt;If you have a normal PDF—pages in reading order 1, 2, 3…—and you send it to a duplex printer with “booklet” hopes, you usually get a disappointment: consecutive pages on the same sheet, or backs that print upside down. A saddle-stitched booklet is not “print two-sided and fold.” The page order on each physical sheet has to be remapped first. That remapping is called &lt;strong&gt;imposition&lt;/strong&gt;. Duplex comes after.&lt;/p&gt;

&lt;p&gt;This walkthrough covers the practical path: impose → export → print double-sided with the right flip edge → fold once  staple. It also explains long-edge vs short-edge flip, and how to fix upside-down backs without reprinting the whole job twice.&lt;/p&gt;

&lt;h3&gt;
  
  
  What “double-sided booklet” actually means
&lt;/h3&gt;

&lt;p&gt;A saddle-stitch booklet is one nested signature. Each sheet of paper is printed &lt;strong&gt;2-up&lt;/strong&gt; (two reader pages side by side) on the front and two on the back. You stack the sheets, fold them down the middle once, and staple through the fold.&lt;/p&gt;

&lt;p&gt;That means each physical sheet has four slots:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Front left | Front right
&lt;/li&gt;
&lt;li&gt;Back left | Back right&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On an 8-page booklet, the outer sheet is not “1 next to 2.” The outer front is typically &lt;strong&gt;8 | 1&lt;/strong&gt;, and the outer back is &lt;strong&gt;2 | 7&lt;/strong&gt;. Inner sheets nest inside. If you duplex a reader-order PDF, the printer never applies that mapping—so you never get a booklet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule of thumb:&lt;/strong&gt; impose first, then duplex the imposed file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1 — Impose the PDF (before you touch the printer)
&lt;/h3&gt;

&lt;p&gt;Use a tool that builds saddle-stitch sheets from your PDF. One option that runs entirely in the browser (no upload to a server) is &lt;a href="https://bookletimposer.com/#upload" rel="noopener noreferrer"&gt;Booklet Imposer&lt;/a&gt;: drop the PDF, preview Sheets / Reader / Spreads, then download an imposed file named something like &lt;code&gt;{stem}-booklet.pdf&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What you should see after export:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each &lt;strong&gt;PDF page in the export&lt;/strong&gt; is one impression (one side of one sheet).&lt;/li&gt;
&lt;li&gt;Page 1 of the export  outer Front; page 2 ≈ outer Back; then the next sheets Front/Back, outer to inner.&lt;/li&gt;
&lt;li&gt;Scale stays tied to your page size geometry—this is layout remapping, not a color RIP or a merge/split/compress utility.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your source page count is not a multiple of 4, blank pages are usually padded at the end so every sheet’s four slots can fill. That is normal for saddle stitch; it is not the tool “eating” pages.&lt;/p&gt;

&lt;p&gt;For a deeper print-dialog checklist, see &lt;a href="https://bookletimposer.com/print-booklet-double-sided-pdf" rel="noopener noreferrer"&gt;Print a booklet double sided from PDF&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 — Printer settings that matter
&lt;/h3&gt;

&lt;p&gt;Open the imposed PDF in whatever viewer you use to print. In the print dialog:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Double-sided / duplex:&lt;/strong&gt; on&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flip on:&lt;/strong&gt; &lt;strong&gt;long edge&lt;/strong&gt; (for landscape 2-up sheets from a typical booklet imposer)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scale:&lt;/strong&gt; &lt;strong&gt;100% / actual size&lt;/strong&gt; — do not “fit to page”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Printer booklet mode:&lt;/strong&gt; &lt;strong&gt;off&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Color vs grayscale: your choice; the imposition step does not change color management&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is usually no separate “print from the website” button in a browser-local toolyou download one PDF and print that. Avoid stacking settings: test &lt;strong&gt;one outer sheet&lt;/strong&gt; first (Front should look like N|1, Back like 2|N−1), fold that sheet alone, then run the full stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  Long-edge vs short-edge: the flip-table concept
&lt;/h3&gt;

&lt;p&gt;Think of the imposed sheet as a &lt;strong&gt;landscape&lt;/strong&gt; rectangle with two reader pages side by side. The fold is the &lt;strong&gt;short midline&lt;/strong&gt; (the vertical center line when the sheet is landscape).&lt;/p&gt;

&lt;p&gt;When the printer duplexes, it flips the paper around one axis:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;What happens to the back&lt;/th&gt;
&lt;th&gt;Use when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Flip on long edge&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Back aligns with the front for landscape 2-up. After you fold, reverse pages sit right-side up.&lt;/td&gt;
&lt;td&gt;Default for this workflow.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Flip on short edge&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Back is inverted relative to the front. After folding, type on the reverse often looks upside down.&lt;/td&gt;
&lt;td&gt;Only if the driver cannot do long-edge duplex. Then correct in the PDF (see below).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Why long edge?&lt;/strong&gt; The printer should turn the sheet around the long edge so the back matches the front orientation. Short-edge flip is the usual reason people say “my backs are upside down.”&lt;/p&gt;

&lt;p&gt;Some tools expose a &lt;strong&gt;Rotate back pages 180°&lt;/strong&gt; option on export. Leave it off when you can flip on long edge. Turn it on, re-export, then print with short-edge (or whatever the driver forces) when long-edge duplex is unavailable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Troubleshooting upside-down backs
&lt;/h3&gt;

&lt;p&gt;Work through these in order—change one thing at a time:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Confirm you imposed first.&lt;/strong&gt; Duplexing a reader-order PDF will not produce booklet backs, no matter which flip edge you pick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set flip to long edge&lt;/strong&gt; for landscape 2-up. If the driver only offers short edge, enable rotate-backs-180 on export and try again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Print at 100% / actual size.&lt;/strong&gt; Fit to page” can shrink slots and hide orientation mistakes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn printer booklet mode off.&lt;/strong&gt; The export is already imposed; booklet mode imposes again and scrambles the order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the outer sheet only.&lt;/strong&gt; Front N|1, Back 2|N1, fold once. If that sheet is wrong, do not print the whole signature yet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Also check that you kept sheet order: export order is outer Front, outer Back, then next sheet, and so on. Do not staple each sheet separately—fold the &lt;strong&gt;whole stack&lt;/strong&gt; as one signature, jog the head, then staple the fold.&lt;/p&gt;

&lt;h3&gt;
  
  
  A short print-day checklist
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Source PDF imposed for saddle stitch (multiple of 4 pages after any padding)&lt;/li&gt;
&lt;li&gt;Exported booklet PDF printed duplex, long-edge flip, 100% scale&lt;/li&gt;
&lt;li&gt;Printer booklet mode off&lt;/li&gt;
&lt;li&gt;One-sheet test passed&lt;/li&gt;
&lt;li&gt;Full stack folded once, then stapled on the fold&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What this workflow is not
&lt;/h3&gt;

&lt;p&gt;It is not perfect bind, spiral, or multi-signature book work. It is not a merge/split/compress suite. It is not uploading your PDF to a server for processing—browser-local tools keep the file on your device. And it is not a substitute for a commercial prepress RIP if you need color-managed press output.&lt;/p&gt;

&lt;h3&gt;
  
  
  CTA
&lt;/h3&gt;

&lt;p&gt;Impose locally, then duplex with long-edge flip: open the tool at &lt;a href="https://bookletimposer.com/#upload" rel="noopener noreferrer"&gt;bookletimposer.com/#upload&lt;/a&gt;, or follow the full duplex guide at &lt;a href="https://bookletimposer.com/print-booklet-double-sided-pdf" rel="noopener noreferrer"&gt;bookletimposer.com/print-booklet-double-sided-pdf&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>printing</category>
      <category>pdf</category>
      <category>booklet</category>
      <category>howto</category>
    </item>
    <item>
      <title>Saddle-Stitch PDF Imposition: Why Page Counts Must Be Multiples of 4</title>
      <dc:creator>ting yang</dc:creator>
      <pubDate>Sun, 20 Sep 2026 06:20:20 +0000</pubDate>
      <link>https://dev.to/zenyang/saddle-stitch-pdf-imposition-why-page-counts-must-be-multiples-of-4-2olh</link>
      <guid>https://dev.to/zenyang/saddle-stitch-pdf-imposition-why-page-counts-must-be-multiples-of-4-2olh</guid>
      <description>&lt;p&gt;If you have ever wondered why zine tools and booklet exporters insist on page counts that are multiples of 4—or why a 5-page PDF suddenly grows three blank pages—the answer is not marketing fluff. It is sheet geometry.&lt;/p&gt;

&lt;p&gt;Saddle-stitch imposition maps &lt;strong&gt;reader pages&lt;/strong&gt; onto &lt;strong&gt;physical sheets&lt;/strong&gt;. Each sheet has four slots. Until N % 4 === 0, those slots cannot close into a single nested signature. This post walks through the why, then shows the concrete 8-page and 16-page orders.&lt;/p&gt;

&lt;h3&gt;
  
  
  Imposition in one paragraph
&lt;/h3&gt;

&lt;p&gt;Imposition does not rewrite your text. It remaps logical page numbers onto printable impressions. For saddle stitch at 2-up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each &lt;strong&gt;side&lt;/strong&gt; of a sheet holds two reader pages (left and right of the fold).&lt;/li&gt;
&lt;li&gt;Sheets nest: outermost sheet wraps the cover and last page; innermost sheet becomes the center spread.&lt;/li&gt;
&lt;li&gt;You fold the &lt;strong&gt;entire pile once&lt;/strong&gt; and staple through the spine. That is one signature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is different from perfect bind (folios stacked at a glue edge) and from spiral. If you need those binds, do not reuse a saddle-stitch sheet table.&lt;/p&gt;

&lt;p&gt;A practical overview lives at &lt;a href="https://bookletimposer.com/how-to-impose-pdf-for-saddle-stitch" rel="noopener noreferrer"&gt;How to impose a PDF for saddle stitch&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why multiples of 4
&lt;/h3&gt;

&lt;p&gt;Count the slots on one sheet:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Impression&lt;/th&gt;
&lt;th&gt;Slots&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Front&lt;/td&gt;
&lt;td&gt;left, right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Back&lt;/td&gt;
&lt;td&gt;left, right&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is &lt;strong&gt;four&lt;/strong&gt; reader-page slots per sheet. An 8-page booklet uses 2 sheets × 4 slots. A 16-page booklet uses 4 sheets × 4 slots. A 5-page PDF cannot fill four-slot sheets without empties—so a sane imposer &lt;strong&gt;appends blanks at the end&lt;/strong&gt; until N is a multiple of 4. It should not drop your authored pages.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1 page → pad to 4&lt;/li&gt;
&lt;li&gt;5 pages → pad to 8&lt;/li&gt;
&lt;li&gt;8 or 16 pages → no pad needed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pads usually show as blank in a Sheets preview. Outer-left on the outermost sheet is still N (the last page number after padding), which may be a blank if you padded—not your last authored page if that page landed elsewhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  8-page order (two sheets)
&lt;/h3&gt;

&lt;p&gt;For N = 8, sheet 0 is the outer wrap; sheet 1 nests inside.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sheet&lt;/th&gt;
&lt;th&gt;Front L / R&lt;/th&gt;
&lt;th&gt;Back L / R&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0 outer&lt;/td&gt;
&lt;td&gt;8 / 1&lt;/td&gt;
&lt;td&gt;2 / 7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 inner&lt;/td&gt;
&lt;td&gt;6 / 3&lt;/td&gt;
&lt;td&gt;4 / 5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reading order after fold: 1 → 8. Page 1 sits &lt;strong&gt;front-right&lt;/strong&gt; on the outer sheet (the cover). After folding, the innermost &lt;strong&gt;back&lt;/strong&gt; (4 / 5) becomes the center spread; the innermost &lt;strong&gt;front&lt;/strong&gt; is 6 / 3.&lt;/p&gt;

&lt;p&gt;Printing the source “as-is” (1 beside 2) is calendar layout, not booklet layout. After export, PDF page 1 of the imposed file is outer Front; PDF page 2 is outer Back. Keep that order when duplexing.&lt;/p&gt;

&lt;p&gt;Full worked example: &lt;a href="https://bookletimposer.com/examples/8-page-booklet" rel="noopener noreferrer"&gt;8-page booklet page order&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  16-page order (four nested sheets)
&lt;/h3&gt;

&lt;p&gt;Same formula with N = 16:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sheet&lt;/th&gt;
&lt;th&gt;Front L / R&lt;/th&gt;
&lt;th&gt;Back L / R&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;16 / 1&lt;/td&gt;
&lt;td&gt;2 / 15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;14 / 3&lt;/td&gt;
&lt;td&gt;4 / 13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;12 / 5&lt;/td&gt;
&lt;td&gt;6 / 11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;10 / 7&lt;/td&gt;
&lt;td&gt;8 / 9&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The center spread is &lt;strong&gt;8 / 9&lt;/strong&gt; on the innermost back. Export yields eight PDF impressions (Front/Back × 4 sheets). At this length, &lt;strong&gt;creep&lt;/strong&gt; (inner sheets shifting toward the fore-edge when folded on thick stock) starts to matter; gutter is still a uniform inset at the spine edge on every sheet.&lt;/p&gt;

&lt;p&gt;Full table and notes: &lt;a href="https://bookletimposer.com/examples/16-page-booklet" rel="noopener noreferrer"&gt;16-page booklet imposition&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  A mental formula (optional)
&lt;/h3&gt;

&lt;p&gt;You do not need to fill tables by hand for production. The pattern for sheet index i (0 = outer) with S = N/4 sheets is the usual nested pairing: outer right is always page 1; outer left is always N; backs continue the pairs toward the center. Implementations differ in code style, but the slot invariant is fixed: four slots per sheet, nest inward.&lt;/p&gt;

&lt;p&gt;If you are building tooling yourself, write tests against the 8- and 16-page golden tables above before you trust padding or creep.&lt;/p&gt;

&lt;h3&gt;
  
  
  Print notes (so the order survives the printer)
&lt;/h3&gt;

&lt;p&gt;After you have an imposed PDF:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Duplex, &lt;strong&gt;flip on long edge&lt;/strong&gt; for landscape 2-up&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100% / actual size&lt;/strong&gt; (no fit-to-page)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Printer booklet mode off&lt;/strong&gt; (do not impose twice)&lt;/li&gt;
&lt;li&gt;Fold all sheets together as one signature; staple the fold&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Browser-local imposers (no server upload) are a good fit when the PDF is private or when you just want geometry without a desktop suite. One such tool is &lt;a href="https://bookletimposer.com" rel="noopener noreferrer"&gt;Booklet Imposer&lt;/a&gt;—preview Sheets / Reader / Spreads, optional gutter and creep, then export.&lt;/p&gt;

&lt;h3&gt;
  
  
  What not to expect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Not perfect bind / spiral / multi-signature imposition&lt;/li&gt;
&lt;li&gt;Not merge, split, or compress&lt;/li&gt;
&lt;li&gt;Not a color RIP—page geometry only&lt;/li&gt;
&lt;li&gt;Not affiliated with Adobe Acrobat or any printer driver&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  CTA
&lt;/h3&gt;

&lt;p&gt;Check the 8- and 16-page tables, then run your own PDF through the in-browser imposer: &lt;a href="https://bookletimposer.com" rel="noopener noreferrer"&gt;bookletimposer.com&lt;/a&gt; · guide: &lt;a href="https://bookletimposer.com/how-to-impose-pdf-for-saddle-stitch" rel="noopener noreferrer"&gt;how-to-impose-pdf-for-saddle-stitch&lt;/a&gt; · examples: &lt;a href="https://bookletimposer.com/examples/8-page-booklet" rel="noopener noreferrer"&gt;8-page&lt;/a&gt; · &lt;a href="https://bookletimposer.com/examples/16-page-booklet" rel="noopener noreferrer"&gt;16-page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>printing</category>
      <category>imposition</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
