

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. NET PDF and other File Formats framework. If you are new to Syncfusion, you can try our 30-day free trial to check out our. NET.įor current customers, you can check out our File Formats from the License and Downloads page. NET PDF documentation that shows how to configure the PDF Library in. NET PDF library’s feature tour page to know about its other groundbreaking feature representations. I hope you enjoyed learning about how to convert image to PDF in the C# and VB.NET. Refer to link to learn about generating and registering Syncfusion license key in your application to use the components without trail message. Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Refer here to explore the rich set of Syncfusion Essential PDF features. Take a moment to peruse the documentation for working with images, where you will find other options like inserting, replacing image in PDF document, image pagination and image masking.Īn online sample link demonstrating the use of Inserting images in PDF. 'This will open the PDF file so, the result will be seen in default PDF viewerĪ complete working sample can be downloaded from ImageToPDFSample.zipīy executing the program, you will get the PDF document as follows. Imports : Imports : Dim WithEvents printDoc As New PrintDocument : Private Sub PrintPage(ByVal sender As Object, ByVal ev As PrintPageEventArgs) Handles printDoc. Graphics.DrawImage(image, New RectangleF(0, 0, pageSize.Width, pageSize.Height)) 'Getting page size to draw the image which fits the pageĭim pageSize As SizeF = page.GetClientSize()ĭim graphics As PdfGraphics = page.Graphicsĭim image As New PdfBitmap("Autumn Leaves.jpg")
