This script adds the possibility to use PDF templates in a PDF document as explained in the PDF specifications 1.3 (4.9 Form XObjects). It is the basis for FPDI.
There are more advantages of using templates than just preparing FPDF to handle external documents:
Examples of use (the greatest advantage of all is that a template has to be written to the PDF file only once):