Disabling DOCTYPE in SVG file conversion
Posted: Thu Feb 17, 2022 3:40 pm
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!
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!