Conversation
|
That's awesome, @jeremybmerrill! Welcome back to Tabuland :) I love the feature. My only comment is that I'm not sure about the save-template → download-template → upload-template workflow. The only use case that I can think of for uploading a template from a file is sharing them among users. Besides, the template list and upload form it kind of clutter the home page.
Agree. Take a look at what I implemented in the Java rewrite of Tabula that I PoC'd a few months ago: https://github.com/tabulapdf/tabula-web-java/blob/master/src/main/java/technology/tabula/tabula_web/workspace/WorkspaceDAO.java |
|
Yeah, we could totally move the template library stuff to a new page. I do think sharing templates among users is a feature we'd like to be able to support; that's exactly what I had in mind. It's optional though: you don't have to download/upload if you want to use the templates within your install. |
…tabula-java-1.0.0
^^ via email. What did you mean by this? Is the "set of rectangular areas" the cells? (Completely "manual" extraction, obviating the need for any extraction algorithm at all? Also: were I to move the template library stuff to a new page, what do you think about merging this for the next release? I totally agree that there's a lot more that could be done, but I think this first pass could benefit a lot of users. |
Yes, pretty much. I guess the algorithm would propose a segmentation that the user would be able to edit with the UI.
Would love to. Can you merge |
|
with f36d3ba I've moved the My Templates page to its own page (off of the front page). I think this is a minimally-viable feature improvement. There's obviously a lot to be done around making the templates even more powerful, but I think this is a start. |
webapp/tabula_web.rb
Outdated
| return [job_batch, file_id] | ||
| end | ||
|
|
||
| def list_templates |
There was a problem hiding this comment.
Hey @jeremybmerrill
Can we move this to the new Tabula::Workspace class (in my PR)? I'd love to include this feature in our next release.
There was a problem hiding this comment.
You can just merge tabula-java-1.0.0 into this branch and take it from there.
There was a problem hiding this comment.
I'd be happy to, but I don't see Tabula::Workspace?
There was a problem hiding this comment.
I guess the integration would be easier if you make a new PR against tabula-java-1.0.0 instead of master.
|
Deleted my workspace folder, ran Tabula from source, got an error when uploading a document: |
|
I'm not quite done poking at this yet, but will address. |
…button if there are any selections on the page
|
closing to propose merge into tabula-java-1.0.0 |
this set of commits adds UI and serverside ability to
this incorporates @cheapsteak's #669 PR. this will close the feature requested in #608, #483, #93, #505.
The "template" is the same as the JSON output you can already download from the export view. Template metadata is recorded in workspace.json, which now has a new format (with stuff to automatically convert existing workspace.json files).
@jazzido @mtigas, anyone else, wanna take a look? (I already showed Mike IRL)
this is kind of just a first-stab at the problem, there's a bunch of enhancements that could be done now: