From 43dcde2f5df519b2e5ce802a8780208237ce25d9 Mon Sep 17 00:00:00 2001 From: WMJ Date: Tue, 24 Jun 2025 20:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=81=E8=AE=A9=E5=A5=87=E6=95=B0=E9=A1=B5?= =?UTF-8?q?=E5=A4=9A=E9=A1=B5=E5=9B=BE=E7=89=87=E4=B9=9F=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=99=84=E5=8A=A0=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Processor/PdfDocumentCreator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/App/Processor/PdfDocumentCreator.cs b/App/Processor/PdfDocumentCreator.cs index 8ad83fc..7103192 100644 --- a/App/Processor/PdfDocumentCreator.cs +++ b/App/Processor/PdfDocumentCreator.cs @@ -225,6 +225,9 @@ namespace PDFPatcher.Processor SetBookmarkAction(bookmark); } } + if (_option.ExtraEmptyPageForOddPdf && c % 2 == 1) { + _writer.AddPage(new Rectangle(_doc.Right - _doc.Left, _doc.Top - _doc.Bottom, 0), 0); + } } finally { fi?.Dispose();