Add Unicode Text with PDETextAdd and PDEFontCreateFromSysFont

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Add Unicode Text with PDETextAdd and PDEFontCreateFromSysFont

    Hi Everyone,

    I'm trying to write text into a PDF with the set of functions as used in this example:
    <http://support.adobe.com/devsup/devsup.nsf/docs/52669.htm?OpenDocument>

    I have two problems:
    The first, is that I get exception error in the PDEFontEmbedNow function with Bad Parameter.
    I have tried it with all other embed/subset/dont etc'... but nothing is working - still Bad Parameter.
    The ONLY way the function works is when I change the Font Creation Attributes to:
    kPDEFontCreateToUnicode | kPDEFontCreateEmbedded;
    > Do you have any idea?



    The second, problem is to embed unicode text. How do I do that?
    I have tried to pass the unicode string to the PDETextAdd function, but I get garbage.
    > Can you help me to find a way to add unicode text?



    I'm working with Adobe Acrobat 7.05 SDK, and testing the plug-in on Adobe Acrobat 7.05 Professional (ME Version), on Microsoft Windows XP Pro SP2.

    Many thanks,
    Doron
    Doron_Tal@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Adding Text to a PDF Doc. [Compiler Error]using PDETextAdd () Method
      Hi, I'm trying to add some text to a PDF using the PDETextAdd() Method, but for some reason it doesn't recognize the first four parameters... ...
    2. PDETextAdd and Unicode
      Hi, All! I have a Japanese text in Unicode an I want to use it with PDETextAdd. The thing is that I need to convert it to the font encoding (the...
    3. Unicode Text Issues with ASP/ADO
      So I've got a nasty little problem with ADO in the old ASP platform. We are extending an existing web site to include a Japanese Language version. We...
    4. Unicode text and Photoshop 7 -- CS ????
      It seems that Photoshop 7 cannot handle Unicode text characters properly. Can Photoshop CS handle Unicode? I need to create foreign language...
    5. Cocoa: simple HTML text to Unicode
      I have an NSString. 99% of the time it contains just text. Sometimes one or more characters of the string will be encoded in HTML, like the...
  3. #2

    Default Re: Add Unicode Text with PDETextAdd and PDEFontCreateFromSysFont

    Have you looked at the samples in the Acrobat SDK concerning font embedding and Unicode/ASText?

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: Add Unicode Text with PDETextAdd and PDEFontCreateFromSysFont

    Yes I did, but with no success either.

    Doron
    Doron_Tal@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139