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

ps2pdf convert does not show right characters.

New Here ,
Nov 30, 2012 Nov 30, 2012

Copy link to clipboard

Copied

I have a PS file generated from a software system. It has characters è and é which are converted into the \350 and \351.

When I use ps2pdf to convert this ps file into pdf I get Ł and Ø instead.

the file is encoded in ISO8859-15 encoding.

Actual Name : Société Financière

PS file : Soci\351t\351 Financi\350re

PDF file : SociØtØ FinanciŁre

Follwoing is the PS code. Please help me get the right characters on the pdf.

%!PS-Adobe-3.0

%%Title: stdout

%%Creator: idttex 8.00.02.01 Copyright (c) 2007 Intec Telecom Systems PLC

%%CreationDate: Thu 22 Nov 2012 05:41:33 AM UTC

%%Pages: (atend)

%%PageOrder: Ascend

%%Orientation: Landscape

%%BoundingBox: 0 0 612 791

%%DocumentMedia: letter 612 791 0 () ()

%%DocumentNeededResources: font Courier Helvetica-Bold Helvetica

%%EndComments

%%BeginProlog

%%BeginResource: procset TextCommands

/idttexdict 209 dict def

idttexdict begin

/rna 0 def

/a{/rna exch def}bind def

/df{exch findfont exch scalefont setfont}bind def

/X{/xc exch def}bind def

/R{xc add /xc exch def}bind def

/L{xc exch sub /xc exch def}bind def

/Y{/yc exch def}bind def

/U{yc add /yc exch def}bind def

/D{yc exch sub /yc exch def}bind def

/t{xc yc moveto show}bind def

/tr{xc yc moveto rna rotate show rna neg rotate}bind def

/lw{setlinewidth}bind def

/l0{[] 0 setdash}bind def

/l1{currentlinewidth 6 mul currentlinewidth 3 mul 2 array astore currentlinewidth 3 mul setdash}bind def

/l2{currentlinewidth currentlinewidth 2 mul 2 array astore 0 setdash}bind def

/ln{xc yc moveto rlineto stroke}bind def

/rb{xc yc translate rna rotate}bind def

/re{rna neg rotate xc neg yc neg translate}bind def

/ro{

rb 0 0 moveto

1 index 0 lineto

1 index 1 index neg lineto

0 1 index neg lineto

0 0 lineto closepath pop pop

}bind def

/ra{

rb dup 0 moveto

2 index 1 index sub 1 index neg 2 index 90 0 arcn

2 index 1 index sub 2 index neg 2 index add 2 index 0 270 arcn

dup 2 index neg 2 index add 2 index 270 180 arcn

dup neg 1 index 180 90 arcn closepath pop pop

}bind def

/rs{

gsave [{/moveto load}{/lineto load}{/curveto load}

{/closepath load}pathforall]cvx

3 1 roll 2 copy cos mul 3 1 roll sin mul translate

exec fill grestore gsave 1 setgray fill grestore

}bind def

/rf{gsave fill grestore}bind def

/rl{stroke re}bind def

/rn{newpath re}bind def

/sb{.1 .1 scale}bind def

/se{10 10 scale}bind def

/boc{gsave sb}bind def

/eoc{grestore}bind def

/bos{gsave se}bind def

/eos{grestore}bind def

/bod{userdict /start-hook known{userdict begin start-hook end}if}bind def

/bop{

save exch

userdict /bop-hook known{userdict begin bop-hook end}if

pop boc

}bind def

/eop{

eoc

userdict /eop-hook known{userdict begin eop-hook end}if

restore showpage

}bind def

/bls{gsave translate 90 rotate}bind def

/els{grestore}bind def

/bb{boc}bind def

/eb{eoc showpage}bind def

/eod{userdict /end-hook known{userdict begin end-hook end}if}bind def

end

%%EndResource

%%EndProlog

%%BeginSetup

%%IncludeResource: font Courier

%%IncludeResource: font Helvetica-Bold

%%IncludeResource: font Helvetica

idttexdict begin

/f0{/Helvetica 80 df}bind def

/f1{/Helvetica 70 df}bind def

/f2{/Helvetica-Bold 80 df}bind def

/f3{/Courier 80 df}bind def

/f4{/Courier 100 df}bind def

/f5{/Helvetica-Bold 90 df}bind def

/f6{/Helvetica-Bold 100 df}bind def

/f7{/Helvetica-Bold 70 df}bind def

/c0{0 0 0 setrgbcolor}bind def

bod

%%EndSetup

%%Page: 1 1

612 0 bls

0 bop

0 a

f5

c0 3432 X 5491 Y()t

f6

317 R 177 D()t

f2

177 X 146 D(Invoice ICA: 14176 Soci\351t\351 Financi\350re)t

5627 R(Invoice #)t

f0

342 R(: 129990000000046)t

f2

177 X 80 D(abc)t

5627 R(Customer VAT #)t

f0

622 R(: 123456)t

f2

177 X 80 D(Paris, )t

5627 R(Currency)t

f0

351 R(: USD)t

f2

177 X 80 D(FRANCE)t

5627 R(Billing Cycle Date)t

f0

676 R(: NOV 08 2012)t

f2

676 L 240 D(Page: )t

f0

240 R(1 of  2)t

f5

2662 L 247 D(BILLING ACTIVITY DETAIL)t

177 X 95 D l0 4 lw 7554 0 ln

14 D 7554 0 ln

f2

4135 R 97 D(Quantity/)t

177 X 94 D(Event Code)t

567 R(Event Description)t

2305 R(Affiliate)t

366 R(UOM)t

942 R(Amount)t

1152 R(Rate)t

921 R(Charge)t

812 R(Total Charge)t

177 X 36 D 7554 0 ln

14 D 7554 0 ln

157 D(Activity ICA: )t

f0

498 R(14176  )t

f2

267 R(Name: )t

f0

267 R(Soci\351t\351 Financi\350re)t

f2

177 X 80 D(Collection Method: )t

f0

742 R(Clearing)t

f2

1894 R(Billable ICA: )t

f0

494 R(14176)t

f2

177 X 160 D(Service Code: )t

f0

556 R(KQ  )t

f2

160 R(Name: )t

f0

267 R(KQ)t

f1

177 X 75 D(2BE56457)t

567 R(LUO TOTAL CARDS AT QUARTER END)t

2737 R(Q)t

1061 R(100)t

965 R(20.00)t

926 R(2,000.00)t

1026 R(2,000.00)t

f2

177 X 103 D(Total for Service: )t

f0

676 R(KQ KQ)t

5541 R(2,000.00)t

1026 R(2,000.00)t

f2

177 X 160 D(Total for Collection Method: )t

f0

1085 R(Clearing)t

5132 R(2,000.00)t

1026 R(2,000.00)t

f2

177 X 154 D(Total for Customer: )t

f0

765 R(14176 Soci\351t\351 Financi\350re)t

5452 R(2,000.00)t

1026 R(2,000.00)t

f2

177 X 166 D(Total for Invoice: )t

6217 R(2,000.00)t

1026 R(2,000.00)t

eop

els

%%Page: 2 2

612 0 bls

1 bop

0 a

f5

c0 3432 X 5491 Y()t

f6

317 R 177 D()t

f2

177 X 146 D(Invoice ICA: 14176 Soci\351t\351 Financi\350re)t

5627 R(Invoice #)t

f0

342 R(: 129990000000046)t

f2

177 X 80 D(abc)t

5627 R(Customer VAT #)t

f0

622 R(: 123456)t

f2

177 X 80 D(Paris, )t

5627 R(Currency)t

f0

351 R(: USD)t

f2

177 X 80 D(FRANCE)t

5627 R(Billing Cycle Date)t

f0

676 R(: NOV 08 2012)t

f2

676 L 240 D(Page: )t

f0

240 R(2 of  2)t

f5

3007 X 247 D(BILLING ACTIVITY SUMMARY)t

177 X 95 D l0 4 lw 7554 0 ln

14 D 7554 0 ln

f2

77 D(Service Code)t

567 R(Service Description)t

6074 R(Charge)t

425 R(Total Charge)t

177 X 37 D 7554 0 ln

14 D 7554 0 ln

156 D(Activity ICA: )t

f0

498 R(14176  )t

f2

267 R(Name: )t

f0

267 R(Soci\351t\351 Financi\350re)t

f1

177 X 76 D(KQ)t

567 R(KQ)t

6077 R(2,000.00)t

638 R(2,000.00)t

f2

177 X 157 D(Total for Customer: )t

f0

765 R(14176 Soci\351t\351 Financi\350re)t

5840 R(2,000.00)t

638 R(2,000.00)t

f2

177 X 240 D(Total for Invoice: )t

6605 R(2,000.00)t

638 R(2,000.00)t

eop

els

%%Trailer

eod

end

%%Pages: 2

%%EOF

TOPICS
Programming

Views

1.4K

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
Nov 30, 2012 Nov 30, 2012

Copy link to clipboard

Copied

You should of course realize that pstopdf is not an Adobe product and that you should not expect support for it on an Adobe forum.

What happens if you try to use Adobe Acrobat Distiller on this PostScript file?

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

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
Contributor ,
Nov 30, 2012 Nov 30, 2012

Copy link to clipboard

Copied

LATEST

You need to reencode the needed fonts to ISOLatin1Encoding to match the encoding used in your PS file.

How to do this, see the PLRM, rd. edition, section "5.9.1 Changing the Encoding Vector" on page 349 ff.

As the file states that is has been created by an application "idttex", you should file a bug report

to the vendor of that application.

Helge

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