EvotecIT / PSWritePDF

PowerShell Module to create, edit, split, merge PDF files on Windows / Linux and MacOS
GNU Affero General Public License v3.0
192 stars 21 forks source link

Merge-PDF does not merge multiple files with hyphens or dashes #49

Open MikaelManuel opened 9 months ago

MikaelManuel commented 9 months ago

Consider the following command: Merge-PDF -InputFile "VIP-Build_4_16.pdf", "VIP-Build_4_15.pdf", "VIP-Build_4_14.pdf", "VIP-Build_4_13.pdf" -OutputFile 'test.pdf'

The merger does not show all pages. It only shows the first page, which is VIP-Build_4_16.pdf. All other files indicated in the Merge-PDF command is ignored.

Next test: Merge-PDF -InputFile "0I-fqaav6_MVP-Build_3_22.pdf", "test3.pdf", "test3-Copy.pdf" -OutputFile "test.pdf"

All files are merged.

MikaelManuel commented 9 months ago

The code is actually affected by the third party library - iText library

PrzemyslawKlys commented 9 months ago

Is it affected in it's newest version? We haven't updated for a while

anishnath commented 9 months ago

Used https://8gwifi.org/merge-pdf.jsp for PDF merge with ordering it works