pdf build, removing non printable characters