Unlock Protected Pdf

I have looked into that, but I am not sure if it fits this case. I cannot edit/add flows to the actual sharepoint list, so I cannot use anything on the sharepoint list as a trigger, it has to be triggered in Power Apps itself for this project. I am also not using libraries for these files, only as records in a sharepoint list. Would the flow conversion still work as intended if I were to make a button trigger within the app, and then only save the converted file as a temporary variable within the app?