Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-04-02
2
Medium Priority
?
1,689 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

Implementing Azure Infrastructure Exam 70-533

This course is designed to familiarize and instruct students in the content that is covered by Microsoft Exam 70-533, Implementing Microsoft Azure Solutions. It focuses on all the November 2016 objective domain topics.

Question has a verified solution.

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

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

718 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