Integrates PDF writer into document compiler.