PhantomJS cuts / halves words into page breaks

I am using phantomjs-node api to render PDF. The problem is that the words that appear closer to the end of the page are divided into 2 pages, half the word on page 1, the other half on page 2. I do not understand why this is happening. What can I do to fix this? I already created a problem on phantomjs github with no response.

The data length is not known until runtime, so I don’t see it being possible to set a hard page break in the data rows.

  • What version of PhantomJS are you using? phantomjs- node ^ v2.1.21

  • What steps will reproduce the problem?

    a. Creating a multi-page website

    b. Pdf rendering

  • What operating system are you using? windows 10 x64

  • Did you use binary PhantomJS or did you compile it from source? phantomjs-node precompiled

  • Please provide any additional information below.

phantomjs_cutting_words_in_half_across_page_breaks

+5
source share

Source: https://habr.com/ru/post/1265511/


All Articles