Search found 4 matches

by fern
Wed Mar 25, 2020 7:50 am
Forum: General topics
Topic: Rename Documents
Replies: 15
Views: 922

Re: Rename Documents

Is it possible to retain the filetype extension while renaming? The extension is dropped in my workflow. Here's my current code: {% if document.metadata_value_of.factuur_nummer %} {{ document.metadata_value_of.document_datum|cut:"-" }}_{{ document.metadata_value_of.bedrijf }}_{{ document.document_ty...
by fern
Wed Mar 25, 2020 7:18 am
Forum: General topics
Topic: Rename Documents
Replies: 15
Views: 922

Re: Rename Documents

Thanks for your information all - the cut statement works for me!

I really like Mayan and will expore django a little more.
by fern
Tue Mar 24, 2020 5:12 pm
Forum: General topics
Topic: Rename Documents
Replies: 15
Views: 922

Re: Rename Documents

I managed to have the workflow rename after uploads and get the name like <yyyy-dd-mm>_<documenttype>.<file_extension> where the date is a custom datefield documentdate that I fill. How do I get rid of the dashes in the date format ? Currently I get a file named something like 2020-03-24_invoice.pdf...
by fern
Sat Mar 21, 2020 5:51 pm
Forum: Issues or Errors
Topic: Tesseract line in Github demo YML
Replies: 1
Views: 37

Tesseract line in Github demo YML

Hi, New on the forum as I am discovering Mayan. I managed to get it running on docker using docker compose and the sample yml posted on GitHub (https://github.com/mayan-edms/Mayan-EDMS/blob/master/docker/docker-compose.yml). I wanted to add OCR and after some tinkering added the following two lines ...