# Merge Multiple PDF Files Into One

**URL:** <https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821>\
**Category:** questions\
**Tags:** pdf\
**Created:** [December 2, 2023, 9:45pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821 "2023-12-02T21:45:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisHargett](https://clarionhub.com/user_avatar/clarionhub.com/chrishargett/32/2413_2.png) [@ChrisHargett](https://clarionhub.com/u/ChrisHargett)\
**Post date:** [December 2, 2023, 9:45pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/1 "2023-12-02T21:45:01Z")

</div>

Hi All!

I have an application requirement to take the first page of a hundred or so different PDFs and merge them into one PDF and open it for printing. What are my best options for getting that done?

Thanks in Advance!

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [December 3, 2023, 11:55am UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/2 "2023-12-03T11:55:17Z")

</div>

[iTextCW](https://github.com/mikeduglas/iTextCW) allows to merge multiple PDFs.

---

<div class="post-metadata">

**Author:** ![Bostjan\_Laba](https://clarionhub.com/user_avatar/clarionhub.com/bostjan_laba/32/2498_2.png) [@Bostjan\_Laba](https://clarionhub.com/u/Bostjan_Laba)\
**Post date:** [December 3, 2023, 1:14pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/3 "2023-12-03T13:14:48Z")

</div>

QuickPDF or wPDF with CW wrapper

---

<div class="post-metadata">

**Author:** ![ChrisHargett](https://clarionhub.com/user_avatar/clarionhub.com/chrishargett/32/2413_2.png) [@ChrisHargett](https://clarionhub.com/u/ChrisHargett)\
**Post date:** [December 4, 2023, 2:42pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/4 "2023-12-04T14:42:41Z")

</div>

Thanks, Mike. But I need to merge the first page of each 5 page file; not the the whole file.

---

<div class="post-metadata">

**Author:** ![ChrisHargett](https://clarionhub.com/user_avatar/clarionhub.com/chrishargett/32/2413_2.png) [@ChrisHargett](https://clarionhub.com/u/ChrisHargett)\
**Post date:** [December 4, 2023, 2:44pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/5 "2023-12-04T14:44:59Z")

</div>

Thanks, Bosjan. They’ve been bought out by Foxit and Foxit won’t tell you their pricing scheme. You have to ask for a quote. I usually don’t deal with that kind of vendor since it usually means they’ll be trying to charge an arm and a leg.

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [December 4, 2023, 3:53pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/6 "2023-12-04T15:53:30Z")

</div>

Well I consider it as a feature request, which will be implemented in next release (the end of next March).

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [December 4, 2023, 4:22pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/7 "2023-12-04T16:22:33Z")

</div>

If you have Tracker PDF library it can Merge PDFs.

It has a PDFMergeClass that makes it easy, but it always merges ALL Pages. You would have to use the PDF Toolbox Class.

---

<div class="post-metadata">

**Author:** ![Bostjan\_Laba](https://clarionhub.com/user_avatar/clarionhub.com/bostjan_laba/32/2498_2.png) [@Bostjan\_Laba](https://clarionhub.com/u/Bostjan_Laba)\
**Post date:** [December 4, 2023, 5:13pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/8 "2023-12-04T17:13:50Z")

</div>

> [@ChrisHargett](#):
>
> They’ve been bought out by Foxit and Foxit won’t tell you their pricing scheme. You have to ask for a quote. I usually don’t deal with that kind of vendor since it usually means they’ll be trying to charge an arm and a leg.

Oh, I know. Worst behavior from their side. Which is bad because it is a good product with only one issue I have - they make pdfs from images. If you need it from WMFas vector data, you don’t get special chars (easterneurope in my case).  
Other than that it is powerful.

---

<div class="post-metadata">

**Author:** ![Julian](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/74df32/32.png) [@Julian](https://clarionhub.com/u/Julian)\
**Post date:** [December 5, 2023, 11:00am UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/9 "2023-12-05T11:00:58Z")

</div>

Do I understand this question correctly .. you have multiple PDFs and want to print page 1 from each programmatically (ie: it’s not really necessary to combine/merge them to achieve this task) ?  
If that’s correct, consider SumatraPDF command line printing as described here (print just page 1 from a file/files) ..

> **[Command line arguments](https://www.sumatrapdfreader.org/docs/Command-line-arguments)**
>
> Sumatra PDF reader and viewer for Windows

If you really do need a final document containing all the ‘page 1s’ you could use Sumatra to print just the first page from each document to individual .pdfs, then combine/merge those.

---

<div class="post-metadata">

**Author:** ![ChrisHargett](https://clarionhub.com/user_avatar/clarionhub.com/chrishargett/32/2413_2.png) [@ChrisHargett](https://clarionhub.com/u/ChrisHargett)\
**Post date:** [December 5, 2023, 4:53pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/12 "2023-12-05T16:53:24Z")

</div>

Thanks, Julian, but they need to be one file. That’s so if they start printing, they can cancel one print and not 100s. I’m currently using PDFtk command line to merge them, but it’s ugly and takes a long time to merge.

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [March 16, 2024, 6:59pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/13 "2024-03-16T18:59:04Z")

</div>

iTextCW v1.0.0.7 is available, PDFMergeCallbackTest.clw demonstrates how to merge only 1st pages of the documents.

---

<div class="post-metadata">

**Author:** ![ChrisHargett](https://clarionhub.com/user_avatar/clarionhub.com/chrishargett/32/2413_2.png) [@ChrisHargett](https://clarionhub.com/u/ChrisHargett)\
**Post date:** [March 18, 2024, 1:43pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/14 "2024-03-18T13:43:54Z")

</div>

Do you have a link to the product page?

---

<div class="post-metadata">

**Author:** ![Johan\_de\_Klerk](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/f9ae1b/32.png) [@Johan\_de\_Klerk](https://clarionhub.com/u/Johan_de_Klerk)\
**Post date:** [March 18, 2024, 1:48pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/15 "2024-03-18T13:48:35Z")

</div>

> **[GitHub - mikeduglas/iTextCW: Pdf merge, Pdf sign](https://github.com/mikeduglas/iTextCW)**
>
> Pdf merge, Pdf sign

---

<div class="post-metadata">

**Author:** ![vitesse](https://clarionhub.com/user_avatar/clarionhub.com/vitesse/32/837_2.png) [@vitesse](https://clarionhub.com/u/vitesse)\
**Post date:** [March 18, 2024, 11:24pm UTC](https://clarionhub.com/t/merge-multiple-pdf-files-into-one/6821/16 "2024-03-18T23:24:15Z")

</div>

Dec 5, '23 2:53 AM

> [@Mike\_Duglas](#):
>
> feature request, which will be implemented in next release (the end of next March).

Mar 17, 5:59 AM

> [@Mike\_Duglas](#):
>
> iTextCW v1.0.0.7 is available

nice one Mike - someone who actually delivers on time (as advertised and when they say!)

cheers
