Article View: adobe.acrobat.sdk
Article #174AxAcroPDF LoadFile contains Unicode (CJK) characters
From: Jon_Zucker
Date: Tue, 31 Mar 2009 20:59
Date: Tue, 31 Mar 2009 20:59
13 lines
1846 bytes
1846 bytes
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. This has been working great for years. Now, though, I'm trying 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 the Adobe AcroPDF control support 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.
Technical Details
Message-ID:
<59b87710.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10177e,c5396803cffdc1f2,start X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Jon_Zucker@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: AxAcroPDF LoadFile contains Unicode (CJK) characters Message-ID: <59b87710.-1@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 13:59:08 -0700 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit