I tried to download https://en.wikipedia.org/wiki/Java_(programming_language) as a PDF file. I clicked "Download as PDF", and downloaded the generated .pdf file.
But the Java code part in the .pdf file was rendered as ordinary text, and lumped up together (no syntax indent and no highlighting which appear in the web page).
Is there a solution for that?