How to convert html script to pdf document
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 01:50 AM
Hi All,
I have a requirement that to convert HTML page need to download as a pdf document
please guide me on how to do this or please share some script here
the below script is the actual HTML script and I need to convert this as pdf in ServiceNow
<div class="row" style="font-family: Roboto, 'Segoe UI', Tahoma, sans-serif;font-size: 81.25%;">
<div class="column1" style="background-color:#855AA6;width: 35%;float:left;height:1500px;padding:20px;color:white">
<h5 style="text-transform: uppercase;font-family: 'YACgEQzTv38 0', _fb_, auto;line-height: 1.42;letter-spacing: 0.3em;font-weight: 500;"><b>Contact me at</b></h5><br>
<span style="line-height: 1.4;letter-spacing: 0.05em;--head-indent: 1.3;font-family: 'YACkoJDbMvg 0', _fb_, auto;font-size: 15.0787px;"><i class="fa fa-envelope"></i> hello@ree.com</span><br><br><br>
<h5 style="text-transform: uppercase;font-family: 'YACgEQzTv38 0', _fb_, auto;line-height: 1.42;letter-spacing: 0.3em;font-weight: 500;"><b>Core Expertise</b></h5><br>
<ul style="line-height: 1.4;letter-spacing: 0.05em;--head-indent: 1.3;font-family: 'YACkoJDbMvg 0', _fb_, auto;font-size: 15.0787px;">
<li>End-to-End ServiceNow Implementation </li>
<li>Functional and Technical expertise in ServiceNow ITSM and ITBM Applications (IPC, ITAM, Contract, Vendor Performance, SAM, PPM, Service Request and Knowledge Management)
Development, enhancement and support on ServiceNow Platform </li>
<li> Custom and Scoped Application development and enhancements.</li>
</ul><br><br><br>
<h5 style="text-transform: uppercase;font-family: 'YACgEQzTv38 0', _fb_, auto;line-height: 1.42;letter-spacing: 0.3em;font-weight: 500;"><b>Technical skils</b></h5><br>
<ul style="line-height: 1.4;letter-spacing: 0.05em;--head-indent: 1.3;font-family: 'YACkoJDbMvg 0', _fb_, auto;font-size: 15.0787px;">
<li>C, C++, Java, JavaScript, HTML, XML, CSS, REST </li>
</ul><br><br><br>
<h5 style="text-transform: uppercase;font-family: 'YACgEQzTv38 0', _fb_, auto;line-height: 1.42;letter-spacing: 0.3em;font-weight: 500;"><b>Certifications</b></h5><br>
<ul style="line-height: 1.4;letter-spacing: 0.05em;--head-indent: 1.3;font-family: 'YACkoJDbMvg 0', _fb_, auto;font-size: 15.0787px;">
<li>ServiceNow Certified System Administrator </li>
<li>Micro-certifications in Automated Test Framework </li>
<li>Micro-certifications in Enterprise Onboarding and Transitions </li>
</ul>
</div>
</div>
Thanks
Ramesh R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 08:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2021 05:28 AM
Hi Ramesh,
you can use this function for exporting to PDF,
function exportMyPage2PDF() {
var dialog = new GwtPollDialog('/your_ui_page_name.do?', JSON.stringify(null), 0, '', 'whtpexport');
dialog.on('beforeclose', function() {
window.setTimeout(function() {
$j('.download-report').focus();
}, 100);
});
dialog.execute();
}
Kindly mark helpful and mark as correct answer if it solves your query.
Thanks,
Priyatham.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 10:05 PM
Thanks for giving such very valuable information.