Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

PhantomJS cutting/splitting words in half across page breaks #14892

Closed
IAMtheIAM opened this issue Mar 13, 2017 · 4 comments
Closed

PhantomJS cutting/splitting words in half across page breaks #14892

IAMtheIAM opened this issue Mar 13, 2017 · 4 comments
Labels

Comments

@IAMtheIAM
Copy link

IAMtheIAM commented Mar 13, 2017

  1. Which version of PhantomJS are you using? Tip: run phantomjs --version.
    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.

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?

phantomjs_cutting_words_in_half_across_page_breaks

@IAMtheIAM IAMtheIAM changed the title PhantomJS cutting/splitting words in half across page breaks.png PhantomJS cutting/splitting words in half across page breaks Mar 13, 2017
@vamsimutyala
Copy link

@IAMtheIAM Did you find any work around for this problem ?

@visvk
Copy link

visvk commented Oct 12, 2017

@IAMtheIAM Is there any work around?

@theaspect
Copy link

Try page-break-inside:avoid could help, or not

@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants