[ https://issues.apache.org/jira/browse/PDFBOX-5445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758229#comment-17758229 ]
Marcelo Modesto commented on PDFBOX-5445: ----------------------------------------- My first time here, so I need to say thank you for this project! I was using version 2.0.29 and did some changes to *PDFMerger* and *ExtractText* to process a bunch of PDFs files from a list. So, I started reading Stack Overflow and Jira to verify if this feature could be a wish for someone else and found this ticket. I saw that you are now using *_picocli_* to process command line arguments. Reading picocli docs I've found support for argument files to avoid problems with command line length limitations - item *"3.9.1 - Argument Files for Long Command Lines"* Here is a example that I've tested with success: {code:java} $ cat pdf_list.txt -i ./3.0.0/pdfbox/src/test/resources/input/hello3.pdf -i ./3.0.0/pdfbox/src/test/resources/input/hello3.pdf $ java -jar ./3.0.0/app/target/pdfbox-app-3.0.0.jar merge -o ./hello33.pdf @./pdf_list.txt {code} So, I think the first part of this issue is resolved, isn't it? About the changes that I've made to *ExtracText* (to avoid call JVM so many times) I will do some tests and maybe I will open a new feature request. > Add command line options to accept file containing list of files to merge > ------------------------------------------------------------------------- > > Key: PDFBOX-5445 > URL: https://issues.apache.org/jira/browse/PDFBOX-5445 > Project: PDFBox > Issue Type: New Feature > Affects Versions: 3.0.0 PDFBox > Environment: windows 11, 10 > Reporter: Zbigniew Minciel > Priority: Major > > Users of free MBox Mail Viewer require to export hundreds of emails into PDF > and merge them into a single PDF document. Due to command line length > limitations, smaller subsets of PDF mails have to be merged first and merge > again multiple times. Merging must preserve order of emails. Option to accept > a file containing a list of PDF files to merge would be very helpful. > Another very useful option would be suppress "Page Break" at the end of PDF > document to allow multiple small emails to fit on a page. Frequently, emails > within the same thread are small. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org