Solved

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

Posted on 2009-04-02
2
1,606 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

*Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
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) …
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

749 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