Hi, is it possible to clone full lwc into pdf....like user filled a form not that form is visible to user in read only mode. User can click on download button and get one pdf.
Can we render the HTML class data and display it on Pdf, as here you are adding text learning with Salesforce bolt, but I want to add HTML form data as text in PDF in LWC. Is it possible?
Hi @Kapil...thanks for the video. Its helpful. I have a question..pdf is generated based on the static text the Java script. can you enhance it and explain to generate pdf using the content from salesforce.
Hi Chandra, glad you like it! Consider it as a canvas where you may put content static/dynamically from salesforce. I will try to create another detailed example of it!
@@SalesforceBolt I am trying to use this for one of the requirement that we have to be able to download pdf with salesforce content and ran into a challenge to split the text into multiple lines. Please let us know if there is a way to split the text into multiple lines.
Hi, I think this can be used as an alternative to printView functionality and download a emailMessage Data , beacause printView is not available by salesforce specially for EmailMessage Any thoughts..! :)
@@SalesforceBolt Referring to this blog (th-cam.com/video/UaYVnDgZ0XU/w-d-xo.html) we are just able to convert the image files but not the doc/docx @SalesforceBolt
Hi Kapil, nice demo. I'm trying to use pdf-lib in my project but can't use fontkit to add a custom font. Maybe you have used fontkit and share your experience?
@@kamkaliev4400 Thanks. Yeah, but the fonts are limited in Visualforce render as pdf right? Have you been able to use the custom fonts in pdf in any way?
Hi there, to pass it to the the drawText won't be possible as the data could be in any format like image, datatable etc. I would suggest you to pass the data on visualforce page and covert and download it on the load of it. You may check below link as reference : th-cam.com/video/UaYVnDgZ0XU/w-d-xo.html
Hi Can we remove the too bar in the pdf like those options print, download,rotate etc
Hi, sorry that's a standard template. Can't remove it.
Hi, is it possible to clone full lwc into pdf....like user filled a form not that form is visible to user in read only mode. User can click on download button and get one pdf.
I haven’t tried it! Will check and let you know.
is it posible to add or map a sign png saved in the attachments of a record in a pdf contract in salesforce?
Sorry, not sure about it!
Any suggestions on how you can test this functionality with jest ? Thanks :)
Never tried it!
I have a question that drawText() will convert word file into pdf or not?
It will draw the text over the canvas and then the canvas will convert it to pdf
Hi, can you please also tell what if I want to export the datatable into pdf
Use the VF page renderAs PDF method instead. Try to get data again on VF page and then render it as PDF.
Thanks, but is it possible without creating the VF page?
@@aanchalkhurana4483 I think so. Maybe you can generate it runtime again and use pdf-js
@@aanchalkhurana4483 Are you able to do it without using vf page?
Can we render the HTML class data and display it on Pdf, as here you are adding text learning with Salesforce bolt, but I want to add HTML form data as text in PDF in LWC. Is it possible?
Hi Rajat, you can add html as data as the pdf creations is on a html canvas.
@@SalesforceBolt Instead of page.drawtext what should i use?
Thank you Very Much.
Glad it helped !
Hi @Kapil...thanks for the video. Its helpful. I have a question..pdf is generated based on the static text the Java script. can you enhance it and explain to generate pdf using the content from salesforce.
Hi Chandra, glad you like it!
Consider it as a canvas where you may put content static/dynamically from salesforce. I will try to create another detailed example of it!
@@SalesforceBolt I am trying to use this for one of the requirement that we have to be able to download pdf with salesforce content and ran into a challenge to split the text into multiple lines. Please let us know if there is a way to split the text into multiple lines.
Hi, I think this can be used as an alternative to printView functionality and download a emailMessage Data , beacause printView is not available by salesforce specially for EmailMessage
Any thoughts..! :)
Well it could be a good idea 💡
Can you suggest how to pass html body into pdf file that can decode as well.
I am not finding any solution..!
Thanks in advance
Hi. I am getting error [window.URL.createObjectUrl is not a function]
Try it like this once
window.URL.createObjectURL = function() {};
Thank you!
Glad you like it !
Hi,
This is a really helpful video. but I want to add a button inside the Pdf File.
Pls Help me with that
Thanks
Thanks glad you like it ! I will check for the same and revert back.
Hi ,please upload the lwc pagination concept with inlinedit.
Will upload soon
Hi Kapil, Thank you for the demo It's very helpful, my question is with the js file. can we generate pdf in lwc without using the js libraries ?
You won't be able to generate it, but instead you can convert a doc/file to pdf
th-cam.com/video/UaYVnDgZ0XU/w-d-xo.html
@@SalesforceBolt Referring to this blog (th-cam.com/video/UaYVnDgZ0XU/w-d-xo.html) we are just able to convert the image files but not the doc/docx @SalesforceBolt
Hi Kapil, nice demo. I'm trying to use pdf-lib in my project but can't use fontkit to add a custom font. Maybe you have used fontkit and share your experience?
Hey sorry I don't have much experience of using fontkit.
hey - are you able to use the fontkit?
@@waqarSk no (( some ideas were using the Visualforce page, but there was something wrong with the namespaces due to which I couldn't get the result
@@kamkaliev4400 Thanks. Yeah, but the fonts are limited in Visualforce render as pdf right? Have you been able to use the custom fonts in pdf in any way?
@@waqarSk does it count in the electronic app?) it was a demo project, it didn't work out for me, but I didn't dig too deep
Awesome, thank for sharing! How would I pass data from a record to the PDF? Specifically the page.drawtext piece?
Hi there, to pass it to the the drawText won't be possible as the data could be in any format like image, datatable etc. I would suggest you to pass the data on visualforce page and covert and download it on the load of it. You may check below link as reference : th-cam.com/video/UaYVnDgZ0XU/w-d-xo.html
Hello sir, can you have a tutorial to send the pdf to an email or user? or any idea on how to send the pdf file or an email @ onclicked?
Hello, sorry I am not having any similar tutorial, maybe if you can save it as a file and then attach it to your email somehow!