Ghostscript: Missing text when converting PDF to PS

DoneSubmitted by Diego Nicola Barbato.
Details
3 participants
  • Diego Nicola Barbato
  • Ludovic Courtès
  • sirmacik
Owner
unassigned
Severity
important
D
D
Diego Nicola Barbato wrote on 15 Mar 2019 23:59
(address . bug-guix@gnu.org)
87wokzhhgp.fsf@GlaDOS.home
Hello Guix,

When converting certain PDF files to PostScript pdf2ps (from the
Ghostscript package) will print the following error messages:

Toggle snippet (6 lines)
**** Error reading a content stream. The page may be incomplete.
Output may be incorrect.
**** Error: File did not complete the page properly and may be damaged.
Output may be incorrect.

The resulting file will be missing some (sometimes all) of the text.

I have attached one such PDF, which I obtained from
files generated by running pdf2ps on both Guix System and, for
reference, Debian 9, where the conversion succeeds (even though they
provide the same version (9.26 (2018-11-20)) of Ghostscript).

I have also attached the results of running ‘gsnd -dPDFDEBUG’ on the
offending file.

I run Guix System (commit: 0bd1498) on x86_64.

Regards,

Diego
Attachment: original.pdf
Attachment: guix.ps
Attachment: debian.ps
$ gsnd -dPDFDEBUG original.pdf
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
<<
/Size 43 /Info 1 0 R
/Root 28 0 R
Toggle quote (1 lines)
>>
<<
/Size 43 /Info 1 0 R
/Root 28 0 R
Toggle quote (1 lines)
>>
%Resolving: [28 0]
<<
/Type /Catalog /Pages 2 0 R
/Outlines 23 0 R
/PageMode /UseOutlines /Dests 22 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [2 0]
<<
/Type /Pages /Kids [
5 0 R
]
/Count 1 /ProcSet [
/PDF /Text /ImageB /ImageC ]
Toggle quote (1 lines)
>>
endobj
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [5 0]
<<
/Type /Page /Parent 2 0 R
/Contents 29 0 R
/Resources 31 0 R
/Annots 32 0 R
/MediaBox [
0 0 595 842 ]
Toggle quote (1 lines)
>>
endobj
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [2 0]
Processing pages 1 through 1.
Page 1
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [31 0]
<<
/ColorSpace <<
/PCSp 4 0 R
/CSp /DeviceRGB /CSpg /DeviceGray >>
/ExtGState <<
/GSa 3 0 R
Toggle quote (1 lines)
>>
/Pattern <<
Toggle quote (1 lines)
>>
/Font <<
/F12 12 0 R
/F13 13 0 R
Toggle quote (1 lines)
>>
/XObject <<
/Im6 6 0 R
/Im10 10 0 R
/Im14 14 0 R
/Im16 16 0 R
Toggle quote (2 lines)
>>
>>
endobj
%Resolving: [31 0]
%Resolving: [16 0]
<<
/Type /XObject /Subtype /Image /Width 496 /Height 384 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 17 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 38199
%Resolving: [17 0]
26339 endobj
endobj
%Resolving: [6 0]
<<
/Type /XObject /Subtype /Image /Width 450 /Height 80 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 7 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 445
%Resolving: [7 0]
27304 endobj
endobj
%Resolving: [10 0]
<<
/Type /XObject /Subtype /Image /Width 291 /Height 65 /BitsPerComponent 8 /ColorSpace /DeviceRGB /SMask 8 0 R
/Length 11 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 30543
%Resolving: [11 0]
1122 endobj
endobj
%Resolving: [14 0]
<<
/Type /XObject /Subtype /Image /Width 67 /Height 89 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 15 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 31855
%Resolving: [15 0]
6152 endobj
endobj
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [31 0]
%Resolving: [3 0]
<<
/Type /ExtGState /SA true
/SM 0.02 /ca 1.0 /CA 1.0 /AIS false
/SMask /None >>
endobj
%Resolving: [16 0]
%Resolving: [6 0]
%Resolving: [10 0]
%Resolving: [8 0]
<<
/Type /XObject /Subtype /Image /Width 291 /Height 65 /BitsPerComponent 8 /ColorSpace /DeviceGray /Length 9 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 27941
%Resolving: [9 0]
2397 endobj
endobj
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [29 0]
<<
/Length 30 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 65970
%Resolving: [30 0]
2045 endobj
endobj
%Resolving: [30 0]
%Resolving: [30 0]
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
/CSp cs
%Resolving: [31 0]
/CSp CS
%Resolving: [31 0]
0.75 0 0 -0.75 28.5 813.5 cm
q
q
Q
Q
q
q
Q
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
0 j
[
]
0 d
Q
Q
q
0 0 m
717.0 0 l
717.0 1046.69202 l
0 1046.69202 l
0 0 l
h
W*
n
q
0.800223231 0 0 0.800223231 0 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
0 j
[
]
0 d
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
1 0 0 1 438 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
450 0 0 -80 0 80 cm
/Im6 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [6 0]
%Resolving: [7 0]
%Resolving: [7 0]
Q
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0.687285244 0 0 0.676923096 8 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
291 0 0 -65 0 65 cm
/Im10 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [10 0]
%Resolving: [8 0]
%Resolving: [11 0]
%Resolving: [11 0]
%Resolving: [9 0]
%Resolving: [9 0]
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 24 Tf
%Resolving: [31 0]
%Resolving: [12 0]
<<
/Type /Font /Subtype /Type0 /BaseFont /NimbusSanL-Bold /Encoding /Identity-H /DescendantFonts [
35 0 R
]
/ToUnicode 36 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [35 0]
<<
/Type /Font /Subtype /CIDFontType2 /BaseFont /NimbusSanL-Bold /CIDSystemInfo <<
/Registry (Adobe) /Ordering (Identity) /Supplement 0 >>
/FontDescriptor 33 0 R
/CIDToGIDMap /Identity /W [
0 [
496 662 552 606 276 276 552 552 606 552 716 606 606 606 386 330 662 772 606 552 330 716 276 662 330 606 606 606 606 772 716 936 606 ]
]
Toggle quote (1 lines)
>>
endobj
%Resolving: [33 0]
<<
/Type /FontDescriptor /FontName /QHBAAA+NimbusSanL-Bold /Flags 4 /FontBBox [
-173 -307 1097 979 ]
/ItalicAngle 0 /Ascent 979 /Descent -307 /CapHeight 979 /StemV 69 /FontFile2 34 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [34 0]
<<
/Length1 3944 /Length 37 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 68336
%Resolving: [37 0]
2905 endobj
endobj
%Resolving: [33 0]
%Resolving: [34 0]
%Resolving: [37 0]
%Resolving: [37 0]
%Resolving: [37 0]
%Resolving: [37 0]
1 0 0 -1 0 0 Tm
8 -124 Td
(\000\001) Tj
**** Error reading a content stream. The page may be incomplete.
Output may be incorrect.
**** Error: File did not complete the page properly and may be damaged.
Output may be incorrect.
%Resolving: [32 0]
[
]
endobj
%Resolving: [31 0]
GS>
$ gsnd -dPDFDEBUG original.pdf
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
<<
/Size 43 /Info 1 0 R
/Root 28 0 R
Toggle quote (1 lines)
>>
<<
/Size 43 /Info 1 0 R
/Root 28 0 R
Toggle quote (1 lines)
>>
%Resolving: [28 0]
<<
/Type /Catalog /Pages 2 0 R
/Outlines 23 0 R
/PageMode /UseOutlines /Dests 22 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [2 0]
<<
/Type /Pages /Kids [
5 0 R
]
/Count 1 /ProcSet [
/PDF /Text /ImageB /ImageC ]
Toggle quote (1 lines)
>>
endobj
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [5 0]
<<
/Type /Page /Parent 2 0 R
/Contents 29 0 R
/Resources 31 0 R
/Annots 32 0 R
/MediaBox [
0 0 595 842 ]
Toggle quote (1 lines)
>>
endobj
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [28 0]
%Resolving: [2 0]
Processing pages 1 through 1.
Page 1
%Resolving: [28 0]
%Resolving: [2 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [5 0]
%Resolving: [31 0]
<<
/ColorSpace <<
/PCSp 4 0 R
/CSp /DeviceRGB /CSpg /DeviceGray >>
/ExtGState <<
/GSa 3 0 R
Toggle quote (1 lines)
>>
/Pattern <<
Toggle quote (1 lines)
>>
/Font <<
/F12 12 0 R
/F13 13 0 R
Toggle quote (1 lines)
>>
/XObject <<
/Im6 6 0 R
/Im10 10 0 R
/Im14 14 0 R
/Im16 16 0 R
Toggle quote (2 lines)
>>
>>
endobj
%Resolving: [31 0]
%Resolving: [16 0]
<<
/Type /XObject /Subtype /Image /Width 496 /Height 384 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 17 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 38199
%Resolving: [17 0]
26339 endobj
endobj
%Resolving: [6 0]
<<
/Type /XObject /Subtype /Image /Width 450 /Height 80 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 7 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 445
%Resolving: [7 0]
27304 endobj
endobj
%Resolving: [10 0]
<<
/Type /XObject /Subtype /Image /Width 291 /Height 65 /BitsPerComponent 8 /ColorSpace /DeviceRGB /SMask 8 0 R
/Length 11 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 30543
%Resolving: [11 0]
1122 endobj
endobj
%Resolving: [14 0]
<<
/Type /XObject /Subtype /Image /Width 67 /Height 89 /BitsPerComponent 8 /ColorSpace /DeviceRGB /Length 15 0 R
/Filter /DCTDecode >>
stream
%FilePosition: 31855
%Resolving: [15 0]
6152 endobj
endobj
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [31 0]
%Resolving: [3 0]
<<
/Type /ExtGState /SA true
/SM 0.02 /ca 1.0 /CA 1.0 /AIS false
/SMask /None >>
endobj
%Resolving: [16 0]
%Resolving: [6 0]
%Resolving: [10 0]
%Resolving: [8 0]
<<
/Type /XObject /Subtype /Image /Width 291 /Height 65 /BitsPerComponent 8 /ColorSpace /DeviceGray /Length 9 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 27941
%Resolving: [9 0]
2397 endobj
endobj
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [2 0]
%Resolving: [28 0]
%Resolving: [29 0]
<<
/Length 30 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 65970
%Resolving: [30 0]
2045 endobj
endobj
%Resolving: [30 0]
%Resolving: [30 0]
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
/CSp cs
%Resolving: [31 0]
/CSp CS
%Resolving: [31 0]
0.75 0 0 -0.75 28.5 813.5 cm
q
q
Q
Q
q
q
Q
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
0 j
[
]
0 d
Q
Q
q
0 0 m
717.0 0 l
717.0 1046.69202 l
0 1046.69202 l
0 0 l
h
W*
n
q
0.800223231 0 0 0.800223231 0 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
0 j
[
]
0 d
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
1 0 0 1 438 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
450 0 0 -80 0 80 cm
/Im6 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [6 0]
%Resolving: [7 0]
%Resolving: [7 0]
Q
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0.687285244 0 0 0.676923096 8 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
291 0 0 -65 0 65 cm
/Im10 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [10 0]
%Resolving: [8 0]
%Resolving: [11 0]
%Resolving: [11 0]
%Resolving: [9 0]
%Resolving: [9 0]
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 24 Tf
%Resolving: [31 0]
%Resolving: [12 0]
<<
/Type /Font /Subtype /Type0 /BaseFont /NimbusSanL-Bold /Encoding /Identity-H /DescendantFonts [
35 0 R
]
/ToUnicode 36 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [35 0]
<<
/Type /Font /Subtype /CIDFontType2 /BaseFont /NimbusSanL-Bold /CIDSystemInfo <<
/Registry (Adobe) /Ordering (Identity) /Supplement 0 >>
/FontDescriptor 33 0 R
/CIDToGIDMap /Identity /W [
0 [
496 662 552 606 276 276 552 552 606 552 716 606 606 606 386 330 662 772 606 552 330 716 276 662 330 606 606 606 606 772 716 936 606 ]
]
Toggle quote (1 lines)
>>
endobj
%Resolving: [33 0]
<<
/Type /FontDescriptor /FontName /QHBAAA+NimbusSanL-Bold /Flags 4 /FontBBox [
-173 -307 1097 979 ]
/ItalicAngle 0 /Ascent 979 /Descent -307 /CapHeight 979 /StemV 69 /FontFile2 34 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [34 0]
<<
/Length1 3944 /Length 37 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 68336
%Resolving: [37 0]
2905 endobj
endobj
%Resolving: [33 0]
%Resolving: [34 0]
%Resolving: [37 0]
%Resolving: [37 0]
%Resolving: [37 0]
%Resolving: [37 0]
1 0 0 -1 0 0 Tm
8 -124 Td
(\000\001) Tj
16 0 Td
(\000\002) Tj
13 0 Td
(\000\003) Tj
15 0 Td
(\000\004) Tj
7 0 Td
(\000\005) Tj
7 0 Td
(\000\005) Tj
7 0 Td
(\000\006) Tj
13 0 Td
(\000\007) Tj
13 0 Td
(\000\002) Tj
13 0 Td
(\000\b) Tj
15 0 Td
(\000\t) Tj
13 0 Td
(\000\006) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
625 -168 Td
(\000\n) Tj
10 0 Td
(\000\013) Tj
9 0 Td
(\000\t) Tj
8 0 Td
(\000\f) Tj
9 0 Td
(\000\r) Tj
9 0 Td
(\000\002) Tj
8 0 Td
(\000\b) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\016) Tj
5 0 Td
(\000\017) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
<<
/Type /Font /Subtype /Type0 /BaseFont /NimbusSanL-Regu /Encoding /Identity-H /DescendantFonts [
40 0 R
]
/ToUnicode 41 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [40 0]
<<
/Type /Font /Subtype /CIDFontType2 /BaseFont /NimbusSanL-Regu /CIDSystemInfo <<
/Registry (Adobe) /Ordering (Identity) /Supplement 0 >>
/FontDescriptor 38 0 R
/CIDToGIDMap /Identity /W [
0 [
276 552 276 552 220 496 552 826 552 662 552 330 330 662 552 496 552 772 276 276 936 662 220 552 552 552 552 606 552 496 276 552 826 716 662 552 662 552 496 606 276 276 552 496 552 496 606 606 552 276 716 716 276 662 ]
]
Toggle quote (1 lines)
>>
endobj
%Resolving: [38 0]
<<
/Type /FontDescriptor /FontName /QMBAAA+NimbusSanL-Regu /Flags 4 /FontBBox [
-174 -285 1022 953 ]
/ItalicAngle 0 /Ascent 953 /Descent -285 /CapHeight 953 /StemV 50 /FontFile2 39 0 R
Toggle quote (1 lines)
>>
endobj
%Resolving: [39 0]
<<
/Length1 5752 /Length 42 0 R
/Filter /FlateDecode >>
stream
%FilePosition: 72691
%Resolving: [42 0]
4075 endobj
endobj
%Resolving: [38 0]
%Resolving: [39 0]
%Resolving: [42 0]
%Resolving: [42 0]
%Resolving: [42 0]
%Resolving: [42 0]
1 0 0 -1 0 0 Tm
705 -168 Td
(\000\001) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\003) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\005) Tj
7 0 Td
(\000\002) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\001) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
625 -187 Td
(\000\020) Tj
9 0 Td
(\000\t) Tj
8 0 Td
(\000\f) Tj
9 0 Td
(\000\021) Tj
11 0 Td
(\000\004) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\016) Tj
5 0 Td
(\000\004) Tj
4 0 Td
(\000\022) Tj
9 0 Td
(\000\023) Tj
8 0 Td
(\000\006) Tj
8 0 Td
(\000\004) Tj
4 0 Td
(\000\024) Tj
5 0 Td
(\000\017) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
722 -187 Td
(\000\t) Tj
9 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\f) Tj
5 0 Td
(\000\r) Tj
9 0 Td
(\000\016) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
625 -206 Td
(\000\025) Tj
10 0 Td
(\000\006) Tj
8 0 Td
(\000\022) Tj
9 0 Td
(\000\004) Tj
4 0 Td
(\000\013) Tj
9 0 Td
(\000\003) Tj
9 0 Td
(\000\017) Tj
5 0 Td
(\000\026) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
683 -206 Td
(\000\021) Tj
11 0 Td
(\000\005) Tj
7 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
753 -206 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\024) Tj
13 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
625 -225 Td
(\000\027) Tj
9 0 Td
(\000\004) Tj
4 0 Td
(\000\022) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\003) Tj
9 0 Td
(\000\007) Tj
8 0 Td
(\000\t) Tj
8 0 Td
(\000\f) Tj
9 0 Td
(\000\002) Tj
8 0 Td
(\000\030) Tj
5 0 Td
(\000\024) Tj
5 0 Td
(\000\006) Tj
8 0 Td
(\000\003) Tj
9 0 Td
(\000\017) Tj
5 0 Td
(\000\026) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
733 -225 Td
(\000\025) Tj
9 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\r) Tj
9 0 Td
(\000\027) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
625 -262 Td
(\000\031) Tj
9 0 Td
(\000\b) Tj
9 0 Td
(\000\024) Tj
5 0 Td
(\000\002) Tj
8 0 Td
(\000\024) Tj
5 0 Td
(\000\006) Tj
8 0 Td
(\000\003) Tj
9 0 Td
(\000\017) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
1 w
2 J
0 j
[
]
0 d
654 294.5 m
654 295.880707 652.880737 297 651.5 297 c
650.119263 297 649 295.880707 649 294.5 c
649 293.119293 650.119263 292 651.5 292 c
652.880737 292 654 293.119293 654 294.5 c
h
B*
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
665 -299 Td
(\000\006) Tj
8 0 Td
(\000\030) Tj
8 0 Td
(\000\031) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\032) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\033) Tj
9 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
1 w
2 J
0 j
[
]
0 d
654 312.5 m
654 313.880707 652.880737 315 651.5 315 c
650.119263 315 649 313.880707 649 312.5 c
649 311.119293 650.119263 310 651.5 310 c
652.880737 310 654 311.119293 654 312.5 c
h
B*
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
665 -317 Td
(\000\006) Tj
8 0 Td
(\000\036) Tj
4 0 Td
(\000\030) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\037) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000 ) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
1 w
2 J
0 j
[
]
0 d
654 330.5 m
654 331.880707 652.880737 333 651.5 333 c
650.119263 333 649 331.880707 649 330.5 c
649 329.119293 650.119263 328 651.5 328 c
652.880737 328 654 329.119293 654 330.5 c
h
B*
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
665 -335 Td
(\000\006) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
677 -335 Td
(\000\t) Tj
9 0 Td
(\000\004) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
1 w
2 J
0 j
[
]
0 d
654 348.5 m
654 349.880707 652.880737 351 651.5 351 c
650.119263 351 649 349.880707 649 348.5 c
649 347.119293 650.119263 346 651.5 346 c
652.880737 346 654 347.119293 654 348.5 c
h
B*
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
665 -353 Td
(\000\030) Tj
8 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
677 -353 Td
(\000!) Tj
10 0 Td
(\000\016) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
1 w
2 J
0 j
[
]
0 d
654 366.5 m
654 367.880707 652.880737 369 651.5 369 c
650.119263 369 649 367.880707 649 366.5 c
649 365.119293 650.119263 364 651.5 364 c
652.880737 364 654 365.119293 654 366.5 c
h
B*
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
665 -371 Td
(\000\006) Tj
8 0 Td
(\000\036) Tj
4 0 Td
(\000\030) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000") Tj
9 0 Td
(\000#) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000$) Tj
9 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000&) Tj
7 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
ET
Q
Q
q
/CSp cs
%Resolving: [31 0]
0.8 0.8 0.8 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
q
0.800223231 0 0 0.800223231 0 0 cm
596 132 3 593 re
f
Q
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0.800223231 0 0 0.800223231 12.8035717 502.540192 cm
/CSp cs
%Resolving: [31 0]
0.8 0.8 0.8 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
67 0 0 -89 0 89 cm
/Im14 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [14 0]
%Resolving: [15 0]
%Resolving: [15 0]
Q
q
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0.451738924 0 0 0.450125575 12.8035717 112.03125 cm
/CSp cs
%Resolving: [31 0]
0.8 0.8 0.8 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
496 0 0 -384 0 384 cm
/Im16 Do
%Resolving: [31 0]
%Resolving: [31 0]
%Resolving: [16 0]
%Resolving: [17 0]
%Resolving: [17 0]
Q
Q
q
0.800223231 0 0 0.800223231 0 0 cm
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
296 -356 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 12 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
16 -374 Td
(\000') Tj
7 0 Td
(\000\016) Tj
7 0 Td
(\000\022) Tj
3 0 Td
(\000\016) Tj
7 0 Td
(\000\() Tj
3 0 Td
(\000\002) Tj
3 0 Td
(\000\r) Tj
8 0 Td
(\000\034) Tj
7 0 Td
(\000\013) Tj
4 0 Td
(\000\022) Tj
3 0 Td
(\000\f) Tj
4 0 Td
(\000 ) Tj
10 0 Td
(\000\004) Tj
3 0 Td
(\000\017) Tj
6 0 Td
(\000\020) Tj
7 0 Td
(\000%) Tj
7 0 Td
(\000\n) Tj
7 0 Td
(\000\026) Tj
3 0 Td
(\000\002) Tj
3 0 Td
(\000\024) Tj
11 0 Td
(\000\n) Tj
7 0 Td
(\000\005) Tj
6 0 Td
(\000\022) Tj
3 0 Td
(\000\n) Tj
7 0 Td
(\000\013) Tj
4 0 Td
(\000\007) Tj
10 0 Td
(\000%) Tj
7 0 Td
(\000\b) Tj
7 0 Td
(\000\b) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
187 -374 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
16 -410 Td
(\000\031) Tj
9 0 Td
(\000\b) Tj
9 0 Td
(\000\032) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\016) Tj
5 0 Td
(\000\006) Tj
8 0 Td
(\000\004) Tj
4 0 Td
(\000\024) Tj
5 0 Td
(\000\b) Tj
9 0 Td
(\000\003) Tj
9 0 Td
(\000\022) Tj
9 0 Td
(\000\017) Tj
ET
Q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
36 -447 Td
(\000\006) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
44 -447 Td
(\000\)) Tj
4 0 Td
(\000\002) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
56 -447 Td
(\000 ) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000 ) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000+) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000!) Tj
10 0 Td
(\000\016) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\t) Tj
9 0 Td
(\000\004) Tj
3 0 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000$) Tj
9 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000&) Tj
7 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000\034) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\020) Tj
8 0 Td
(\000%) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\003) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\033) Tj
9 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\007) Tj
12 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\032) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\036) Tj
4 0 Td
(\000,) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\026) Tj
3 0 Td
(\000\002) Tj
4 0 Td
(\000 ) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
56 -465 Td
(\000-) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\013) Tj
5 0 Td
(\000\027) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\)) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000!) Tj
10 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\022) Tj
4 0 Td
(\000\026) Tj
3 0 Td
(\000\004) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000 ) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\022) Tj
4 0 Td
(\000\026) Tj
3 0 Td
(\000\004) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\033) Tj
9 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\035) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\032) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\016) Tj
8 0 Td
(\000.) Tj
9 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
56 -483 Td
(\000/) Tj
9 0 Td
(\000\016) Tj
8 0 Td
(\0000) Tj
8 0 Td
(\0001) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000&) Tj
7 0 Td
(\000\034) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000\025) Tj
9 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\003) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\032) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\t) Tj
9 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\027) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\034) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000%) Tj
8 0 Td
(\000\034) Tj
8 0 Td
(\0001) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\035) Tj
7 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000') Tj
9 0 Td
(\000\026) Tj
3 0 Td
(\000%) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000\007) Tj
12 0 Td
(\000\n) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
56 -501 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\020) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000&) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000%) Tj
8 0 Td
(\000\003) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000\b) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\035) Tj
7 0 Td
(\000\016) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\)) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000$) Tj
9 0 Td
(\000\016) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\0002) Tj
10 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000*) Tj
8 0 Td
(\0000) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000%) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000&) Tj
7 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\034) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\0003) Tj
10 0 Td
(\000%) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\031) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
56 -519 Td
(\000\b) Tj
8 0 Td
(\000%) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000&) Tj
7 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\026) Tj
3 0 Td
(\000%) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\005) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\023) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\034) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\0001) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\002) Tj
4 0 Td
(\000\025) Tj
9 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\003) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\005) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\)) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\0004) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000\024) Tj
13 0 Td
(\000%) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\005) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\003) Tj
8 0 Td
(\000%) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\0003) Tj
10 0 Td
(\000%) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000\005) Tj
7 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\)) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
16 -555 Td
(\000\033) Tj
9 0 Td
(\000\004) Tj
4 0 Td
(\000\034) Tj
9 0 Td
(\000\034) Tj
9 0 Td
(\000\017) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
16 -592 Td
(\000 ) Tj
12 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\035) Tj
7 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000*) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000$) Tj
9 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000%) Tj
8 0 Td
(\000\034) Tj
8 0 Td
(\000\017) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\0001) Tj
4 0 Td
(\000\013) Tj
5 0 Td
(\000\004) Tj
3 0 Td
(\000\005) Tj
7 0 Td
(\000\017) Tj
7 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000$) Tj
9 0 Td
(\000%) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\026) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000-) Tj
7 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000*) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\f) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\000\005) Tj
7 0 Td
(\000\004) Tj
3 0 Td
(\000\n) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\0003) Tj
10 0 Td
(\000\004) Tj
3 0 Td
(\000\013) Tj
5 0 Td
(\000*) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\004) Tj
3 0 Td
(\000\007) Tj
12 0 Td
(\000\002) Tj
4 0 Td
(\000/) Tj
9 0 Td
(\000\016) Tj
8 0 Td
(\0000) Tj
8 0 Td
(\0001) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\007) Tj
12 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\020) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\022) Tj
4 0 Td
(\000&) Tj
7 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\034) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000*) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
16 -610 Td
(\000\032) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\003) Tj
8 0 Td
(\000\022) Tj
4 0 Td
(\000\002) Tj
4 0 Td
(\000\005) Tj
7 0 Td
(\000\016) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\000\004) Tj
3 0 Td
(\000\020) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\002) Tj
4 0 Td
(\0001) Tj
4 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\005) Tj
7 0 Td
(\000\002) Tj
4 0 Td
(\0005) Tj
9 0 Td
(\000\013) Tj
5 0 Td
(\000\016) Tj
8 0 Td
(\000\007) Tj
12 0 Td
(\000%) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\0001) Tj
4 0 Td
(\000\013) Tj
5 0 Td
(\000\n) Tj
8 0 Td
(\000\004) Tj
3 0 Td
(\000\)) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
93 -642 Td
(\000\035) Tj
11 0 Td
(\000\b) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\005) Tj
4 0 Td
(\000\005) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\017) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F12 14 Tf
%Resolving: [31 0]
%Resolving: [12 0]
1 0 0 -1 0 0 Tm
93 -661 Td
(\000\036) Tj
10 0 Td
(\000\004) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\026) Tj
4 0 Td
(\000\037) Tj
13 0 Td
(\000\004) Tj
4 0 Td
(\000\006) Tj
8 0 Td
(\000\003) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\016) Tj
5 0 Td
(\000\026) Tj
4 0 Td
(\000\n) Tj
10 0 Td
(\000 ) Tj
9 0 Td
(\000\t) Tj
8 0 Td
(\000\f) Tj
9 0 Td
(\000\006) Tj
8 0 Td
(\000\026) Tj
ET
Q
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
BT
/F13 14 Tf
%Resolving: [31 0]
%Resolving: [13 0]
1 0 0 -1 0 0 Tm
93 -680 Td
(\000 ) Tj
12 0 Td
(\000%) Tj
8 0 Td
(\000\013) Tj
5 0 Td
(\000\022) Tj
4 0 Td
(\000\004) Tj
3 0 Td
(\000\b) Tj
8 0 Td
(\000%) Tj
8 0 Td
(\000\002) Tj
4 0 Td
(\0002) Tj
10 0 Td
(\000\016) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
8 0 Td
(\000\b) Tj
8 0 Td
(\000\026) Tj
3 0 Td
(\000\016) Tj
8 0 Td
(\000\020) Tj
8 0 Td
(\000\n) Tj
ET
Q
Q
Q
q
q
/CSp cs
%Resolving: [31 0]
0 0 0 scn
/GSa gs
%Resolving: [31 0]
%Resolving: [3 0]
0 0 0 SCN
0 w
2 J
0 j
[
]
0 d
0 0 0 SCN
0 w
2 J
2 j
[
]
0 d
Q
Q
%Resolving: [32 0]
[
]
endobj
%Resolving: [31 0]
GS>
D
D
Diego Nicola Barbato wrote on 17 Mar 2019 13:05
(address . bug-guix@gnu.org)(address . 34877@debbugs.gnu.org)
87pnqphfj5.fsf@GlaDOS.home
Hello Guix,

Diego Nicola Barbato <dnbarbato@posteo.de> writes:

Toggle quote (29 lines)
> Hello Guix,
>
> When converting certain PDF files to PostScript pdf2ps (from the
> Ghostscript package) will print the following error messages:
>
> --8<---------------cut here---------------start------------->8---
> **** Error reading a content stream. The page may be incomplete.
> Output may be incorrect.
> **** Error: File did not complete the page properly and may be damaged.
> Output may be incorrect.
> --8<---------------cut here---------------end--------------->8---
>
> The resulting file will be missing some (sometimes all) of the text.
>
> I have attached one such PDF, which I obtained from
> https://www.ichkoche.at/?ctl=recipe_pdf&recipe_id=3161, alongside the
> files generated by running pdf2ps on both Guix System and, for
> reference, Debian 9, where the conversion succeeds (even though they
> provide the same version (9.26 (2018-11-20)) of Ghostscript).
>
> I have also attached the results of running ‘gsnd -dPDFDEBUG’ on the
> offending file.
>
> I run Guix System (commit: 0bd1498) on x86_64.
>
> Regards,
>
> Diego

Unfortunately the original message did not make it to the mailing list
because the attachments were too big. It did make it to debbugs,
though, so the attachments should be available there

Regards,

Diego
L
L
Ludovic Courtès wrote on 14 Apr 2019 16:55
(name . Diego Nicola Barbato)(address . dnbarbato@posteo.de)(address . 34877@debbugs.gnu.org)
878swcljqd.fsf@gnu.org
Hi Diego,

Diego Nicola Barbato <dnbarbato@posteo.de> skribis:

Toggle quote (10 lines)
> When converting certain PDF files to PostScript pdf2ps (from the
> Ghostscript package) will print the following error messages:
>
> **** Error reading a content stream. The page may be incomplete.
> Output may be incorrect.
> **** Error: File did not complete the page properly and may be damaged.
> Output may be incorrect.
>
> The resulting file will be missing some (sometimes all) of the text.

I have spent time investigating this issue, in vain so far.

There’s already one conclusion that can be drawn: pdf2ps succeeds in my
experience with PDFs that do *not* embed fonts (one of the 14 standard
fonts.) It fails, as in this case, when fonts *are* embedded.

Looking at the strace output, I initially thought our gs was missing its
resource files: they were supposed to be compiled in
(“COMPILE_INITS=1”), but my understanding was that this was only the
case for the statically-linked gs, which we disabled in commit
eb354bdacbf4154ec66038dac07f19bf4ced1fad.

So I started by passing --disable-compile-inits and then fixing up
ENOENT issues that I could notice in the strace output (patch below),
but that didn’t make any difference.

I’m still not sure how to interpret this error, it’s really not clear to
me what it really means. Reports like
do with fonts, but it’s not all that clear in this case.

Anyway, it’s also clear that this is the same problem people experience
when printing.

Ideas welcome!

Ludo’.
Toggle diff (73 lines)
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 53a9b60fdb..9591dbdb1d 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2013, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
@@ -269,6 +269,59 @@ output file formats and printers.")
     (home-page "https://www.ghostscript.com/")
     (license license:agpl3+)))
 
+(define-public ghostscript/fixed
+  (package/inherit
+   ghostscript
+   (version (string-append (package-version ghostscript) "-1"))
+   (arguments
+    (substitute-keyword-arguments (package-arguments ghostscript)
+      ((#:configure-flags flags ''())
+       `(append (list "--disable-compile-inits"
+                      (string-append "--with-fontpath="
+                                     (assoc-ref %build-inputs "gs-fonts")
+                                     "/share/fonts/type1/ghostscript"))
+                ,flags))
+      ((#:phases phases '%standard-phases)
+       `(modify-phases ,phases
+          (add-after 'install 'create-cmap-symlink
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let* ((out     (assoc-ref outputs "out"))
+                     (init    (car (find-files out "^Init$"
+                                               #:directories? #t)))
+                     (fontdir (string-append out "/share/ghostscript/fonts"))
+                     (fontdir1 (string-append out "/share/fonts/type1/ghostscript")))
+                (symlink "../CMap"
+                         (string-append init "/CMap"))
+                (symlink "../Init/Fontmap"
+                         (string-append init "/../Font/Fontmap"))
+
+                (mkdir-p fontdir)
+                (symlink (string-append init "/Fontmap")
+                         (string-append fontdir "/Fontmap"))
+                (mkdir-p fontdir1)
+                (symlink (string-append init "/Fontmap")
+                         (string-append fontdir1 "/Fontmap"))
+                #t)))))))
+   (inputs `(("gs-fonts" ,gs-fonts)
+             ,@(package-inputs ghostscript)))))
+
+(define-public ghostscript/static
+  ;; Like before commit eb354bdacbf4154ec66038dac07f19bf4ced1fad.
+  (package
+    (inherit ghostscript)
+    (name "ghostscript-static")
+    (arguments
+     (substitute-keyword-arguments (package-arguments ghostscript)
+       ((#:phases phases '%standard-phases)
+        `(modify-phases ,phases
+           (replace 'build
+             (lambda _
+               (invoke "make" "-j5")))
+           (replace 'install
+             (lambda _
+               (invoke "make" "install")))
+           (delete 'create-gs-symlink)))))))
+
 (define-public ghostscript/x
   (package/inherit ghostscript
     (name (string-append (package-name ghostscript) "-with-x"))
L
L
Ludovic Courtès wrote on 10 May 2019 11:25
control message for bug #34877
(address . control@debbugs.gnu.org)
87d0kq3bm4.fsf@gnu.org
severity 34877 important
S
S
sirmacik wrote on 13 May 2019 12:22
re: #34877 Ghostscript: Missing text when converting PDF to PS
(address . 34877@debbugs.gnu.org)
20190513102242.GA6568@mail.freearts.agency
Hey Guix!

Unfortunately this is something that affects also printing from
pdfs. At this point I can see what my printing result will look like
by opening it in GNU Emacs DocView.

Maybe another way would be to package ghostscript the way Arch does?
It's gs gave me the best quality results I've had on any distro.
Main differences:
- no patches
- more libraries are provided from the system than currently in Guix.

Reference:

Unfortunately so far I haven't had the time to modify package in such
manner, but I'd be glad to do any testing necessary for this bug to be
fixed as it is the only blocker of my daily usage of GNU Guix System.

--
sirmacik
PGP: 0xE0DC81D523891771
S
S
sirmacik wrote on 13 May 2019 16:13
bug#34877
(address . 34877@debbugs.gnu.org)
20190513141354.GA27699@mail.freearts.agency
Hey Guix!

Unfortunately this is something that affects also printing from
pdfs. At this point I can see what my printing result will look like
by opening it in GNU Emacs DocView.

Maybe another way would be to package ghostscript the way Arch does?
It's gs gave me the best quality results I've had on any distro.
Main differences:
- no patches
- more libraries are provided from the system than currently in Guix.

Reference:

Unfortunately so far I haven't had the time to modify package in such
manner, but I'd be glad to do any testing necessary for this bug to be
fixed as it is the only blocker of my daily usage of GNU Guix System.

--
sirmacik
PGP: 0xE0DC81D523891771
L
L
Ludovic Courtès wrote on 25 Aug 2019 22:53
Re: bug#34877: Ghostscript: Missing text when converting PDF to PS
(name . Diego Nicola Barbato)(address . dnbarbato@posteo.de)
87wof1ufuq.fsf@gnu.org
Hello,

Diego Nicola Barbato <dnbarbato@posteo.de> skribis:

Toggle quote (8 lines)
> When converting certain PDF files to PostScript pdf2ps (from the
> Ghostscript package) will print the following error messages:
>
> **** Error reading a content stream. The page may be incomplete.
> Output may be incorrect.
> **** Error: File did not complete the page properly and may be damaged.
> Output may be incorrect.

sirmacik <sirmacik@wioo.waw.pl> skribis:

Toggle quote (4 lines)
> Unfortunately this is something that affects also printing from
> pdfs. At this point I can see what my printing result will look like
> by opening it in GNU Emacs DocView.

Good news everyone! Commit 466ff55c72959ba1499ce3ec69f534b3038eb30b
fixes it! The next commit makes a graft so that the working Ghoscript
is readily available to CUPS, etc.

It turned out that the primary issue was that Freetype was not found at
configure-time, due to the lack of pkg-config… The commit above
improves a couple of other things in passing, but adding Freetype for
good is apparently the decisive change.

Please let me know if DocView, pdf2ps, and CUPS and all right for you!

Thanks,
Ludo’.
Closed
S
S
sirmacik wrote on 29 Aug 2019 09:53
(address . 34877-done@debbugs.gnu.org)
28780838-18C5-457A-A231-9CE339FF5260@wioo.waw.pl
that's a great one to hear, thank you!

I'll try it out over the weekend.


Dnia 25 sierpnia 2019 22:53:17 CEST, "Ludovic Courtès" <ludo@gnu.org> napisaƂ(a):
Toggle quote (32 lines)
>Hello,
>
>Diego Nicola Barbato <dnbarbato@posteo.de> skribis:
>
>> When converting certain PDF files to PostScript pdf2ps (from the
>> Ghostscript package) will print the following error messages:
>>
>> **** Error reading a content stream. The page may be incomplete.
>> Output may be incorrect.
>> **** Error: File did not complete the page properly and may be
>damaged.
>> Output may be incorrect.
>
>sirmacik <sirmacik@wioo.waw.pl> skribis:
>
>> Unfortunately this is something that affects also printing from
>> pdfs. At this point I can see what my printing result will look like
>> by opening it in GNU Emacs DocView.
>
>Good news everyone! Commit 466ff55c72959ba1499ce3ec69f534b3038eb30b
>fixes it! The next commit makes a graft so that the working Ghoscript
>is readily available to CUPS, etc.
>
>It turned out that the primary issue was that Freetype was not found at
>configure-time, due to the lack of pkg-config… The commit above
>improves a couple of other things in passing, but adding Freetype for
>good is apparently the decisive change.
>
>Please let me know if DocView, pdf2ps, and CUPS and all right for you!
>
>Thanks,
>Ludo’.
Attachment: file
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 34877@debbugs.gnu.org