void PrepareDocumentRenderer() { if (_document == null) { throw new InvalidOperationException(Messages2.PropertyNotSetBefore("DocumentRenderer", MethodInfo.GetCurrentMethod().Name)); } _documentRenderer = new DocumentRenderer(_document); _documentRenderer.WorkingDirectory = this.workingDirectory; _documentRenderer.PrepareDocument(); }
void PrepareDocumentRenderer(bool prepareCompletely) { if (_document == null) { throw new InvalidOperationException(Messages2.PropertyNotSetBefore("DocumentRenderer", MethodBase.GetCurrentMethod().Name)); } if (_documentRenderer == null) { _documentRenderer = new DocumentRenderer(_document); _documentRenderer.WorkingDirectory = _workingDirectory; } if (prepareCompletely && _documentRenderer.FormattedDocument == null) { _documentRenderer.PrepareDocument(); } }