The sample shows instructions and algorithm of how to convert svg to pdf with pdf sdk and how to make it run in your C# application. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can convert svg to pdf with pdf sdk in C#.
The following code snippet for ByteScout Premium Suite works best when you need to quickly convert svg to pdf with pdf sdk in your C# application. Follow the instructions from scratch to work and copy the C# code. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
ByteScout provides the free trial version of ByteScout Premium Suite along with the documentation and source code samples.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.Diagnostics; using System.Drawing.Printing; using Bytescout.PDF.Converters; namespace ConvertSvgToPdf { class Program { [STAThread] static void Main(string[] args) { // HtmlToPdfConverter can convert HTML files with SVG content, or SVG files directly. using (HtmlToPdfConverter converter = new HtmlToPdfConverter()) { converter.PageSize = PaperKind.A4; converter.ConvertHtmlToPdf("drawing.svg", "result.pdf"); // You can also pass a link instead of the input file: //converter.ConvertHtmlToPdf("http://somesite.com/files/drawing.svg", "result.pdf"); } // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }
60 Day Free Trial or Visit ByteScout Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: