Questions tagged [renderas]
The renderas tag has no summary.
93 questions
0 votes
0 answers
51 views
Rich text value is going beyond the edge of the PDF page and not wrapped when VF page is rendered as PDF
We are using below VF page code to render an objects fields data as PDF but rich text or long text area field values are going beyond the edge of the PDF page and not wrapped. VF Page: <apex:page ...
4 votes
1 answer
205 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 ...
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 votes
2 answers
1k views
How to render base64 image as pdf using visualforce page?
I see many posts that it is not possible to render base64 image as pdf in visualforce page, is it still possible ? This image is coming from another system and I do not want to store in sf as an ...
2 votes
1 answer
1k 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;...
0 votes
1 answer
330 views
Can a managed package access and render a Visualforce page from the default namespace or a different namespace? [duplicate]
A managed package implementing the PageReference's method getContentAsPDF implements a certain logic that allows the name of the page being called to be dynamic. Is it possible that this Apex code in ...
1 vote
0 answers
1k 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="...
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. ...
0 votes
1 answer
1k views
Visual Force is not Rendering Inline Css when rendered as PDF
In Our Application , We are getting a formatted Html string from a external library(Bryntnum - provides gantt chart features). The Formatted Html is returned in a string format. Our business need is ...
0 votes
1 answer
670 views
Dynamic page numbering when generated pdf through vf page using Render as PDF
We are generating PDF using render as PDF in VF page, now we have requirement for dynamic page number on generated PDF. for example page number should start from 30 and end at 35 i.e 6 pages. If ...
1 vote
1 answer
445 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 ...
0 votes
1 answer
903 views
Visualforce renderAs Pdf CSS selector issue [:last-child]
I am developing a visualforce renderas pdf in which I create a table but when I try to use the CSS :last-child selector it doesn't work. However the :first-child selector works. Attached is an example ...
1 vote
0 answers
289 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
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 ...