PDF: transplant r4602 (#61).
Ruby1.9 compatibility.
Authored by: tmaruyama 2011-03-30
Parent: [r5253]
Child: [r5255]