private void _handleHeaderBodyFooter(string path, string htmlContent, string idFooter, string idHeader = null) { _pathTempSaveFile = path; var htmlDocumentHelper = new HtmlDocumentHelper(htmlContent); _headerContent = null; if (!string.IsNullOrEmpty(_url)) { htmlDocumentHelper.MergeUrlOnImage(_url); } if (!string.IsNullOrEmpty(idFooter)) { _footerContent = htmlDocumentHelper.GetContentById(idFooter); } _bodyContent = htmlDocumentHelper.RemoveContentById(idFooter); }