pdf printer: remove extra data sent to client