Is it possible to export file to pdf with embedded pdf merged

Things I have tried

I’ve installed Pandoc. But it still just gives the link, not embedded file.

What I’m trying to do

I’m looking for a way to generate PDFs from an obsidian md file with embedded PDFs in the document. Is there a way for that?

I’m open to LaTeX solutions or python.