// fixed text align justify before images page class fixJustif extends Paged.Handler { constructor(chunker, polisher, caller) { super(chunker, polisher, caller); } afterRendered(pages){ for(let i=0; i p:last-child"); // console.log(selectedPage, selectedLastP); if(selectedLastP != null){ selectedLastP.style.textAlignLast = "justify"; } } } } } } Paged.registerHandlers(fixJustif);