Add id document in print and fix for empty documents in print documents