Haru PDF functions