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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Adding .svg file in pdf
  FAQ FAQ  Forum Search   Register Register  Login Login

Adding .svg file in pdf

 Post Reply Post Reply
Author
Message
fdalex View Drop Down
Beginner
Beginner


Joined: 30 Oct 18
Location: France
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote fdalex Quote  Post ReplyReply Direct Link To This Post Topic: Adding .svg file in pdf
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 2772
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store