Hi there,
I have recently installed the community edition of Spire.PDF (FreeSpire.PDF version 4.3.1 on Nuget).
I have written a small program which searches for keywords in pdf files and highlights them using the Spire api.
When I run my program from within Visual Studio in debug mode everything works fine. The problem arises when I try to
publish a standalone version of my program: when I try to run my program outside of Visual Studio directly from an .exe file
I get the exception: "Invalid Contents Array" on the following line of code:
PdfTextFind[] wordsToHighlight = page.FindText(keyword).Finds;
I will state that I am using the api within the limitations of the free versions, and the pdf file which I am trying to highlight is
less than 10 pages in length. Unfortunately the exception above makes it impossible to use the free version of Spire.PDF to create
standalone programs outside of the Visual Studio Editor (the problem does not arise while using the trial version of the full Spire.PDF api, vesion 4.9.7).
Some assistance here would be much appreciated.
Thanks,
Adam