tweak pdf rendering, and cache