the best solution is simply to not use PDF.