15
votes
Status of renderAs advanced_pdf
As of Summer '18, this pilot program has been cancelled. The service didn't quite meet the scalability goals we needed. Safe harbor, we're working on a way to bring the program back and adapt it to ...
14
votes
Accepted
External Image Link Broken when Rendering as PDF
I just figured this out after 30 minutes of Googling and thought a concise post may help others in future. It was not documented in the SFDC documentation but was on an different post from 2012.
Is ...
5
votes
Accepted
Question regarding default Salesforce client certificate being retired
Steven Lawrence from Salesforce answered me on November 14 about this, at the Salesforce Success Community Group about Salesforce Infrastructure. His answer was:
Fortunately, this change does not ...
5
votes
Accepted
Visualforce Page renderAs pdf styling does not apply
CSS transforms are not supported in PDF mode. Also, anything that starts with "-moz", "-ms", "-o", or "-webkit" are not supported. You'll have to find a CSS1- or CSS2-level support design that meets ...
5
votes
Show value in Outputfield and InputFIeld while Rendered
Yes, it should work as written, although for efficiency, you should write it as follows:
rendered="{!AND(Boolean1, NOT(Boolean2))}"
rendered="{!AND(Boolean1, Boolean2))}"
There's no need for the IF ...
4
votes
how to make the link active in pdf when we render the visual force page as PDf?
If you look at the documentation for <apex:commandLink>, you will see that the action parameter invokes a server method using AJAX. You can't use Javascript in a PDF. The <apex:outputLink> ...
4
votes
Accepted
Remote Objects do not work when rendered as PDF?
According to this article:
PDF rendering doesn’t support JavaScript-rendered content.
4
votes
Accepted
Javascipt component not coming render as pdf
Refer this document: Visualforce PDF Rendering Considerations and Limitations.
Don’t use standard components that aren’t easily formatted for print,
or form elements such as inputs or buttons, or any ...
4
votes
Accepted
Protect a generated PDF
You can create a Username - Password step before allowing anyone to download your PDF. If you inform the user that he can download a PDF after inserting a Username and Password you can do something ...
4
votes
renderAS = "advanced_pdf" with API Version 46.0 not rendering PDF with SDLS framework
Advanced PDF is - as far as I'm aware - not yet GA and still in Pilot.
Source: https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_vf_advanced_pdf.htm
There have been no ...
4
votes
Accepted
My visualforce PDF does not render webp image
PDF does not support webp, and Flying Saucer, the PDF renderer for Salesforce (and other programs), does not support webp; it would need to translate the webp file into a JPEG file to be usable in PDF....
4
votes
Visualforce renderAs Pdf CSS selector issue [:last-child]
:last-child was introduced as part of CSS 3.
The library that Salesforce leverages to turns Visualforce pages into .pdf files, Flying Saucer, only supports up to CSS 2.1 (which is when :first-child ...
3
votes
Print/Download PDF from VF Renderas=PDF in Lightning Experience
Print & download option comes from the browser's pdf viewer.
If you still want to have a button somewhere in your org to download the page, have the button, onclick of which redirect the user to ...
3
votes
Accepted
Render whole div in one page using renderAs PDF
This should work for you:
@media print
{
div{
page-break-inside: avoid;
}
}
3
votes
Accepted
Styles code appearing when page rendered as pdf
Use the <apex:page> attribute applyBodyTag="false".
3
votes
Stop blank page being created (because of page break setting) at end of visualforce rendered as pdf
The suggestion from How to deal with page breaks when printing a large HTML table seems applicable:
Note: when using the page-break-after:always for the tag it will create a page break after the ...
3
votes
Getting "PDF generation failed. Check the page markup is valid." Error from tables?
Edited to be more like an answer.
There could be many answers to this problem.
Ultimately "Check your css!"
I received this error earlier today and isolated right down to a height tag in my CSS ...
3
votes
Accepted
Visualforce renderAs="PDF" header <a> tag doesn't wrap <img>
align is deprecated attribute for img tag in HTML5 and renderAs PDF is pretty strict with HTML/CSS guidelines, quoting from MDN web docs:
Aligns the image with its surrounding context. Use the ...
3
votes
Accepted
Image is displayed upside down in Visualforce page rendered as PDF
JPEG images have an "orientation" tag that can be set by the camera or image editor. For example, an image can be stored upside down in the file, but the tag states the image is stored ...
3
votes
Accepted
Can we convert PDF file to Word Document?
Instead of trying to convert existing pdf version of the page, I suggest clone the current visualforce page and instead of render as pdf use contentType="application/msword#filename.doc
Now you ...
2
votes
Last trailing blank PDF page gets added, need to remove
I also once gone through it, and done with following solution. Try this out.
<apex:variable var="cnt" value="{!0}" />
<apex:repeat value="{!cases}" var="cse">
<!-- apex:...
2
votes
Accepted
font color not working for Apex renderas PDF page
You can write your css style inside the style tag which is wrapped inside an HTML tag, and also make sure your "applyBodyTag="false"" is set in your apex:page.
<apex:page renderAs="pdf" ...
2
votes
Accepted
Status=Unauthorized, StatusCode=401
You're making life hard for yourself there by using a Rest Service. Why not simply use PageReference().getContentAsPDF()? example:
global class AccountTriggerController{
@Future(callout=true)
...
2
votes
Header Image in Visualforce PDF
Was able to successfully render an image in the header with the following:
<apex:page standardController="Opportunity" renderAs="pdf" applyBodyTag="false" standardStylesheets="false">
&...
2
votes
Accepted
Visualforce page rendered as pdf - fields not displaying
First place to identify issue is to look Field level security followed by access of lookup fields.
Also checking the filed access in standard layout helps.
2
votes
Accepted
is it possible to render as pdf with font Actor
Not possible.
Fonts Available When Using Visualforce PDF Rendering
Visualforce PDF rendering supports a limited set of fonts. To ensure that PDF output renders as you expect, use the supported font ...
2
votes
Accepted
Sort field set in Visualforce renderAs PDF with apex:repeat
JavaScript is probably not going to avail you here:
Don’t use standard components that aren’t easily formatted for print, or form elements such as inputs or buttons, or any component that ...
2
votes
Render as PDF in table format in lightning component
You can't render lightning components as PDF right now. You have to create a Visualforce page for this, or use an external JS library that renders the content as PDF.
On Summer 17 Salesforce started ...
2
votes
Repeat HTML Table in Render as PDF VF Page
put this in your css inline of table: -Fs-table-paginate: paginate;
<table style="-Fs-table-paginate: paginate"></table>
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
renderas × 93visualforce × 76
pdf × 58
apex × 21
css × 15
html × 11
repeat × 4
getcontentaspdf × 4
lightning-web-components × 3
javascript × 3
images × 3
column × 3
lightning-aura-components × 2
lightning × 2
table × 2
richtextarea × 2
ms-word × 2
flying-saucer × 2
trigger × 1
email × 1
managed-package × 1
formula × 1
visualforce-component × 1
callout × 1
aura × 1