pdf conversions thanks to @gpakosz