mirror of https://github.com/stelzo/typst.git
Fix pattern offset in PDF (#2985)
This commit is contained in:
parent
eb9dd539aa
commit
f3c39ac84a
|
|
@ -74,7 +74,7 @@ pub(crate) fn write_patterns(ctx: &mut PdfContext) {
|
||||||
resources_map.finish();
|
resources_map.finish();
|
||||||
tiling_pattern
|
tiling_pattern
|
||||||
.matrix(transform_to_array(
|
.matrix(transform_to_array(
|
||||||
transform.post_concat(Transform::scale(Ratio::one(), -Ratio::one())),
|
transform.pre_concat(Transform::scale(Ratio::one(), -Ratio::one())),
|
||||||
))
|
))
|
||||||
.filter(Filter::FlateDecode);
|
.filter(Filter::FlateDecode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue