Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adobe ActiveX control fails to load file if name contains Unicode (CJK) characters

Posted on 2009-04-02
2
Medium Priority
?
1,719 Views
Last Modified: 2013-11-18
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 method has been working great for years (with various versions of Adobe). 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 ActiveX control support Unicode filenames? If so, how?

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.
0
Comment
Question by:AlphaGuys
1 Comment
 

Accepted Solution

by:
AlphaGuys earned 0 total points
ID: 26017730
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
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question