[Tex/LaTex] Which encoding used in LaTeX sources to convert PDF file accents to the doc format correctly

accentscharactersconversioninput-encodingspdftex

I have the following configuration file in my LaTeX source:

% !TEX encoding = UTF-8 Unicode
\documentclass[a4paper,12pt]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

After generating the PDF file, I tried to convert it to Microsoft Word (.doc) format in several sites, but the one closest to the expected result was:

http://www.pdfonline.com/pdf-to-word-converter/

By doing the conversion of PDF format to doc, the final result was as follows:

enter image description here

Accents are not converted correctly, please correct me if I'm wrong, I believe the error of conversion was because of the utf-8 encoding that I used on my source file in latex.

Therefore, is there any package in LaTeX that facilitates the conversion of pdf file generated from LaTeX source for doc format without disturbing accent?

Best Answer

Maybe you could try these packages:

\usepackage{cmap}               % Mapear caracteres especiais no PDF
\usepackage{lmodern}            % Usa a fonte Latin Modern          
\usepackage[T1]{fontenc}        % Selecao de codigos de fonte.
\usepackage[utf8]{inputenc}

And also overleaf.

Sorry, I'm late.