mirror of https://github.com/stelzo/typst.git
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…
Reference in New Issue