Shortcut automation to make PDF

Hi! I am using the Automations in shortcuts in macOS 26 dev beta 1 and I have all my shortcuts working except this one. Why?(photo included). All the others are very similar except they do other things not make pdf. They work. Why does this one not. I tried changing the extension to .doc, or .docx instead of doc and docx I tried using if name ends in .docx I tried file filtering nothing. Any ideas? Thanks!

oops sorry here it is

well it works now I saved a docx from pages but the pdf is garbled symbls

Shortcut automation to make PDF
 
 
Q