Document threshold scaling