Replies: 1 comment
-
|
Currently you cannot extract neither filename nor its extension. But it is really great idea to have this functionality and also it is easy to implement. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Just installed PaperMerge and, first of all, learning about it.
I am now reading about path templates, and I wonder if file extension is part of document attributes.
For example, let's say a structure where I have a folder for house receipts:
/home/house/receipts/And I have custom fields for Shop and Date. Some receipts are in pdf format, and other are in jpg, say:
img001.jpg with cf['Shop']="Lidl" and cf['Date']=2025.03
0344598.pdf with cf['Shop']="Zara" and cf['Date']=2025.02
I want both of them in the same folder, I understand I can make a path template like:
/home/house/receipts/{{document.cf['Shop']}}-{{document.cf['Date']}}.???what should I use for the file extension, to keep the same of the document?
Thanks in advance.
BTW, great app!!!
Beta Was this translation helpful? Give feedback.
All reactions