PSWritePDF icon indicating copy to clipboard operation
PSWritePDF copied to clipboard

Feature request: Merge to a fixed paper size

Open frabnet opened this issue 4 years ago • 1 comments

I'm trying to merge 2 or more PDF (A5 size) in to a new PDF (A4 size). I was wondering if it's possible to add a parameter that impose page size, for example: Merge-PDF -InputFile $src1, $src2 -OutputFile $destination -OutputPageSize A4

frabnet avatar Apr 06 '22 16:04 frabnet

It makes sense but to achieve that:

  • We need to create a function to resize any page to demanded value
  • And maybe then add it as option to merge-pdf

Resources to use:

  • https://stackoverflow.com/questions/56377322/how-to-scale-the-page-size-from-a3-to-a4-in-itext7-c
  • https://kb.itextpdf.com/home/it7kb/examples/scaling-and-rotating-pages
  • https://kb.itextpdf.com/home/it7kb/examples/changing-page-sizes-of-existing-pdfs

PrzemyslawKlys avatar Apr 07 '22 21:04 PrzemyslawKlys