PDF printing fixes