Work around the buggy direct PDF output