TCPDF_import is not bringing in an existing file

后端 未结 3 1322
情深已故
情深已故 2021-01-22 17:17

I have a PDF of a blank certificate, I want to fill in two lines when the user completes a course of study, and display the PDF so they can print or download it.

I am us

3条回答
  •  孤街浪徒
    2021-01-22 17:46

    Well, not as eloquent as I wanted, but I found something that works....

    AddPage();
    $pages = $pdf->setSourceFile( 'test.pdf' );
    $page = $pdf->ImportPage( 1 );
    $pdf->useTemplate( $page, 0, 0 );
    $pdf->Output( 'newTest.pdf', 'F' );
    ?>
    

    Thanks to Simon who posted in http://sourceforge.net/p/tcpdf/discussion/435311/thread/66272894/

    I was able to modify this - it entails running two libraries - but it works.

提交回复
热议问题