🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #202

Convert a file to PS using Hexadecimal Strings

#202
From: BeckWood
Date: Thu, 19 Mar 2009 03:27
3 lines
1091 bytes
I have to convert my text file to a ps file using my Java program. At first, I wrote method by Literal Text Strings, I found that when my text file had some Chinese(such double byte character), then the ps file could not display correctly.
Then I note that there is another method Hexadecimal Strings can transform each char to a HEX. But I don't know how to using it in my Java program, because the doc(PostScript3) hadn't mention too much.
Any suggestions on how I can solve this. Thanks!
Technical Details
Message-ID: <59b8565c.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,c2fbb05b98e76772,start
X-Google-Attributes: gid10c61a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: BeckWood@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.postscript.programming
Subject: Convert a file to PS using Hexadecimal Strings
Message-ID: <59b8565c.-1@webcrossing.la2eafNXanI>
Date: Wed, 18 Mar 2009 20:27:15 -0700
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit