Top | ![]() |
![]() |
![]() |
![]() |
void rsvg_handle_set_base_gfile (RsvgHandle *handle
,GFile *base_file
);
Set the base URI for handle
from file
.
Note: This function may only be called before rsvg_handle_write()
or rsvg_handle_read_stream_sync()
has been called.
Since: 2.32
gboolean rsvg_handle_read_stream_sync (RsvgHandle *handle
,GInputStream *stream
,GCancellable *cancellable
,GError **error
);
Reads stream
and writes the data from it to handle
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED
will be
returned.
Since: 2.32
RsvgHandle * rsvg_handle_new_from_gfile_sync (GFile *file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
);
Creates a new RsvgHandle for file
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED
will be
returned.
file |
a GFile |
|
flags |
flags from RsvgHandleFlags |
|
cancellable |
a GCancellable, or |
[allow-none] |
error |
[allow-none] |
Since: 2.32
RsvgHandle * rsvg_handle_new_from_stream_sync (GInputStream *input_stream
,GFile *base_file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
);
Creates a new RsvgHandle for stream
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED
will be
returned.
input_stream |
||
base_file |
[allow-none] | |
flags |
flags from RsvgHandleFlags |
|
cancellable |
a GCancellable, or |
[allow-none] |
error |
[allow-none] |
Since: 2.32
No flags are set. |
||
Disable safety limits in the XML parser.
Libxml2 has |
||
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 |