Open andbez opened 3 years ago
enscript
has some issues with UTF-8 encoded files.Sorry, did not mean "editing the document", but the edit-view in paperless with the preview-frame of the document. The Preview-Frame is empty. Please see attached Screenshot.
Ah, okay. For some reason I though you want to edit the actual .txt document with paperless.
Preview for all file types will be there, eventually.
Gotenberg supports txt
files; we could add it there. Alternatively, we could create a txt2pdf converter using what's already present.
This is a basic feature and I don't want to use an optional service to provide that.
Would you find it reasonable to install a2ps
inside the image? (It's available in the default repos).
A test with a LICENSE.txt
I had laying around, gave this:
$ a2ps LICENSE.txt -R -=book --header="Generated by Paperless-ng" -o LICENSE.ps
[LICENSE.txt (plain): 3 pages on 3 sheets]
[Total: 3 pages on 3 sheets] saved into the file `LICENSE.ps'
$ ps2pdf LICENSE.ps LICENSE.pdf
Result:
(NB: ps2pdf
is already installed)
Sure, either that or enscript
.
I'm just having issues with different file encodings when special characters are used (äöüßèéê etc)
You're right; I now tried this tool, and it seems to work: txt2pdf
It's also written in Python.
Txt-Files can be uploaded to paperless-ng via Webfrontend and will be consumed.