attempt to solve pdf rendering problem where canvas not cleared b4 rendering