Base64 image in pdf content
-
Hi,
In my template, I’m using a field containing a base64 encoded image for a custom post type. This template works well with your helpNow, I want the put a base64 image in the pdf and I’m trying a simplistic method in HTML like :
$base64_logo = get_field('logo_annonce'); if( $base64_logo ): $pdf_output .= '<div class="annonce--logo">'; $pdf_output .= '<img src="data:image/png;base64,'. $base64_logo .' "/>'; $pdf_output .= '</div>'; endif;
Unfortnaly, it doesnt work.
Maybe, it isn’t possible with FPDF library.
Any idea.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Base64 image in pdf content’ is closed to new replies.