Repository navigation
How to import my custom template #306
|
xnotes v.0.8.23(60) on Samsung Galaxy Tab S9 FE, Model: SM-X510, Android v.16 w/ Aug. 5, 2026 security patch.
Yes, there is already a "Lines" template. Yes, I can increase/decrease the spacing and change the background color. My intent is to create a custom default doc for writing client notes that includes some items that I check off. Importing a plain lined pdf was me just testing this feature. |
Replies: 2 comments 2 replies
|
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 those examples and edit the json in a text editor, then import the edited file. for the checklist you want to build, there is already a bundled example called Checklist that draws rows with a tick box and a ruled line, and it should already show up in the template picker alongside the built in ones. it also shows the pattern for text items, so you can add your fixed client note items as text entries in the items list, or in a group above the repeated rows, and they will be part of every page that uses the template. |
|
@zentraveler001 importing templates from PDF is not supported. xnotes only supports xtemplate which you can write yourself by reading the specification but its not recommended. In the latest release I have included instructions to design a custom template using ChatGPT or Claude - that would be much easier - you can also pass PDF or an Image to the AI and it will be able to generate an xtemplate from it |
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…