You want to migrate a Smart Form to a PDF-based form.
This function is integrated into the Smart Forms transaction, and you call it there.
See also:
Migrating Smart Forms in the Smart Forms documentation