7
votes
Accepted
Overlapping data while using print functionality over VF page
I believe this is happening due to the table falling on a page-break-zone.
You can add the following style
style="page-break-inside: avoid;"
to your div inside the apex:repeat, it will ensure no ...
4
votes
Accepted
Hide div from page layout after print button click
I think there is a lag between updating the DOM and sending the elements to the window.print. I would suggest, using another approach where you can hide the element/div which you don't want to print ...
2
votes
Download Screenshot in PDF on button click in lightning component
You will require jspdf in the lightning component. Include it with ltng:require and then call a function on the button click.
Here is the jsfiddle which you can have a look.
2
votes
Accepted
Modify output text using Standard Visualforce page
The apex:pageBlock is causing the problem. It's not meant to have anything inside of it besides apex:pageBlockSection, apex:pageBlockButtons, and apex:pageBlockTable. Also, to make sure line breaks ...
2
votes
Print the content of specific div using LWC
I have found a solution. We can use class="slds-no-print" to hide the sections from print.
check this link
Thank You.
1
vote
Printing a PDF from formula field data
There are several parts to what you're asking. Let's unpack it.
PDF generation in Salesforce has traditionally been done using Visualforce and Apex -- see the official documentation. Your LWC can call ...
1
vote
Display multiple PDF Content Versions in a printable view in one Visualforce Page
After doing more research I found a post asking the same question and it can be viewed here.
tl;dr
It's not possible to render a PDF that contains another PDF inside of it. The Salesforce PDF render ...
1
vote
Increase PDF height to show in one page
Try setting the page size in the <style> tag:
<style>
@page { size: 8.5in 11in; margin:0.0in; /* PDF width, height, margin */ }
</style>
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
printpdf × 24visualforce × 11
pdf × 9
apex × 7
lightning-web-components × 6
lightning-aura-components × 4
lightning × 4
javascript × 3
visualforce-component × 2
table × 2
rendered × 2
lightning-experience × 1
class × 1
attachment × 1
tasks × 1
files × 1
contentversion × 1
contentdocument × 1
quote × 1
iframe × 1
modal × 1
renderas × 1
getcontentaspdf × 1
lightning-button × 1
rendering × 1