So.. I can only use the default Java API, and can't use external ones.
How do I write to a PDF?
I've tried just writing with a FileOutputStream, and it didn't work.
I heard that it has to be written using a byte, so I tried:
byte[] buffer = new String("Test");
When I tried opening the file, it said it was corrupted and couldn't be opened.