D
D
Dmitry2021-02-04 17:27:33
PDF
Dmitry, 2021-02-04 17:27:33

How to make pdfkit scale the sheet to fit all the information instead of creating new sheets?

Hello. I need to create a pdf from html using pdfkit python but I need either to create a pdf with only 1 page i.e. so that instead of transferring content that does not fit to a new page, it simply increases the height of the first one, but I just can’t find such an option. I also want it to fill the empty space with a different color than white.
601c04345a423643492612.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kulaeff, 2017-08-11
@Crushing

Nothing is clear in your screenshot, but in order to darken or lighten any element, you can use the :after or :before pseudo-class.
Example https://jsfiddle.net/sma9j1s5/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question