react-to-pdf icon indicating copy to clipboard operation
react-to-pdf copied to clipboard

Line cutoff between pages

Open Supcar27 opened this issue 1 year ago • 6 comments

I just started playing around with this library it looks cool but i ran into the following issue when the content is large enough and a new page is created the line gets cutoff,

here's a screenshot of this

Screenshot 2024-04-02 155824

i did see in jsPdf github issues here that this can be resolved by passing

autoPaging: "text"

im just not sure where i would do that here, and if thats really the answer

Supcar27 avatar Apr 02 '24 20:04 Supcar27

Very relevant for me as well

Kimblis avatar May 09 '24 15:05 Kimblis

This is relevant for me too.

grutkowska avatar May 28 '24 11:05 grutkowska

same. There's no way to control a page break which is probably crucial to a lot of people. It can cut between words or images.

kimolife avatar May 29 '24 02:05 kimolife

+1

HoSeopLee avatar Aug 21 '24 05:08 HoSeopLee

Did you find a solution?

jh-9527 avatar Aug 29 '24 01:08 jh-9527

+1

PSMJonas avatar Sep 17 '24 11:09 PSMJonas

+1

heytulsiprasad avatar Dec 27 '24 17:12 heytulsiprasad

+1

BlackFuffey avatar Apr 02 '25 18:04 BlackFuffey

+1

codevjs avatar Apr 08 '25 02:04 codevjs

+1

MaQianheng avatar Apr 08 '25 10:04 MaQianheng

+1

meta-panic avatar Jun 24 '25 20:06 meta-panic

+1

hugotox avatar Jul 02 '25 18:07 hugotox

+1

muhaimincs avatar Jul 19 '25 14:07 muhaimincs

It was fixed for me by explicitly stating the margin and format

page: { margin: Margin.LARGE, format: "A4" },

ChrisRandleNobiaUK avatar Nov 07 '25 08:11 ChrisRandleNobiaUK

+1

Whitelistedd avatar Nov 19 '25 14:11 Whitelistedd