An easy to understand guide on how to create zugferd invoice with pdf sdk in VB.NET with this source code sample. What is ByteScout Premium Suite? It is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to create zugferd invoice with pdf sdk in your VB.NET application.
Want to save time? You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Premium Suite for create zugferd invoice with pdf sdk below and use it in your application. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Want to see how it works with your data then code testing will allow the function to be tested and work properly.
Our website gives trial version of ByteScout Premium Suite for free. It also includes documentation and source code samples.
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to attach a file to PDF document. ''' </summary> Class Program Shared Sub Main() ' Create new PDF document Dim pdfDocument = New Document() pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Load existing document pdfDocument.Load(".\Invoice.pdf") ' Attach ZUGFeRD XML file Dim fileAttachment As New Bytescout.PDF.FileAttachmentAnnotation(".\ZUGFeRD-invoice.xml", 0, 0, 0, 0) pdfDocument.Pages.Item(0).Annotations.Add(fileAttachment) ' Instruct PDF viewer applications to show attachment page on startup pdfDocument.PageMode = PageMode.Attachment ' Save document to file pdfDocument.Save("result.pdf") ' Cleanup pdfDocument.Dispose() ' Open result document in default associated application (for demo puropse) Dim processStartInfo As New ProcessStartInfo("result.pdf") processStartInfo.UseShellExecute = True Process.Start(processStartInfo) End Sub End Class