reimplement pagenumbering macro to avoid malformed metadata of PDF. Closes: #1288
reimplement pagenumbering macro to avoid malformed metadata of PDF. Closes: #1288

kmuto/review,kmuto/review,takahashim/review,takahashim/review,kmuto/review