[Tex/LaTex] Problem with acronyms in figure caption using acro package

acroacronymscaptions

I'm using the acro package for manage the acronyms. I have been used the \ac{ } command in the figure captions, however, in the \appendix figures, under the following configuration (see MWE below), the acronym is not appearing in the long form even when it is called for the first time. How can I solve it?

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{acro}
\usepackage{blindtext}
\usepackage{setspace}
\DeclareAcronym{PVC}{
short=PVC,
long=Poli Vinil Chloride
}
\begin{document}
\onehalfspacing
\blindtext
\clearpage
\pagebreak
%
\appendix
\begin{center}
\vspace*{\fill}
\section*{Supplementar Files}
\vspace*{\fill}
\end{center}
\clearpage
\pagebreak
%%
\singlespacing
\section{Test}\label{sec:Esquemas-Filtros}
\acresetall
\begin{figure}[htb]
\centering
Dummy text
\caption{Some caption text to ilustrate the problem \ac{PVC}}
\label{fig:label}
\end{figure}
%
\clearpage
\pagebreak
\end{document}

enter image description here

Best Answer

Edit after @clemens's comment:

If you change your \ac{PVC} to \acf{PVC} you have the same results as with my below code (for this specific example). But may be some day we will learn more from a new better answer...

Old answer:

You can redefine the declare acronym command to save a full name (I call it \ACROfull{} for every ACRO and use it instead of ac)

Before any declaration of acronym place this code:

\let\oldDeclareAcronym=\DeclareAcronym
\def\saveac#1{\xdef\temp{\acl{#1} (\acs{#1})}\global\expandafter\let\csname#1full\endcsname\temp}
\long\def\DeclareAcronym#1#2{\oldDeclareAcronym{#1}{#2}\saveac{#1}}

Then in your caption you can call \PVCfull{} instead of \ac{PVC} and it will print the same as \ac{PVC} out of the caption.

For some reason captions forbids the expansion of acronyms in their environment as far as I understood by trying.

Of course you could just write inside your caption: \acl{#1} (\acs{#1}) instead of all the above declarations and redeclarations.