Bug#1134143: xpstopdf fails with “invalid content in attribute 'RenderTransform' of element 'Canvas': {StaticResource Matrix2}”

Albert Nash AlbertNash1 at ro.ru
Fri Apr 17 01:41:18 BST 2026


Package: libgxps-utils
Version: 0.3.2-4+b2

Grab https://github.com/HiraokaHyperTools/SampleXpsDocuments_1_0/raw/refs/heads/master/Handcrafted/ResourceDictionary.xps and issue

$ xpstopdf ResourceDictionary.xps ResourceDictionary.xps.pdf
Error rendering page 1: Error rendering page /Documents/1/Pages/1.fpage: /Documents/1/Pages/1.fpage:12:124 invalid content in attribute 'RenderTransform' of element 'Canvas': {StaticResource Matrix2}
$ mupdf ResourceDictionary.xps &
$ mupdf ResourceDictionary.xps.pdf &

Observe that the images are not rendered at all or properly. In the screenshot in the attachment, the left document is the original XPS, and the right one is the converted one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comparison_of_ResourceDictionary.xps_with_its_conversion.png
Type: image/png
Size: 41350 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20260417/e31b70b0/attachment-0001.png>


More information about the pkg-gnome-maintainers mailing list