update caption and grid in pdfdeck