trying to fix pdf convertion