I see from this question that you can display an image in a lightning component. Will this work for a pdf file? Using the exact same code, it doesn't appear so.
I did try using lightning:fileCard to display my pdf, but it's too small. I'd like it to take up 40% of this modal I'm working on. It doesn't appear to get any bigger, even when I use SLDS
Here is what my markup looks like, if needed:
<div class="slds-grid slds-wrap">
<div class="slds-size_2-of-8">
<!-- left blank intentionally -->
</div>
<div class="slds-size_3-of-8">
<!-- form stuff -->
</div>
<div class="slds-size_3-of-8">
<lightning:fileCard fileId="{!v.rxImage.ContentDocumentId}"
description="{!v.rxImage.ContentDocument.Title}"
/>
</div>
</div>