Corrupted PDF with lualatex + gs 10.04.0
Zdenek Wagner
zdenek.wagner at gmail.com
Wed Dec 18 16:51:26 CET 2024
st 18. 12. 2024 v 16:35 odesílatel Norbert Preining
<norbert at preining.info> napsal:
>
> Hi Zdenek,
>
> On Wed, 18 Dec 2024, Zdenek Wagner wrote:
> > I have gs 10.02.1 and 10.03.1 on different Linux computers and both
> > work fine, thus it must be something wrong in gs. It mighr even be
>
> I think you misunderstood the problem - I did it, too!
>
> The conversion works without a problem, same on my side.
>
> The problem is that:
> - open the converted test.pdf.pdf with a viewer (like okular)
> - select the "Foo." text
> - past the selection somewhere else and it will show "6QQX"
>
> I can confirm this. Probably some case of cidunicode not being loaded?
>
I dit copy & paste from okular to kate and I get Foo. in all cases. In
order to visualize the PDF internals I did
qpdf test.pdf --qdf test.qdf (and similarly for test.pdf.pdf) and
opened the qdf file in kate. The mapping is
from lualatex:
%% Original object ID: 11 0
13 0 obj
<<
/Length 14 0 R
>>
stream
%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: ProcSet (CIDInit)
%%IncludeResource: ProcSet (CIDInit)
%%BeginResource: CMap (TeX-FYVVAA-LMRoman10-Regular-0)
%%Title: (TeX-FYVVAA-LMRoman10-Regular-0 TeX FYVVAA-LMRoman10-Regular 0)
%%Version: 1.000
%%EndComments
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (TeX)
/Ordering (FYVVAA-LMRoman10-Regular)
/Supplement 0
>> def
/CMapName /TeX-Identity-FYVVAA-LMRoman10-Regular def
/CMapType 2 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
0 beginbfrange
endbfrange
4 beginbfchar
<0036> <0046>
<0051> <006F>
<0052> <0031>
<0058> <002E>
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
%%EndResource
%%EOF
endstream
endobj
from gs:
%% Original object ID: 13 0
12 0 obj
<<
/Length 13 0 R
>>
stream
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CMapType 2 def
/CMapName/R13 def
1 begincodespacerange
<0000><ffff>
endcodespacerange
4 beginbfrange
<0036><0036><0046>
<0051><0051><006f>
<0052><0052><0031>
<0058><0058><002e>
endbfrange
endcmap
CMapName currentdict /CMap defineresource pop
end end
endstream
endobj
It really needs four characters: F o . 1 (page number)
> Best regards
>
Zdeněk Wagner
https://www.zdenek-wagner.eu/
> Norbert
>
> --
> PREINING Norbert https://www.preining.info
> arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live
> GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the tex-live
mailing list.