I printed this page into a PDF file, by either Ctrl+P in chrome browser, or command
google-chrome --headless --print-to-pdf https://towardsdatascience.com/10-common-software-architectural-patterns-in-a-nutshell-a0b47a1e9013
But the PDF file doesn't have the diagrams in the webpage, e.g.
I was wondering what I can do about the problem? Alternatively, what are some other ways which can print the whole webpage into a pdf file?