Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author redcocker

    (@redcocker)

    Hi, ooohh04 san

    I’ll add this feature in future release.

    How much I know about wp it is not possible to add image as plugin background.

    Thread Starter ooohh04

    (@ooohh04)

    Hi Redcocker san,
    I am able to code, and
    I find this example in the tcpdf library:
    https://www.tcpdf.org/examples/example_051.phps , can you explain me how to integrate this in the pdf-maker file?
    Regards
    Giorgio

    Plugin Author redcocker

    (@redcocker)

    hI, ooohh04 san

    This is just an example code.

    Please add following code into /post2pdf-converter/post2pdf-converter-pdf-maker.php line 14

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Remove following code from /post2pdf-converter/post2pdf-converter-pdf-maker.php line 373-374

    require_once('tcpdf/config/lang/'.$config_lang.'.php');
    		require_once('tcpdf/tcpdf.php');

    Replace /post2pdf-converter/post2pdf-converter-pdf-maker.php line 392-394 with following code.

    $pdf = new POST2PDF_Converter_PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', true, false);
    		} else {
    			$pdf = new POST2PDF_Converter_PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false, false);

    Replace /post2pdf-converter/tcpdf/config/tcpdf_config.php line 95-99 with following code.

    if (!defined('K_PATH_FONTS') && $POST2PDF_Converter_PDF_Maker->post2pdf_conv_setting_opt['font_path'] == 1) {
    		define('K_PATH_FONTS', WP_CONTENT_DIR.'/tcpdf-fonts/');
    	} else {
    		define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
    	}
    Thread Starter ooohh04

    (@ooohh04)

    Hi Redcocker san,
    Thank you very much! I will try and let you know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: POST2PDF Converter] background image’ is closed to new replies.