Home » c# » c# – how can i fix word problem after converting pdf to word?

c# – how can i fix word problem after converting pdf to word?

Posted by: admin February 21, 2020 Leave a comment

Questions:

I have a problem with PDF Focus.net.

After converting PDF to .docx, the words are not correct: all of them are written backwords.
The PDF file is written in Persian.

I tried looking for a solution in the PDF Focus.net site, but couldn’t find anything.

This is the code I’m using:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(textBox1.Text);
if (f.PageCount > 0)
{
    f.WordOptions.Format = SautinSoft.PdfFocus.CWordOptions.eWordDocument.Docx;
    f.WordOptions.RenderMode = PdfFocus.CWordOptions.eRenderMode.Exact;
    f.ToWord(textBox2.Text );
    MessageBox.Show("complete");
}

Original PDF:
this_is_pdf_file_before_converting

After converting to .docx:
image_after_converting_pdf_file_to_docx

How to&Answers: