fixes for japanese pdf generation