[pdf] fixed detection of changes