forked from MapComplete/MapComplete
Fix: decent PDF-export
This commit is contained in:
parent
905f796baa
commit
de20b00b8f
15 changed files with 619 additions and 1396 deletions
6
test.ts
6
test.ts
|
@ -23,9 +23,11 @@ async function testPdf() {
|
|||
SvgToPdf.templates["flyer_a4"].pages.map((url) => Utils.download(url))
|
||||
)
|
||||
console.log("Building svg")
|
||||
const pdf = new SvgToPdf("Test", svgs, {})
|
||||
const pdf = new SvgToPdf("Test", svgs, {
|
||||
freeComponentId:"extradiv"
|
||||
})
|
||||
new VariableUiElement(pdf.status).AttachTo("maindiv")
|
||||
await pdf.ConvertSvg("nl")
|
||||
await pdf.ExportPdf("nl")
|
||||
}
|
||||
|
||||
testPdf().then((_) => console.log("All done"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue