Fix printing with poppler

Change-Id: I2aa73f42f7602a588e35dc7b9949c2635dad9afa