Results 1 to 4 of 4

Thread: TCPDF

  1. #1
    New user
    Join Date
    06-27-12.
    Posts
    3

    Default TCPDF

    Hello,

    I have a problem to add a logo automatically on the header of my PDF.

    I went in system/config/tcpdf.php and I modified the line 50 to obtain this:

    Define (' PDF_HEADER_LOGO ', ' tcpdf_logo.jpg ');

    I tested the function Title with an example of this type:

    Define (' PDF_HEADER_TITLE ', ' This is a test ');

    In the end, in spite of these modifications, I have neither logo, nor text in the header.

    In brief I have the impression that these data are not taken into account while PDF_CREATOR and PDF_AUTHOR is him as for them.

    Thank you in advance for your answers.

    Vincent

  2. #2
    New user
    Join Date
    06-27-12.
    Posts
    3

    Default Re: TCPDF

    I make go back up my demand, because I may look on the French, English forums and consult the documentation tcpdf I do not see adding always how a logo in pdf generated (to add even how information of type address the bottom of page)? Thank you in advance for your answers

    Vincent

  3. #3
    User
    Join Date
    06-20-09.
    Posts
    115

    Default Re: TCPDF

    Hi Vincent,
    I have never used this function and am no expert but have you looked at this post by Ben:
    http://en.forum.contao.org/viewtopic...it=tcpdf#p4534

    Which refers to the file: /plugins/tcpdf/config/tcpdf_config.php
    Which has this section in the file:
    Code:
    /**
    	 * image logo
    	 */
    	define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
    
    	/**
    	 * header logo image width [mm]
    	 */
    	define ('PDF_HEADER_LOGO_WIDTH', 30);
    Just in case you haven't already looked at the documentary (and for others to know), you can find samples here:
    http://www.tcpdf.org/examples.php

    I hope this helps you a bit, good luck and hope you find a solution. Let us know if it works
    geung

  4. #4
    New user
    Join Date
    06-27-12.
    Posts
    3

    Default Re: TCPDF

    Thank you for your answer but regrettably I have already crossed the documentation of TCPDF.

    The problem it is because the modifications which I make are not taken into account.

    I can nevertheless put the pdf in mode portrait or landscape, modify the author, but I cannot integrate a logo or an address into footer for example.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •