Closed farling42 closed 1 year ago
Each journal entry created by PDFoundry has the following in its flags:
flags.pdfoundry.PDFData = { cache: true code: "CTS" name: "Claim the Sky" offset: 2 type: "static" url: "userdata/cyphersystem/Claim_the_Sky-2021-11-02.pdf" }
We can convert this to a JournalEntryPage:
entry.createEmbeddedDocuments("JournalEntryPage", [{ name: "${orig.name}", type: "pdf", flags: { "pdf-pager" : { pageOffset: ${orig.offset} }}, src: "${orig.url}" }]);
Automatically done at startup in V0.2.0 for journal entries in the world, but not for compendiums.
Each journal entry created by PDFoundry has the following in its flags:
We can convert this to a JournalEntryPage: