add last_percent field in pdf/djvu document history

And normalize last_percent for cre document