Skip to content
Discussion options

You must be logged in to vote

the import only accepts .xtemplate files, which are plain json text, and that is what the error is telling you. the importer reads the file as text and parses it as json, so a pdf fails on the very first character, which is the % from %PDF, and an .xnote note file is a zip archive, so it fails on the P from the zip header. neither format is converted anywhere in that code path, so there is no setting that makes a pdf import work.

if you look at the templates the app ships with, they are all .xtemplate json files with an xtemplate version field, a name, optional params, and an items list that describes what gets drawn on the page. the easiest way to make your own is to start from one of th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zentraveler001
Comment options

Answer selected by zentraveler001
Comment options

You must be logged in to vote
1 reply
@zentraveler001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants