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

Posted on 2009-02-21
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
    LVL 9

    Accepted Solution

    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

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

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    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…
    In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now