Search code examples
c#pdfadobe-reader

Why opening a pdf from winform I can't highlight text? (normally I can)


When I open a PDF from Adobe Reader (normally) I can highlight text with no problems, but when I open the same pdf file from an Adobe Reader tool into a winform I can't highlight text.

I'm writing in c# VS2015 and here's my code to open the Pdf file into the winform:

 private void Form1_Load(object sender, EventArgs e)
    {
        OpenFileDialog dlg = new OpenFileDialog();
        dlg.Filter = "pdf files (*.pdf) |*.pdf;";
        dlg.ShowDialog();
        if (dlg.FileName != null)
        {
            axAcroPDF1.LoadFile(dlg.FileName);
        }
    }

Where did I make mistakes? It's a code mistake/forgetfulness or it's a conceptual mistake?


Solution

  • No possibility to do that: suggested by TheDanMan comment I checked the Ax Control Properties and I find out that I can't highlight text (the Ax Control properties are here).

    Posted this answer for who has problems similar to mine (yes, you can't even take annotations into your pdf with Adobe Reader tool, you've to try another way)