Reduce the use of XObjects in pdf backend