• Resolved alexcola

    (@alexcola)


    hi
    I have a custom template form generate a pdf…in this template there is a header in a div before the form content (only for first page) and then the form content…
    but if I try to have a text and image after the form content (not in footer but only the end of the content) with another div, I have only a blank space in pdf (form is regularly sent and also the pdf attachment)

    this is the code

    <body>
    
    <div>
    	<img src="<?php echo PDF_PLUGIN_DIR; ?>/images/testata-moduli-pdf.jpg" width="2717" height="328"  />
    	<br/><br/>
    </div>
    
            <?php
    
            foreach($lead_ids as $lead_id) {
                $lead = RGFormsModel::get_lead($lead_id);
                GFPDFEntryDetail::lead_detail_grid($form, $lead, $show_empty_fields, $show_html_fields, $show_page_names);
            }
    
            ?>
    
    <div>
    	<img src="<?php echo PDF_PLUGIN_DIR; ?>/images/footer-contratto.jpg" width="2717" height="328"  />
    	<br/><br/>
    </div>
    
    	</body>

    the image in second div is not visible in pdf

    thanks in advanced

    http://wordpress.org/plugins/gravity-forms-pdf-extended/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi Alex,

    Firstly, make sure the image actually exists in the location you have set. PDF_PLUGIN_DIR is actually the plugin folder and so you risk your files being overridden when you update the plugin. You are better off storing them in PDF_EXTENDED_TEMPLATE folder which can be accessed with PDF_TEMPLATE_LOCATION constant.

    What happens if you put text in the second div (after the content). Does that show up?

    Also, if you remove the style sheets from the template and view the PDF again does the image below the content show this time?

    Thread Starter alexcola

    (@alexcola)

    hi
    thanks for good advice of plugin folder…i changed…

    for post problem i solved (my bad)…the problem was a my misconfiguration of custom template (i have many forms and 2 templates) in configuration.php…

    then, for users, is regularly possible to have a text and images before and after the form content, like in code above

    thanks for your help and for this great plugin…5 stars
    best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert image and text after form content in pdf’ is closed to new replies.