PDF: reduce overly large JPEG image heights (fixes bug 695112)