Menu

I must be missing something really basic!

Help
2022-07-31
2022-08-01
  • Gerry Roston

    Gerry Roston - 2022-07-31

    TCPDF seems like a great package and I am glad that it is available. While
    trying to learn how to use it, I edited example_001.php to see what would
    happen. I changed the line
    $pdf->setTitle('TCPDF Example 001');
    to
    $pdf->setTitle('My Test Example');
    But when the PDF was created, the title was unchanged. What on earth am I
    missing???


    Gerry Roston
    Gerry@PairOfDocs.net
    734-516-6715

     
  • Simon

    Simon - 2022-08-01

    You've edited the meta data - not the document.

    The title that appears on the page is set here:

    $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
    
     

Log in to post a comment.