[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


how to insert a PDF page into the middle of an existing PDF in php or java?

Posted on 2009-02-21
Medium Priority
Last Modified: 2012-05-06
I need to automatically insert a PDF page into the middle of an existing PDF on the web.  

FPDF actually now in conjunction with FPDI allows you to attach pdfs together at the beginning and end of the file, but I need to insert it into the middle of the existing PDF.
Question by:stationeryhouse

Accepted Solution

bluebelldiscovery earned 1500 total points
ID: 23703036
You can try iText see
it allow you to Split, concatenate, and manipulate PDF pages

Another alternative is to use PDFBox

Download 0.7.4 here (latest known version)


Author Comment

ID: 23781230
I figured out how to get this done with FPDI. Thank you.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question