Menu

Unwanted Element in bottom left corner

Help
Yves
2015-10-07
2015-10-07
  • Yves

    Yves - 2015-10-07

    In every document generated with TcPDF there is a element with no content in the bottom left corner.

    The element is only visible when examined in software like Adobe Acrobat, but causes some problems for us because we need our pdfs to work with an external software (epost). This software complains about the element, because it is in a prohibited area.

    Code:

    <?php 
    require('tcpdf.php');
    class MyPdf extends TCPDF {
        public function Header() {
    
        }
        public function Footer() {
    
        }
    }
    $pdf = new MyPdf('P', 'mm', 'A4', true, 'UTF-8', false, false);
    $pdf->setPrintHeader(false);
    $pdf->setPrintFooter(false);
    $pdf->SetFont('freesans');
    $pdf->SetMargins(20, 7);
    $pdf->setPageOrientation('P');
    $pdf->SetAutoPageBreak(true,20);
    $pdf->AddPage('P', '', true);
    $pdf->write(10, 'test');
    $pdf->Output(__DIR__.'/testneu.pdf', 'F');
    

    PDF

    I attached a screenshot from acrobat with the element marked.

    Is there a way to get rid of this element?

     

    Last edit: Yves 2015-10-07
  • Simon

    Simon - 2015-10-07

    This element is some invisible text that reads: Powered by TCPDF (www.tcpdf.org).
    It is invisible and doesn't print.

     
  • Yves

    Yves - 2015-10-07

    This solved the problem.
    Thank You :)

     

Log in to post a comment.