PDF generated by Code Execution cannot be passed back as input

Code execution and PDF document understanding are mutually exclusive in Gemini API, and this has been reported to the Gemini team over a year ago, see Code execution switched off if a PDF is attached