#1898 Document size not calculated