JPedal is a Java PDF library for viewing, converting and printing PDF files. It makes it very easy for developers to work with PDF files in Java. Read more here.
TL;DR: PDFs use complex binary/compressed data that standard text editors can’t read. To inspect the internal structure, use JPedal (for debugging content streams), RUPS...