Code cleanup and enhancements of Pdf Converter