Bug 702012 - Misplaced elements
Summary: Misplaced elements
Status: UNCONFIRMED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: master
Hardware: PC Windows 10
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-24 02:30 UTC by Krzysztof Kowalczyk
Modified: 2020-01-03 14:12 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Repro file (2.52 MB, application/pdf)
2019-12-24 02:30 UTC, Krzysztof Kowalczyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Kowalczyk 2019-12-24 02:30:18 UTC
Created attachment 18741 [details]
Repro file

Originally reported against SumatraPDF: https://github.com/sumatrapdfreader/sumatrapdf/issues/1167

I verified it still happens in 1.16

On page 4 and 5, some parts are placed differently than e.g. Chrome (i.e. Foxit) or pdf.js
Comment 1 Tor Andersson 2020-01-03 14:12:47 UTC
This looks like a tiling pattern is not being correctly tiled.

The papyrus pattern background is only drawn once, and not stepped. The Matrix and XStep/YStep values and transform used during rendering are pretty extreme, so it may be related to precision issues or a forgotten transform somewhere.

The pattern dictionary for page 4 (object 47) has these entries:

  /BBox [ 0 0 1625600 1625600 ]
  /XStep 1625600
  /YStep 1625600
  /Matrix [ .00007559055 0 0 .00007559055 16.37504 168.7761 ]

And this content stream:

  q
  1625600 0 0 1625600 0 0 cm
  /Im8 Do
  Q