Print Page | Close Window

Adding .svg file in pdf

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3625
Printed Date: 29 Mar 24 at 2:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Adding .svg file in pdf
Posted By: fdalex
Subject: Adding .svg file in pdf
Date Posted: 30 Oct 18 at 11:18AM
Hi,
Is there a way to add a .svg file in the pdf without converting the svg to an image format ? I know there are functions to draw vectors with debenu ( https://www.debenu.com/docs/pdf_library_reference/VectorGraphics.php ), but i can't find a way to add a svg file inside the pdf (jpg or png work fine, but I need svg for quality :) ). If we can't add the svg directly, maybe we can read the xml data inside the svg and draw it with debenu functions ?
If anyone know ... :) I'm working on a PHP project with debenu to manage pdf.

Thanks



Replies:
Posted By: Ingo
Date Posted: 31 Oct 18 at 10:28PM
Hi Alex,

regarding the svg-type QuickPDF offers only one function: AddSVGAnnotationFromFile.
I don't think that it will feed your needs...
https://www.debenu.com/docs/pdf_library_reference/AddSVGAnnotationFromFile.php

Here's a java sample about how to convert svg to jpg.
Perhaps this is a way you can go?
http://thinktibits.blogspot.com/2012/12/Batik-Convert-SVG-to-JPEG-Java-Example-Program.html

Here's a c#-related solution, too:
https://stackoverflow.com/questions/6254422/convert-svg-to-png-or-jpeg

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk