HTML to PDF - Convert & Export HTML Table to PDF Using JavaScript
āļāļąāļ
- āđāļāļĒāđāļāļĢāđāđāļĄāļ·āđāļ 3 āļŠ.āļ. 2024
- With vanilla (pure) JavaScript we'll convert HTML table to PDF. And most importantly I'll show you how to convert & export any specific part (element) of HTML Document to PDF with vanilla JavaScript.
Subscribe my channel for more helpful videos:
ð / @codingdesign
âTimestamps
00:00 Intro
00:42 HTML
01:46 CSS (Drop-Down Menu With Pure CSS)
12:07 JavaScript (Convert HTML Table to PDF)
18:47 Outro
ðŽHTML Table UI Design
âķ âĒ HTML Table UI Design W...
ðSource Code:
â github.com/JeetSaru/Responsiv...
ð Browser : Brave V.1.40 (Chrome V.103.0)
ð Code Editor : VS Code
ð Extensions : Live-server
#htmltable #pdf #fileconverter
This Playlist is enough to satisfy the company needs
You are really greaaaat! Keep up the good work sir Jeet Saru!ðĨ°
Thank you! for appreciating my work. Hope you'll show your same lâĪve & support. in the future too.
As always, another great video.
I appreciate that. And I'm expecting same lâĪve & ðĪsupport in the ðfuture too. Because it's really difficult to continue as TH-cam Content Creator.
Keep ðmotivating.
Thanks and Respect !
Hope this video was helpful.
Great tutorial but doesn't work if you have more than 9 entries in the table it seems, I had 15 in mine and when downloading the PDF it only shows the first 9 entries no matter what :/ do you have a solution to this issue ?
Now you've to update CSS & JS code
ðIn CSS File, add(â)
@media print {
.table, .table__body {
overflow: visible;
height: auto !important;
width: auto !important;
}
}
ðĒIf you want to customize page then you can use @page rule.
@page {
size: landscape;
margin: 0;
}
â But it's not compulsory later on while printing you can provide custom value for your page but make sure your page's "LAYOUT" must be "LANDSCAPE".
ð In JS File,
update(â) "html_code" VARIABLE by adding(â) extra text "" at top.
â It's important to specify your document type as HTML5.
Reason just check by adding(â) and removing(â) this text.
Please post your github link so we can download the files because it is hard to write them by hand while watching the video too. Thank you in advance!
Check out ðŽvideo's description. I do hope you'll show your same lâĪve & support to _My Channel_ in the ðfuture too.
Thank you! I subscribed and liked your video.