mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
Adapt to pdf-writer update
This commit is contained in:
parent
8e700606bb
commit
9e0a34c80f
@ -318,7 +318,7 @@ impl<'a> PdfExporter<'a> {
|
||||
// Add the primary image.
|
||||
if let Ok((data, filter, color_space)) = encode_image(img) {
|
||||
let mut image = self.writer.image(id, &data);
|
||||
image.inner().filter(filter);
|
||||
image.filter(filter);
|
||||
image.width(width as i32);
|
||||
image.height(height as i32);
|
||||
image.color_space(color_space);
|
||||
@ -333,7 +333,7 @@ impl<'a> PdfExporter<'a> {
|
||||
drop(image);
|
||||
|
||||
let mut mask = self.writer.image(mask_id, &alpha_data);
|
||||
mask.inner().filter(alpha_filter);
|
||||
mask.filter(alpha_filter);
|
||||
mask.width(width as i32);
|
||||
mask.height(height as i32);
|
||||
mask.color_space(ColorSpace::DeviceGray);
|
||||
|
Loading…
x
Reference in New Issue
Block a user