sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.49k stars 1.72k forks source link

Text not displaying on 3.2 and newer #2989

Open Skaramuche opened 2 years ago

Skaramuche commented 2 years ago

I downloaded an RPG book I'd just purchased and opened it in SPDF. I read the first few chapters on my home computer. Later, I attempted to keep reading, on a laptop. When I opened the doc on the laptop, the backgrounds were still there, but all the text was gone.

Trying to bisect the issue I realized that my home computer was pretty out of date; it was still running SPDF 3.1.2. The laptop was on 3.3. I checked, and the text vanishes on any version 3.2 or newer. Something regressed there that made all the text in this file stop working. The text is perfectly visible if i open the PDF in Firefox, or PDF-XChange, or etc.--this seems to be firmly a SPDF problem. Below are images of how the doc appears in the working and nonworking versions, and a few extracted pages of the PDF.

nonworking version working version sample pages.pdf

GitHubRulesOK commented 2 years ago

@kjk Same issue in 3.5.1524# text visibility has been OCG viewing switched off in the PDF ! is there an optional MuPDF setting since apparently others ignore the off command.

There is a secondary oddity in that supposedly same versions behave different on different devices? see https://github.com/sumatrapdfreader/sumatrapdf/discussions/2977?

Here is the file with OCG view ON sample.pages(Text ON).pdf

DeclanGS commented 2 years ago

ah- no, sorry, those are both me, i've ended up with two accounts somehow. when i made the original discussion (hoping that this was a known issue and didn't need a new bug report) i was mistaken about what version my desktop computer was on.

GitHubRulesOK commented 2 years ago

@DeclanGS Thanks for that so we can agree old 3.1.2 ignored text off but 3.2+ does not newer MuPDF code apparently honors the Optional Content Designer View Only (not User View) setting

In some ways this is an issue with that PDF rather than PDF viewer but it looks like a regression as now more intent Complient !

DeclanGS commented 2 years ago

hmmm. That makes sense as far as it goes, but it suggests that no other PDF viewer (firefox, chrome, acrobat reader...) is respecting those OCG rules properly. which seems unlikely. unless the rules are deprecated or something? Or is SumatraPDF viewing in some unlikely mode that no other viewer uses, or something?

GitHubRulesOK commented 2 years ago

The sample file was written by tracker exchange which is what I used to see the cause in layer controls, only one of two layers are lit.

In Adobe acrobat viewer one Layer is switchable (the surround) but the text is not viewer switchable (SumatraPDF does not offer layer controls), however there seems to be some Apparent / OR NOT in this case confusion as to those states. Acrobat agrees its a reference layer and its artwork but shows as default should be on image