You may use Aspose.Pdf for Java to create PDF files from scratch. This component is written in Java and can be easily used in Java applications. It provides quite flexible API to create PDF files with various features. The details along with working examples can be found in the documentation.
Developer Evangelist @ Aspose. I love to explore and learn new technologies and help other developers along the way.