Pdf 使用phantomJS将长html转换为多个页面

Pdf 使用phantomJS将长html转换为多个页面,pdf,phantomjs,pdf-generation,Pdf,Phantomjs,Pdf Generation,我有一个长的html页面,有3个相等的块,如图所示。我需要将其转换为pdf格式的第1、2和3页。是否有一些设置允许我这样做?目前它将整个html转换为一个页面 我正在使用phantomjs将html转换为pdf $phantomjs rasterize.js“http://exampleschools.com/Albury_High_School/1.html“albury.pdf $phantomjs rasterize.js”http://exampleschools.com/Albur

我有一个长的html页面,有3个相等的块,如图所示。我需要将其转换为pdf格式的第1、2和3页。是否有一些设置允许我这样做?目前它将整个html转换为一个页面

我正在使用phantomjs将html转换为pdf


$phantomjs rasterize.js“http://exampleschools.com/Albury_High_School/1.html“albury.pdf

$phantomjs rasterize.js”http://exampleschools.com/Albury_High_School/1.html“albury.pdf”909px*1286px“
似乎在起作用。