How to use extracted %^{keywords} from pdf as seperate filetags in note

Hi @mshevchuk, I have ref template in a file as follows :

#+filetags: %^{keywords}

* %^{citekey}
:PROPERTIES:
:Custom_ID: %^{citekey}
:URL: %^{url}
:AUTHOR: %^{author-or-editor}
:NOTER_DOCUMENT: %^{file}
:NOTER_PAGE:
:END:

%?

which gives filestags as single comma-separated tag entry as
#+filetags: keyword1,keyword2,keyword3

How can I set these keywords as separate tag entries as
#+filetags: :keyword1:keyword2:keyword3:

Hi @prashantnag93 just use the Elisp functionality of Org-capture templates. Something like this:

#+filetags: %(format ":%s:" (mapconcat #'identity (split-string "%^{keywords}" "," t " ") ":"))

You can wrap the Elisp expression into a custom function for brevity.

Thank you @mshevchuk it worked for the citekey which has keywords but it give the following output for the empty keyword citekey
#+filetags: ::

And what do you want it to be?