Conversions can be terminated on arbitrary conditions like timeouts. For this, you can use the conversionTimeout configuration property which takes an integer as argument that represents the number of seconds after which PDFreactor automatically terminates the conversion.
Example:
Setting a Timeout of 15 Seconds
Configuration config = new Configuration(); // Conversions will terminate after 15 seconds config.setConversionTimeout(15);
When using the PDFreactor Web Service, you can also use the server-side conversionTimeout server parameter which functions identically, but applies globally to all conversions.