Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Adding .svg file in pdf |
Post Reply ![]() |
Author | |
fdalex ![]() Beginner ![]() Joined: 30 Oct 18 Location: France Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store