added line break removal for pdf monitoring see #321