fix data urls prefix
add switch for pdf converter