Page 1 of 1

Disabling DOCTYPE in SVG file conversion

Posted: Thu Feb 17, 2022 3:40 pm
by ucavic
Hello,

I was wondering if I could get some clarification on the following problem: our code is converting svg images, uploaded to a web server, to pdf, using the CreateGdPictureImageFromStream(stream, filename) function. Due to XEE security concerns, I would like to disable processing of DOCTYPE directives that can be embedded in the svg's xml. Usually, Xml parsers provide options for enabling/disabling directives when parsing Xml files.

Is something like this possible within GdPicture libraries? Any other options to achieve this?

Thank you for your reply!

Re: Disabling DOCTYPE in SVG file conversion

Posted: Mon Feb 21, 2022 6:04 pm
by Hugo
Hi there,

Thank you for your question.

Regarding this I have answered you in the ticket you have made contacting us directly.
I have mentioned there that we will look further into this and consider implementing such a feature which allows you to achieve what you are trying to do.
I would however need some sample files demonstrating this. I mentioned this also in the ticket you created.

I'll be waiting to hear back from you there.

Regards,
Hugo Cudd
Technical Support