luabagg / orcgen

Web pages and HTML content conversion
https://pkg.go.dev/github.com/luabagg/orcgen
MIT License
9 stars 4 forks source link

When the page exceeds 2 pages, only 1 page can be downloaded. #1

Closed richardgong1987 closed 6 months ago

richardgong1987 commented 6 months ago

When the page exceeds 2 pages, only 1 page can be downloaded.

richardgong1987 commented 6 months ago

Sorry, seems it support full page:

{
            name:     "fullpage",
            instance: pdfBuilder.SetFullPage(true),
            input:    b.MustPage("https://www.example.com").MustWaitLoad(),
        },

let me check again. thank you

richardgong1987 commented 6 months ago

ignore it

luabagg commented 6 months ago

Yes, it supports full page, but when using PNG or JPG it may become too stretched. Maybe I'll refactor it in the future to enable more configurations, e.g. generate a folder of images of each page.

richardgong1987 commented 6 months ago

Yes, I also found this problem. I mainly use this package to generate PDF in the company's internal projects. I found that it will stretch. I think setting the width and height of the headless browser can solve the problem.