public MemoryStream GerarHistorico(Int32 protocolo, Int32 tipo)
        {
            ArquivoDocCaminho = @"~/Content/_pdfAspose/Historico_Tramitacao.doc";
            TramitacaoHistoricoRelatorioPDF dataSource;

            dataSource = _HistoricoDa.ObterTramitacaoHistorico(protocolo);

            ObterArquivoTemplate();

            dataSource.GovernoNome    = _configSys.Obter <String>(ConfiguracaoSistema.KeyGovernoNome);
            dataSource.SecretariaNome = _configSys.Obter <String>(ConfiguracaoSistema.KeySecretariaNome);
            dataSource.OrgaoNome      = _configSys.Obter <String>(ConfiguracaoSistema.KeyOrgaoNome);

            string pathImg = HttpContext.Current.Request.MapPath("~/Content/_imgLogo/logobrasao.jpg");

            dataSource.LogoBrasao = File.ReadAllBytes(pathImg);

            dataSource.LogoBrasao = AsposeImage.RedimensionarImagem(dataSource.LogoBrasao, 1);

            #region Remover

            ConfiguracaoDefault.AddExecutedAcao((doc, dataSrc) =>
            {
                List <Table> tabelasRemover = new List <Table>();
                tabelasRemover.AddRange(doc.Any <Table>("«remover»", isDeep: true));

                AsposeExtensoes.RemoveTables(tabelasRemover);
            });

            #endregion Remover

            return(GerarPdf(dataSource));
        }