• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Encoding Extended ASCII characters

Guest
Apr 27, 2011 Apr 27, 2011

Copy link to clipboard

Copied

I am trying to convert printed text reports to PDF and am running into an issue with the extended ASCII characters used to display boxes. Character 191(┐) is an upper right corner, 192(└) is a lower left corner, 196(─) is a vertical line etc . They are part the IBM Code Page 437 and the PC-* Symbol set.

In the PDF document, we are setting /BaseFont /Courier . I have tried different /Encoding lines - /Encoding WinAnsiEncoding for example, which will change the above characters to the appropriate character for that encoding. Is there an /Encoding option for code page 437 or PC-8? Is there a better way to go about this?

Views

6.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2011 Apr 27, 2011

Copy link to clipboard

Copied

Brian,

Given the extent to which Unicode is used today, and its broad support in OSes and applications, you should instead be encoding these line-drawing characters according to Unicode. Character 91 corresponds to U+2510, Character 192 to U+2514, and Character 196 to U+2500 (although you described it as a vertical line, it displays as a horizontal line). Unicode is definitely the better way to go about this, and does not have the ambiguity that is present in most legacy encodings.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2011 Apr 27, 2011

Copy link to clipboard

Copied

I tried adding /Encoding UnicodeEncoding and that did not do the trick. It also killed the Courier font which we need becuase of the proportional spacing.

Instead of an actual charater 196 in the data stream,  I tried adding  U+2500 but that did not work either.

How do you encode these as unicode characters in the data stream?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2011 Apr 27, 2011

Copy link to clipboard

Copied

LATEST

Brian,

Although I would love to be able to provide to you the guidance that you need, the details are beyond my area of expertise. You are likely to get the guidance that you need by posing these questions in the appropriate Adobe Forum, specifically the Acrobat SDK one.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines