Specifying the encoding type of the text files produced as output

Using your PDF kit for .Net, I have created a program to generate text files. I have noticed the encoding type for the text files being output is "unicode". How would one be able to choose a different type such as ansi?

Thanks,

Robert Kayne

USDA GIPSA

Hi Robert,

As far as I understand, you’re trying to extract text from a PDF file and then save to the text file. If so, please have a look at the code snippets on this link. You can specify the encoding type in the ExtractText method. Please try it at your end.

I hope this helps. If you have any further questions, please do let us know.
Regards,

As I was looking at the code in the link, it was pointed out to me by another individual here that all I had to do was to indicate the encoding in the ExtractText method, i.e.; extractor.ExtractText(Encoding.ASCII). The output is now as I want it to be.

Thanks for your help.

Robert Kayne

Hi Robert,

We’re glad to know that this issue is resolved at your end. If you find any further questions or concerns, please do let us know.

Regards,