export respects document dimensions