Link Search Menu Expand Document

Create Invoice PDF from HTML - VB.NET

PDF SDK sample in VB.NET demonstrating ‘Create Invoice PDF from HTML’

invoice.html
<html>

<head>
  <style>
    * {
      font-family: 'Times New Roman', Times, serif;
      font-size: 20px;
      line-height: 30px;
    }

    table {
      width: 100%;
      border: 0px;
      line-height: 20px;
    }

    h2 {
      font-size: 30px;
      line-height: 40px;
    }
  </style>
</head>

<body>

  <table>
    <tr>
      <td>
        <img
          src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcEAAABeCAYAAABb/K/KAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAIExJREFUeF7tXX3wncVVZuRjoBAKKZkEAjSBQBQsmA6hAgUKSCFVOgTtUIOjAbECWqSWKVKQ1ikgQ4X+iECHTgRMm7ZAqhn5DF8iBRSnMB1KKa1htIAOMv0jfnVgsF7Pc+fdO3v37p5z9n3vDfeXPpl5B5K7u+fss7vnY8/Z3e224x8iQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRGCbQ+Dhf+rtIN8i+U6R73L5ro6+c+X/j5Nvr0l1XNpe0NAGrZg2/h88LQWPk6LPdokAEZgcArJ2d27WcE6+XNSs8YnJl1LPINMa2bYqI3cCX5A9O08One22m1Z8JtnnqWi7UXzHy383yPeGfD3Ht0XKrJHv8K6dkDaOrKQNH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FpxGdMXZudzSwStk+RL5cCf7r8O5TeyDVDY+oqjhigfSzcHH3wtVS+cSqoMbHOZogAEXAgAMUB7/TyzBq/qJE9eznaGWcR0INsyfEEOQSFB55xJGrSf6YRn0n3me0TASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAI/LQg8P/CM5s1TbdqrgAAAABJRU5ErkJggg==" />
      </td>
      <td>
        <h2>INVOICE</h2>
      </td>
    </tr>
  </table>
  <br>
  <table>
    <tr>
      <td>
        <h4>COMPANY NAME</h4>
      </td>
      <td></td>
    </tr>
    <tr>
      <td>
        Address
      </td>
      <td>
        DATE
      </td>
    </tr>
    <tr>
      <td>
        Phone, fax
      </td>
      <td>
        INVOICE #
      </td>
    </tr>
    <tr>
      <td>
        E-mail
      </td>
      <td>
        FOR
      </td>
    </tr>
  </table>
  <br>
  <table cellpadding="5" cellspacing="0" border="1" style="border: solid black 1px">
    <thead>
      <tr>
        <th style="text-align: left">
          <strong>Description</strong>
        </th>
        <th style="text-align: right;">
          <strong>Quantity</strong>
        </th>
        <th style="text-align: right;">
          <strong>Price</strong>
        </th>
        <th style="text-align: right;">
          <strong>Amount</strong>
        </th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td style="text-align: left">Description for item 1</td>
        <td style="text-align: right">###</td>
        <td style="text-align: right">$$$.$$</td>
        <td style="text-align: right">$$$.$$</td>
      </tr>
      <tr>
        <td style="text-align: left">Description for item 2</td>
        <td style="text-align: right">###</td>
        <td style="text-align: right">$$$.$$</td>
        <td style="text-align: right">$$$.$$</td>
      </tr>
      <tr>
        <td style="text-align: left">Description for item 3</td>
        <td style="text-align: right">###</td>
        <td style="text-align: right">$$$.$$</td>
        <td style="text-align: right">$$$.$$</td>
      </tr>
      <tr>
        <td style="text-align: left">Description for item 4</td>
        <td style="text-align: right">###</td>
        <td style="text-align: right">$$$.$$</td>
        <td style="text-align: right">$$$.$$</td>
      </tr>
      <tr>
        <td style="text-align: left">Description for item 5</td>
        <td style="text-align: right">###</td>
        <td style="text-align: right">$$$.$$</td>
        <td style="text-align: right">$$$.$$</td>
      </tr>
    </tbody>

  </table>

  <br><br>
  <h3 style="text-align: right">
    Signature:
    <u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u>
  </h3>


</body>

</html>
Module1.vb
Imports System.Drawing.Printing
Imports Bytescout.PDF.Converters

Module Module1

    ''' <summary>
    ''' This example demonstrates how to create invoice from HTML.
    ''' </summary>
    <STAThread>
    Sub Main()

        Using converter As New HtmlToPdfConverter()

            converter.PageSize = PaperKind.Letter
            converter.Orientation = PaperOrientation.Portrait

            ' Convert input HTML to output pdf
            converter.ConvertHtmlToPdf("invoice.html", "result.pdf")

        End Using

        ' Open result file in default PDF viewer
        Process.Start("result.pdf")

    End Sub

End Module

Download Source Code (.zip)

Return to the previous page Explore PDF SDK


Copyright © 2016 - 2021 ByteScout