Component :
<aura:component implements="force:lightningQuickAction,force:hasRecordId" controller="Quote_Preview_LE">
<style>
.forceChatterLightComponent .bodyWrapper{height:0%;width:0%;padding:0;box-sizing:border-box}
.slds-modal__close{height:0%;width:0;padding:0;display:none;}
</style>
<aura:attribute name="ProfileId" type="String"/>
<aura:handler name="init" action="{!c.CheckPreview}" value="{!this}" />
<aura:attribute name="quo" type="Quote__c" default="{'sobjectType': 'Quote__c'}" />
</aura:component>
controller :
({
CheckPreview : function(component, event, helper){
var qid=component.get("v.recordId");
//alert(qid);
var action = component.get("c.getquoteid");
action.setParams({ "recordId" : qid });
action.setCallback(this, function(a) {
parent.location.href =parent.location.href;
window.open("/apex/QuotePreview?id="+qid,"_blank");
});
$A.get("e.force:closeQuickAction").fire()
$A.enqueueAction(action);
}
})
quote preview is a pdf page. It is opening in classic and lightning desktop.