Fix bug in pdf output
Merge remote-tracking branch 'upstream/2.10.x' into 2.10.x