Flags

Details

class Rsvg.HandleFlags(value)

Bases: GObject.GFlags

FLAGS_NONE = 0

No flags are set.

FLAG_UNLIMITED = 1

Disable safety limits in the XML parser. Libxml2 has `several

limits <https://gitlab.gnome.org/GNOME/libxml2/blob/master/include/libxml/parserInternals.h>`__ designed to keep malicious XML content from consuming too

much memory while parsing. For security reasons, this should only be used for trusted input!

New in version 2.40.3.

FLAG_KEEP_IMAGE_DATA = 2

Use this if the Cairo surface to which you are rendering is a PDF, PostScript, SVG, or Win32 Printing surface. This will make librsvg and Cairo use the original, compressed data for images in the final output, instead of passing uncompressed images. This will make a Keeps the image data when loading images, for use by cairo when painting to e.g. a PDF surface. For example, this will make the a resulting PDF file smaller and faster. Please see `the

New in version 2.40.3.