These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Can't open file in ActiveX if name contains Unicode (CJK) characters

AlphaGuys
Registered: Apr 23 2009
Posts: 4
Answered

I'm using AcroPDF.dll version 9.0 in my C#.Net Windows Forms application. I initialize an instance of the Adobe control, and use the LoadFile method to display the PDF file.

It works well most of the time, but not when I try to display a file where the file name contains CJK characters.

I can view this file if I open it with the standalone Adobe Reader. The filename and the contents of the file both contain CJK characters, but it opens and renders just fine this way.

However, when I try to use the Adobe control, nothing happens. The Adobe control is not refreshed on the screen.

If I rename the same file so that its name contains only ASCII characters, then this method will successfully open and display the file. It seems that the problem is with file names that contain Unicode characters.

Can anyone confirm whether or not the Adobe AcroPDF control supports Unicode filenames?

One other weird symptom: the LoadFile method returns "false" if I try to load a file with Unicode characters in the filename before successfully opening any other file. Once I have successfully opened a file with ASCII-only filename, then attempting to load a Unicode-named file will return "true" from the LoadFile method, even though the file still won't render.

AlphaGuys
Registered: Apr 23 2009
Posts: 4
I finally got a response from Adobe. The way to handle CJK filenames is, instead of using the .LoadFile method, use the src property.

For example:

myAxAcroPdf.src = filename