I created visual force that converts the page to PDF as below
VF Page
<apex:page controller="PDFGenerationTest" lightningStylesheets="false" renderAs="pdf" showChat="false" showHeader="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" >
<apex:outputText value="{!emailBody}" escape="false"/>
</apex:page>
Apex:
public class PDFGenerationTest {
public String emailBody {get;set;}
public PDFGenerationTest(){
logoUrl = 'https://img1a.flixcart.com/www/linchpin/fk-cp-zion/img/fk-plus_3b0baa.png';
emailBody ='<div style="display: flex; padding-bottom: 1.5rem;"> <div style="width: 50%;float: left;"> <img src=' + logoUrl +' style="width:100%; max-width:300px;"></div>';
}
}
I have an external image that I'm trying to render in a PDF. Image displaying PDF as below.
Can you please help me on this to resolve this issue