Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Unicode Metadata
  FAQ FAQ  Forum Search   Register Register  Login Login

Unicode Metadata

 Post Reply Post Reply
Author
Message
Michel_K17 View Drop Down
Newbie
Newbie
Avatar
www.exp-systems.com

Joined: 25 Jan 03
Status: Offline
Points: 297
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michel_K17 Quote  Post ReplyReply Direct Link To This Post Topic: Unicode Metadata
    Posted: 10 Sep 09 at 4:57AM
Hi,

   I'm not sure, but it seems like I am no longer able to write Metadata using unicode text for my Japanese, Chinese etc. customers. Here is my code:

    ' Set Information of PDF
    '-----------------------
    If fUnicodeUser Then
        '1 = Author
        rtn = oPDF.SetInformation(1, oPDF.ToPDFUnicode(Author))
        '2 = Title
        rtn = oPDF.SetInformation(2, oPDF.ToPDFUnicode(Title))
        '3 = Subject
        rtn = oPDF.SetInformation(3, oPDF.ToPDFUnicode(Subject))
        '4 = Keywords
        rtn = oPDF.SetInformation(4, oPDF.ToPDFUnicode(Keywords))

    Else
        '1 = Author
        rtn = oPDF.SetInformation(1, Author)
        '2 = Title
        rtn = oPDF.SetInformation(2, Title)
        '3 = Subject
        rtn = oPDF.SetInformation(3, Subject)
        '4 = Keywords
        rtn = oPDF.SetInformation(4, Keywords)

    End If

   When I recover the data from QuickPDF, it looks OK, but when I view the information from within Adobe's Reader or FoxIt's Reader, I see garbage.

   Here is an example of what I set and recover using QuickPDF:
  • Author -サルエルパンツ
   Appears like this in PDF Reader and FoxIt Reader (with Windows set to Japanese and the Reader too):
  • Author -ƒTƒ‹ƒGƒ‹ƒpƒ“ƒc
   Any ideas?
Michel
Back to Top
shimax View Drop Down
Beginner
Beginner


Joined: 03 Oct 09
Location: Japan
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote shimax Quote  Post ReplyReply Direct Link To This Post Posted: 04 Oct 09 at 10:37AM
I am a Japenese and I am also annoyed by the samge kind of characters garbage.
 
The byte order of サムエルパンツ in Shift_JIS(most common Japanese character codes) is
0x83 54 83 80 83 47 83 8B 83 70 83 93 83 63. If these byte order is interpreted as Windows-1252, the output turns out to be ƒTƒ‹ƒGƒ‹ƒpƒ“ƒc.
 
There is the same kind of phonomena in both SetFormFieldValue and AddGlobalJavaScript as far as I test the trial: 7.1.6.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store