mirror of
https://github.com/typst/typst
synced 2025-05-13 12:36:23 +08:00
Improved PDF writing internals 🔨
This commit is contained in:
parent
26f3b80826
commit
4e811c5690
@ -77,7 +77,7 @@ impl<W: Write> WritePdf for W {
|
|||||||
for content in &page.contents {
|
for content in &page.contents {
|
||||||
writer.write_obj(id, &Text::new()
|
writer.write_obj(id, &Text::new()
|
||||||
.set_font(1, 13.0)
|
.set_font(1, 13.0)
|
||||||
.move_pos(108.0, 734.0)
|
.move_line(108.0, 734.0)
|
||||||
.write_text(content.0.as_bytes())
|
.write_text(content.0.as_bytes())
|
||||||
.to_stream()
|
.to_stream()
|
||||||
)?;
|
)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user