diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-18 19:04:46 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-18 19:04:46 +0200 |
| commit | 35302d20047c58baa99065a4574eafe1920e7be6 (patch) | |
| tree | b9c7dbf3e15c24cc063da70dbc2fa3d5befa41d4 /src/export/pdf | |
| parent | bce83d330f0efc0f8cdd6fb01d8244cb9f01ac27 (diff) | |
Handle SVG with text
Diffstat (limited to 'src/export/pdf')
| -rw-r--r-- | src/export/pdf/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export/pdf/image.rs b/src/export/pdf/image.rs index 906737de..e6eaa9c9 100644 --- a/src/export/pdf/image.rs +++ b/src/export/pdf/image.rs @@ -17,7 +17,7 @@ pub fn write_images(ctx: &mut PdfContext) { // Add the primary image. // TODO: Error if image could not be encoded. - match image.decode().unwrap().as_ref() { + match image.decoded() { DecodedImage::Raster(dynamic, format) => { // TODO: Error if image could not be encoded. let (data, filter, has_color) = encode_image(*format, dynamic).unwrap(); |
