I have this below lightning component from where I am calling a lightning web component. This lightning component is called from quick action. I need to print this content as pdf.
When I click the button, the quick action page overflows with the object detail page.
I have a restriction that I cannot use VF page.
Lightning Component
<aura:component implements="force:lightningQuickAction,force:hasRecordId">
<lightning:button label="Print To PDF" title="Print To PDF" onclick="{! c.myAction }"/>
<c:TestLWC recordId="{!v.recordId}"/>
</aura:component>
Controller -
({
myAction : function(component, event, helper) {
window.print();
}
})
Thanks for help