I resolved to doing something similar.
I used the Spire.PDF nuget package to write myself some C# code which I turned into an activity.
I’ll release the activity on the marketplace once it’s somehow production ready, but if anyone’s interested, I basically used this code: