Questions tagged [renderas]
The renderas tag has no usage guidance.
93 questions
14
votes
1
answer
2k
views
Status of renderAs advanced_pdf
I just wondering if this promising feature has been evolved or is evolving to GA
https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_vf_advanced_pdf.htm
Any info about current ...
9
votes
2
answers
8k
views
How to add page breaks to visual force page rendered as pdf so that a dynamically rendered list in apex repeat tag does not strech the table lines
I have created a VF page rendered as pdf for QuoteLineItems in which I have added the list inside <apex:repeat> tags inside a html table row which again is inside another table.The problem ...
7
votes
1
answer
2k
views
RenderAs PDF with Bootstrap
I'm building out a Bootstrap website in Salesforce and I now have a requirement to allow the users to download some of the pages as PDFs. Unfortunately, when I use renderAs="PDF", I get this error:
...
6
votes
1
answer
4k
views
External Image Link Broken when Rendering as PDF
When referencing an external image in a Visualforce PDF rendered image, the image is displaying a broken link. It works perfectly without the renderAs="PDF".
5
votes
1
answer
2k
views
Question regarding default Salesforce client certificate being retired
I just received an email informing that the default Salesforce client certificate (proxy.salesforce.com) will retire on August 7, 2017 at 09:30 a.m. PDT (16:30 UTC).
They say customers using the ...
5
votes
1
answer
2k
views
Image inside hyperlink not working in Visualforce page rendered as PDF
I am trying to create hyperlink in PDF using visualforce renderAs = "pdf".
Actually I don't want the simple link i.e. text link, instead of text link I want image icon and on click of that icon/image ...
5
votes
1
answer
2k
views
Repeated Header and Footer when Visualforce Page Is rendered as MS Word
Hey People I got this code from Stack Exchange only But It's Not what I'm looking for, I feel here header and Footer are static, Please somebody guide me to make running header and footer when i ...
4
votes
1
answer
927
views
Visualforce renderAs="PDF" header <a> tag doesn't wrap <img>
I have a problem when I'm wrapping images with an anchor tag in the header in a page that is rendered as PDF.
When I wrap an image with anchor tag in the header the image gets rendered OK, but ...
4
votes
2
answers
2k
views
How to display "₹" indian rupee symbol in visualforce page which is rendered as PDF?
I'm able to display "₹" Indian rupee symbol in the visualforce page either by hard coding or by using some 5 digit code. But the same VF page when rendered as PDF "₹" Indian rupee symbol won't display....
4
votes
1
answer
73
views
Replicate the VF renderAs="PDF" Functionality Using LWC
We currently have a VF page (rendered as PDF) that generates invoice data. We use it in several places in the org: it's accessible via a record action on the Invoice record page, it can be sent as an ...
3
votes
1
answer
1k
views
Visualforce Page renderAs pdf styling does not apply
<!-- Begin inline CSS -->
<style type="text/css" >
.NMA-mobile-logo{
width:57%;
}
.NMA-other-logo{
width: 25%;
}
.headerWrap {
border-radius: 15px;
background: ...
3
votes
3
answers
39k
views
Stop blank page being created (because of page break setting) at end of visualforce rendered as pdf
My visualforce rendered as pdf is creating a blank page at the end because of a page-break-after: always setting. How do I stop this blank page being created?
I have 4 repeating sections, and after ...
3
votes
1
answer
2k
views
Render page as PDF, after the JS executions is complete
This might be a common question...but I did not find exact solution to this...
I have a Javascript and AngularJS library that creates a graph, and I need to export the same as PDF. If I try to render ...
3
votes
1
answer
5k
views
Place image on last page in PDF document
I have a Visualforce page rendered as PDF with a static first page and dynamic pages following.
I have a header and footer set and they are working as expected. My issue is trying to place an image ...
3
votes
1
answer
553
views
Recommendations to style Visualforce page to match the SLDS?
Does anyone have insight into the best practice to style a Visualforce page to match the SLDS for inclusion in a lightning component and printing?
I can hear the choirfolk chanting: Visualforce is so ...
3
votes
1
answer
573
views
Alternating color based on row is not working in Visualforce render as PDF
I have to display the rows of alternate colors based on some condition in PDF format. The same code is working in HTML but not working while render as PDF.
If anyone have work around, please let me ...
2
votes
1
answer
4k
views
renderas PDF page level styles not working with v30.0 api
I can't seem to get page level styles to work with version 30.0 of the force.com eclipse IDE in my VF pages. Is this a bug or is there some change that occurred that I'm unaware of?
<apex:page ...
2
votes
1
answer
941
views
Border CSS not working properly with VF page rendered as pdf
Hi I'm trying to display rounded borders in a VF page using the below style on a individual div and a tr inside a table separately.
style="text-align: left;border: 1px solid black !important;...
2
votes
1
answer
2k
views
Javascipt component not coming render as pdf [closed]
I am working on a visualforce page and have used javascript to add a row dynamically. All are coming in the pdf except that javascript column.
Below is the javascript sippet that is not loading:
<...
2
votes
3
answers
2k
views
Header Image in Visualforce PDF
I am looking to embed an image in a PDF rendered in Visualforce. The goal is to have the PDF look like it's on a letter head. I've tried a number of different approaches to this but can't seem to find ...
2
votes
1
answer
1k
views
Can we convert PDF file to Word Document?
I have a VF page on which I save that VF page content as a PDF, Now there is a new requirement in which I have to save a Word DOC file as well with that PDF so that I can perform some changes on it.
...
2
votes
1
answer
707
views
Image is displayed upside down in Visualforce page rendered as PDF
I am facing a bizarre issue. I am creating a PDF dynamically using images stored in the system. I am using a VF page and using RenderAs="pdf" to generate the file. Everything is working as ...
2
votes
1
answer
2k
views
Render whole div in one page using renderAs PDF
I'm trying to create a page that will be rendered as PDF to the user, and this page is supposed to display a document that has a text that can change depending on what is typed on a rich field text on ...
2
votes
1
answer
297
views
Styles code appearing when page rendered as pdf
I have a visualforce page which i am rendering as a pdf.
<apex:pages>
<style>
.cke_contents {
height: 100px !important;
}
</style>
&...
2
votes
2
answers
2k
views
Wrapping link in TD tag in Visualforce render as PDF page
I have created a Javascript button, When user clicks on Javascript button it generates a PDF document. I have used renderAs Pdf attribute to generate pdf document from VF page.
My problem is I have a ...
2
votes
1
answer
78
views
Visualforce as PDF error
I am creating a VF page where I have to select date and filter data and using button I need to send the another VF page as PDF with same data in email as attachment. When I selecting Date from 1st VF ...
2
votes
1
answer
637
views
HTML List structure in a PDF rendered Visualforce page
I have a visualforce page which has a nested list structure. Sample code below.
Visualforce page
<apex:page controller="RoleStructure" showHeader="false" >
<html>
<apex:form &...
2
votes
1
answer
1k
views
is it possible to render as pdf with font Actor
I tried the following to render a custom font in visual force
<apex:stylesheet value="https://fonts.googleapis.com/css?family=Actor"/>
.cal {
font-family: 'Actor';
font-size: 14px;
}...
2
votes
2
answers
2k
views
HTML table does not let me change table position to center when rendering as PDF
I'm trying to display my HTML table in the center of the page when rendering it as pdf. When I render as HTML it works as expected so I assume that CSS properties for alignment doesn't work properly ...
2
votes
1
answer
2k
views
"PDF generation failed. Check the page markup is valid." caused by a single table?
I am generating a quote page to show information regarding the client and have run into an issue where the table I use for formatting the information's location is somehow causing the PDF to fail ...
2
votes
1
answer
353
views
Include style/script component in <head>
I have the following page:
<apex:page docType="html-5.0" standardController="Transaction__c" extensions="OptionComparisonDownload"
name="Option Comparison" readOnly="true" applyHtmlTag="...
2
votes
0
answers
222
views
How to disable generic @page rule in VF page rendered as PDF?
I have following two requirements:
(1) Several single Visualforce pages rendered as PDF with a running header/footer as well as each VF page having a different “padding-top” value of it’s content, i.e....
2
votes
0
answers
1k
views
How do we name a Visualforce PDF without Apex (Filename)
Here is our Visualforce Page Attributes
In this example we are trying to name the PDF "Hello"
<apex:page title="PDFPage" renderAs="pdf" standardStylesheets="false" standardcontroller="...
2
votes
1
answer
190
views
Visualforce page rendered as PDF giving problem when called in page layout
I have created a visualforce page
<apex:page standardController="Contract__c" extensions="ContractPDFControllerExtension" sidebar="false" showHeader="false" renderAs="PDF" >
<apex:form &...
1
vote
1
answer
2k
views
renderAS = "advanced_pdf" with API Version 46.0 not rendering PDF with SDLS framework
Why is the renderAS = "advanced_pdf" not working ?
Trying to apply SDLS to existing classic visualforce page.
This page is renderedAs a 'PDF'. If I add renderAS = "advanced_pdf" the page
...
1
vote
1
answer
2k
views
Protect a generated PDF
I've been looking in many sites and I didn't find an answer. Is it possible to password protect a PDF generated with "renderAs = PDF"? In a negative case I need to find another way to protect my PDF ...
1
vote
1
answer
8k
views
Getting "PDF generation failed. Check the page markup is valid." Error from tables?
I'm working on what should be a relatively simple PDF Quote page using visualforce.
For some reason I have run into an issue where no matter what I try I keep getting an error that the PDF Generation ...
1
vote
2
answers
4k
views
Visualforce Page - Render Rich Text Area(32768)
I am building a Visualforce page as PDF and i want to show some sections and clauses of a Contract, which are within Salesforce as records. The value i want to display is rich text area and this rich ...
1
vote
1
answer
1k
views
Perform Callout, get byte[] and view pdf
I have a requirement to perform a callout, get response (byte array) that is a PDF base 64 encoded. Then, i need to show the pdf, without saving any data in Salesforce. I just need to view the ...
1
vote
1
answer
6k
views
Render as PDF in table format in lightning component
I am displaying data in lightning component in table format and have the render the same in PDF.I am able to render this in PDF format but it is not in the table format.
Format in lightning component:...
1
vote
1
answer
1k
views
Last trailing blank PDF page gets added, need to remove
I have below last element and trying to remove the trailing blank pdf page added. It is not working. Can someone please let me know how to deal with it?
Apex Page
Last element
.....<td width=...
1
vote
1
answer
2k
views
Attach dynamic PDF to email in Approval Process
I have a requirement in which when record gets approved in approval process, On final approval action an email sends to an user.
I have a visualforce page which is rendered as PDF
I want that ...
1
vote
1
answer
301
views
PDF generation failed. Check the page markup is valid. Issue with datatable and columns tags
When rendering a visualforce page as PDF, I'm running into the error above often and have been unable to figure out what the error is.
Through process of elimination, I have been able to narrow down ...
1
vote
2
answers
593
views
renderAs PDF for specific block
I'm using code to save page As PDF, with custom save button. but what If I need more than one save button in the same page and each button will save part of the page?? How can I handle that issue ?
...
1
vote
1
answer
2k
views
On click of save record button i need to download opportunitylineitems details as pdf
I have written one VF page,1 extensions on opportunity detail page with show products button.Once i click show products,it will show all products present in that current opportunity.List of products ...
1
vote
1
answer
2k
views
How to pass data from javascript controller to iframe in LWC
I am trying to pass a pdf as a preview to an Iframe in LWC.
Note: a preview, not showing an existing pdf
I followed following example:
How to render a PDF generated with jsPDF in a LWC
How do I pass ...
1
vote
1
answer
2k
views
How to create pdf using pdfjs library in lwc
I have a lwc in which I try to render a pdf. I have zipped the pdfjs library and added this as a static resource. In my template I can call the library as following:
<iframe id="...
1
vote
0
answers
965
views
Visualforce PDF rendering sans-serif font with bold elements in same section not working
I have a Visualforce page with a sans-serif font:
<apex:page
showHeader="false"
applyHtmlTag="false"
applyBodyTag="false"
standardStylesheets="...
1
vote
0
answers
278
views
Options to lock Header and Footer sections in Word when Visualforce Page is rendered as word
I am looking for options to lock the header and footer sections in the word document when Visualforce page is being rendered as word. Any help would be appreciated!
<apex:page sidebar="false&...
1
vote
0
answers
100
views
How to show Chart in Visualforce page which has renderas = pdf [duplicate]
I have VF page with renderAs = PDF.
I want to display a chart on that PDF?
I have tried https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm and Display ...