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

āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™ • 12

  • @_poke_rock
    @_poke_rock 13 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē

    This Playlist is enough to satisfy the company needs

  • @greenhillsmarianopeligro8463
    @greenhillsmarianopeligro8463 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +2

    You are really greaaaat! Keep up the good work sir Jeet Saru!ðŸĨ°

    • @CodingDesign
      @CodingDesign  āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

      Thank you! for appreciating my work. Hope you'll show your same lâĪve & support. in the future too.

  • @ocin3752
    @ocin3752 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

    As always, another great video.

    • @CodingDesign
      @CodingDesign  āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

      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.

  • @VaibhavYawalkar
    @VaibhavYawalkar 9 āļŦāļĨāļēāļĒāđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™

    Thanks and Respect !

    • @CodingDesign
      @CodingDesign  8 āļŦāļĨāļēāļĒāđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™

      Hope this video was helpful.

  • @gamedark102
    @gamedark102 9 āļŦāļĨāļēāļĒāđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™

    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 ?

    • @CodingDesign
      @CodingDesign  8 āļŦāļĨāļēāļĒāđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™

      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.

  • @Krisler12
    @Krisler12 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

    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!

    • @CodingDesign
      @CodingDesign  āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +2

      Check out 🎎video's description. I do hope you'll show your same lâĪve & support to _My Channel_ in the 🕝future too.

    • @Krisler12
      @Krisler12 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

      Thank you! I subscribed and liked your video.