The magic way: Just ask your AI to create PDF documents with diagrams. The AI will automatically write beautiful documentation and convert it to PDF for you.
This extension is originally a fork of yzane/vscode-markdown-pdf. In this fork, the focus is on printing PDF files, not images. You'll find more support regarding the export to PDF with your VS Code ...