Thanks for clarifying.
The Gravity Forms entry only saves the URL (and various meta data) of the post image that is originally uploaded and stored in the Gravity Forms upload directory. Gravity Forms don’t currently store a reference to the Media ID permanently, and it appears to only be available in the entry during the initial submission. The entry only stores the post ID permanently.
That means you’ve two options to get the information you need for the PDF:
1. Use the Post ID to get an array of all images attached to the post and select the one you are interested in displaying.
2. During form submission (using the undocumented hook gform_pre_handle_confirmation
), update the stored database Post Image field entry data with the temporary entry data (using the GFAPI), which includes the media ID. You can then parse this info and display the correct sizes media in the PDF using this ID.
Which ever option you decide to use, you’ll need to hook into https://docs.gravitypdf.com/v6/developers/filters/gfpdf_pdf_field_content to override the markup generated for the post_image
field type.
I hope this information helps you get the results you’re looking for.