This issue has been created
There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8d648d8d-9547-4c84-b458-6b4d5a9338ce XWIKI-23726 Open

Upgrade pagedjs to 0.5.0

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5d44b72e-a57f-412c-8796-f53613516f11 Marius Dumitru Florea created this issue on 18/Nov/25 10:12
 
Summary: Upgrade pagedjs to 0.5.0
Issue Type: cid:jira-generated-image-avatar-8d648d8d-9547-4c84-b458-6b4d5a9338ce Task
Affects Versions: 17.9.0
Assignee: Unassigned
Components: Export - PDF
Created: 18/Nov/25 10:12
Priority: cid:jira-generated-image-static-major-25e83f9b-0d13-466b-98e3-979f50409ebf Major
Reporter: Marius Dumitru Florea
Description:

There is only a 0.5.0-beta.2 version available currently, see https://www.npmjs.com/package/pagedjs?activeTab=versions . Fortunately, there are signs that we'll have a 0.5.0 version https://pagedjs.org/posts/en/kickstarting-the-next-iteration-of-paged.js/ . We hope the new version to fix the rendering of tables with cells that span multiple rows / columns.

 
 

1 comment

 
cid:jira-generated-image-avatar-5d44b72e-a57f-412c-8796-f53613516f11 Marius Dumitru Florea on 18/Nov/25 10:21
 

I tried the beta version, but it doesn't work out of the box. Some new code is conflicting with Prototype.js because Prototype.js is overwriting standard JavaScript types, such as Array. I managed to fix this and run our automated tests. I got some failures, most of which needed only test code updates, but some were real problems. Precisely, the floatingImage test is concerning because images at the end of a print page are cut, and the surrounding text is partially lost. This seems to match:

While reading the comments I noticed someone mentioning a new library, similar to paged.js, namely https://github.com/neocode-it/paginatejs , see also https://paginatejs.gitbook.io/docs , that we may want to look at, as a replacement for paged.js, in case development for paged.js stalls.