summaryrefslogtreecommitdiff
path: root/src/export/pdf
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-18 19:04:46 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-18 19:04:46 +0200
commit35302d20047c58baa99065a4574eafe1920e7be6 (patch)
treeb9c7dbf3e15c24cc063da70dbc2fa3d5befa41d4 /src/export/pdf
parentbce83d330f0efc0f8cdd6fb01d8244cb9f01ac27 (diff)
Handle SVG with text
Diffstat (limited to 'src/export/pdf')
-rw-r--r--src/export/pdf/image.rs2
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();