Wednesday, 15 March 2017

PhantomJS cutting/splitting words in half across page breaks

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

The length of data is unknown until runtime so I don't see it being feasible to put a hard page break in the rows of data.

  1. Which version of PhantomJS are you using? phantomjs-node ^v2.1.21

  2. What steps will reproduce the problem?

    a. Create multi page website

    b. Render as pdf

  3. Which operating system are you using? windows 10 x64

  4. Did you use binary PhantomJS or did you compile it from source? phantomjs-node pre-compiled

  5. Please provide any additional information below.

phantomjs_cutting_words_in_half_across_page_breaks



via TetraDev

No comments:

Post a Comment