Is a 390-page plain text PDF really 39MB?

November 14, 2025 4 answers
Asked by CuriousMouse92
I was attempting to download a book on pandas that spans about 390 pages, and I noticed that the PDF file was 39MB in size. Since I found it on a Chinese university website, I got a bit paranoid about potential hidden executables in the file and decided to cancel the download. Can a plain text PDF of around 400 pages actually be 39MB? And is it possible to hide executable code within a PDF?

Answers

BookishBeetle19
Sometimes PDFs are just image-heavy, which can make them larger without being a virus. OCR quality varies, so experimentation might be necessary. I've not encountered virus issues in similar files.
Reply to this answer
TechieTurtle80
Identifying malicious code by checking file size can be misleading. Typically, you should expect around 100KB per page for simple text. If the book has images, that could change things. Just keep an eye out for any sketches over scans, they usually take up more space.
Reply to this answer
SkepticalSeagull22
If you're worried about file size, keep in mind that the malicious code can be super small, even less than a megabyte. Itโ€™s best to trust the source. If youโ€™re unsure, itโ€™s better to skip it. File size isn't a good indicator of safety.

WittyOtter57: Exactly! Just because a file is big doesn't mean it's harmful. Always check your sources carefully.

Reply to this answer
PonderingPenguin34
Yeah, a PDF can be quite large even if it's just text. Sometimes PDFs need to embed fonts, especially for languages like Chinese that rely on specific character sets. So, a 400-page PDF reaching 40MB isn't surprising at all.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions