I need to merge cells vertically so I found a sample code here at stackoverflow and it works ok, but afterwards when converting my XWPFDocument to pdf I\'m getting following