-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Cannot run addon without Nix. #3
Comments
You need to remove the |
Okay, thank you for that @eikek So I wasn't able to get the trivial runner running (never actually heard of this project or runner and couldn't find information about it), so I installed docker, their repos, and set it up for the docspell user. I still had another permissions error in the job queue but was able to resolve it with the answer in this thread for anyone looking for help on this in the future: So I did get it running correctly and I consider this issue "solved" - however it didn't help me because the root problem is really not being able to process the metadata on the file. Actually the converted PDF I think is more garbled because it appended the incorrect metadata after rotating it automatically to the file, too. It may not be saveable after rotation. Consider this;
So I guess I could upload, rotate the image, save the converted pdf, delete the old entry, upload the new pdf,.. but at scale this is quite an issue. So I guess my question is... Anyway to not make the converted pdf rotate in the first place ^^; - is there any setting in joex config where I can tell the proper component to not rotate the converted PDF or to try and "find" The correct orientation? Or could we go about an addon to reprocess the metadata of the rotated file...? What do you think? I guess this brings me back to Issue #1 - maybe merge issues? |
hi, in theory, the rotate addon would reprocess the rotated file. not sure why this doesn't work. |
Hi Eikek,
Okay I checked it out - it turns out it was just a cache issue. The rest
server rotates the image and pdf preview after the addon job, but
doesn't update the metadata until you refresh the page. No big deal.
So that solves a big part of it for the addon! Also ocrmypdf has a
`--rotate-pages` option, I will see if I can get it to work.
That leaves me with one question. I am wondering if I wanted to make an
add-on that gets the text output from the yellow "View Extracted Data"
area and reformat it through a bash script and put it back in that tab,
how would I go about that?
I can do this directly in ocrmypdf with `ocrmypdf --sidecar output.txt
input.pdf` and piping the output.txt to a bash script that takes
output.txt and formats it.
Maybe the add-on could just add the output to the notes section?
So something like;
# Addon takes the current pdf input.pdf
# Addon runs ocrmypdf on it with --sidecar output.txt input.pdf
# That output is stored somewhere temporairly
# Whatever script I want to cleanup that output.txt runs on the script
(this would be subject to some parameters)
# The final output.txt is added to notes.
Is something like this feasible? I know how to do it in theory entirely
on the system, just not how I would hook or find the "current item" for
the addon, the input pdf, or add it to the notes.
…On 1/26/25 00:02, eikek wrote:
hi, in theory, the rotate addon would reprocess the rotated file. not
sure why this doesn't work.
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAIX63B5TC64N7O4V2EF7BD2MORP7AVCNFSM6AAAAABVZLMRFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJTHE4TINBUG4>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @eikek
I'm having trouble getting this addon to run without installing nix. The issue I'm having is that images uploaded to Docspell become converted to PDFs for Tesseract, and those pdfs are always being rotated incorrectly automatically.
So I tried installing the rotation addon to fix the rotated pdf and reprocess the metadata. However, even though I manually installed qpdf and xpdf, I am unable running into the above output where I can't run the addon without nix.
I used the useage guide, but can you help me get the plugin running on a basic Debian install?
The text was updated successfully, but these errors were encountered: