Exponent
Exponent

Reputation: 94

Embed SVG data in PDF

I want to create PDF files containing SVG images. The Images should be embeded as vector graphics. Using this project (nanopdf) as a template, i tried to write a Programm for creating PDF files. Adding text worked, but embeding vector graphics not.

Is it possible to directly insert the SVG data into the PDF Code? Or have the SVG instructions be converted into PDF commands or something else? If this is not easily possible, I would be looking for an open source library, which can do this (preferably written in a .NET language).

Upvotes: 3

Views: 2329

Answers (2)

Pravin Joshua
Pravin Joshua

Reputation: 11

You can use the Syncfusion converter for converting SVG to PDF files.The converted PDF will contain vector graphics as per your requirement. Please check

Working with Document Conversion

Upvotes: 1

Kevin Brown
Kevin Brown

Reputation: 8867

You can use the Batik library from Apache for this https://xmlgraphics.apache.org/batik/ or use Batik with Apache FOP for a complete solution for text and SVGs

Upvotes: 0

Related Questions