You can't directly convert a Google Docs document into an
editable PDF within Google Docs itself. However, you can use a Google Workspace
Marketplace add-on called "Fillable Document" to create live fillable forms from your Google
Docs, which can then generate merged documents as PDFs.
Alternatively, if you have a PDF that already contains digitally added fillable form fields, you can
fill it out directly in Google Drive.
You can also save your Google Doc as a standard (non-editable) PDF by going to "Print" and
then selecting "Save as PDF".