Pdf cut off with headless conversion

Hi - I’m using libreoffice in headless mode with unix to convert-to pdf from html. My html file is quite tall. Right now my conversion just cuts the file off in a weird place. I need to know how I can make sure the whole file is converted? What if I wanted to split into pages?

My command so far is 'libreoffice --headless --convert-to pdf --outdir /tmp ’

It is possibly related to a limitation of PDF page size to 508 cm (you didn’t mention what actual size does your PDF contain), which was removed recently - which should be available in v.7.0 (again, you didn’t mention your LO version).

The problem is I’m not sure - I’m using a Docker image and the docker file just says

FROM node:12
RUN apt-get update -y
&& apt-get install -y libreoffice
&& apt-get clean

I think I need to specify the ppa version but not sure how to do that in Docker?