Junior Member
Join Date: Dec 2018
Location: Italy
Posts: 8
|
Hello everyone!
Since I'm a software developer, I figured that working on an xml in - pdf out plugin should be easy, and I set myself to the task. The project is at a point where I'd like to share my progress with you guys, so here's the status: Edit:
What works: Multi page character sheet support NEW!! Load and work with images instead of pdf files NEW!! Display existing form fields (text and checkbox) Add, delete, resize, move form fields Dynamic font size in text fields Save as pdf with editable form fields What partially works: Assign value to field ( incomplete menu, only a couple options do something) What will be added: Save form fields position, size, and character sheet attribute as a template Pdf fields recognition (with naming convention) to allow autofill Unrecognized fields hint (different color highlight) Options to bind unrecognized fields to character sheet attributes How it looks like: GitHub project page: You can look at the source code here Last edited by Obi Wan; December 26th, 2018 at 06:29 AM. Reason: Project status update |
#1 |
Senior Member
Join Date: Sep 2015
Posts: 435
|
So, if I understand correctly, you're planning to read the XML document that is embedded inside the portfolio file (i.e., a ZIP file), or perhaps using the File -> Save Custom Output... menu option and choosing XML, and produce a PDF with editable form fields as the output? Using XML:FO, I presume?
That's pretty ambitious, but I'd love to see something like that working. The current approach of using the Ancient One's character sheet (which uses JavaScript to parse the XML data) is quite usable and I like how it executes within the browser and thus doesn't require any other pieces, but the necessary information regarding containers and what are inside them is missing from the XML. Which makes inventory management a PITN. But anything that encourages people to file bug reports on how the XML output of HL doesn't include necessary information is a win in my book, because we're more likely to see it corrected... In any case, thanks for your effort! |
#2 |
Senior Member
Join Date: Jan 2011
Posts: 455
|
Will the final sheet be in English or multiple languages?
|
#3 |
Junior Member
Join Date: Dec 2018
Location: Italy
Posts: 8
|
Quote:
You're welcome bro, it's becoming quite the journey but it's also fun!! As of now it's only in English, but multilanguage support is definitely doable, maybe with a little community effort - so that translations are accurate. What can't really be done is translating the xml output though, as that would mean translating the whole HL content .. something I really wish Lone Wolf would do in the future |
|
#4 |
Junior Member
Join Date: Dec 2018
Location: Italy
Posts: 8
|
Heya all, quick status update from your friendly neighborhood Jedi:
I've made one major change in how you assign values to the fields: I've switched from a context menu to a side panel with an option tree. This way you don't have to navigate many levels every time you want to assign a deeply nested property, say weapons->melee->dagger->attack type->ranged Also, the side panel is collapsible via the handy push-pin button on the upper right. I also made a bunch of improvements to the code, but that's nerdy under-the-hood stuff that's not relevant for you folks :P As always, the source code is available ahere I intend to release something that you all can try, but no ETA for now |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Happy you're progressing. Nice work!
|
#6 |
Junior Member
Join Date: Sep 2010
Posts: 2
|
I can help if you need a german translation of the sheet
|
#7 |
Senior Member
Join Date: Dec 2014
Posts: 124
|
Any plans to support Spheres of Power/Spheres of Might (once the latter is released coming year) as well?
|
#8 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
Do these appear in the XML output as distinct sections?
Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
#9 |
Senior Member
Join Date: Dec 2014
Posts: 124
|
From a test export I can find something like:
Quote:
|
|
#10 |
|
|