This document provides instructions for calling Java programs from a Bash script by explaining how to set up the necessary files and environment, write code to run a Java PDF to HTML converter and compress resulting image files, and check the output, allowing automation of conversion tasks through a simple Bash script. The example script converts a PDF file to HTML5, creates an output directory, runs the conversion, and then uses PNGQuant to reduce the file size of PNG images in the output.