[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#425405: Not a bug



Control: reassign -1 printer-driver-cups-pdf
Control: unarchive 847462
Control: forcemerge -1 847462

Quoting alex (2021-06-03 09:36:51)
> How Ghostscript can guess what Unicode code points
> correspond to the characters in the sample PS file?
> The PS file gives no clues at all.
> 
> Modern programs can search the attached PDF file by
> assuming that encoding is ASCII of some standard encoding
> similar to ASCII..
> 
> IMHO it is not a bug. At least it is not a Ghostscript bug.

I agree that this is unlikely a bug in Ghostscript.

The test PDF provided by Jonathan Nieder _is_ searchable with Evince 
3.38.2-1.

If same file was not searchable with Evince available in January 2011, 
then the issue might be the encoding of the strings in the PDF, or it 
might be something else that confused that older release of Evince.

But that test file was produced by LibreOffice.  I would expect that a 
file generated by cups-pdf would instead have cups-pdf as creator in the 
metadata.

I therefore suspect that the test PDF file should be ignored for this 
issue, and that the originally reported issue is a different one: 
Ghostscript primarily renders a "painting" and secondarily preserves as 
metadata high-level information like strings of text and color spaces.

One way metadata is lost is if CUPS filters use Postsript as 
intermediary format.  That was the case in the past but the default 
should nowadays use PDF as intermediary format.

Another way that metadata is "lost" is if it was not really there in the 
first place - e.g. because it was dropped before being handed to 
Ghostscript.

For the record: If you suspect that an issue is in Ghostscript then 
please provide the ghostscript command that causes this issue - without 
that the only possible action is to tag it as unreproducible and close 
it, which is not really helpful.

This issue is highly likely a duplicate of 847462 - thus merging.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: