evmer / perlego-downloader

Download books from Perlego.com in PDF format
MIT License
117 stars 54 forks source link

PdfMerger Error #55

Open MajidAmin112 opened 1 year ago

MajidAmin112 commented 1 year ago

Hello Team,

There is an error during merger pdf files, A blank pdf file generated in folder. what to do now?

Please resolve the issue.

romantci2710 commented 1 year ago

I have the same issue with bookID "3476307" image

kasziber commented 1 year ago

I had the same Error. It was fixed when i added the line 'executablePath': 'C:\Program Files\Google\Chrome\Application\chrome.exe', in line 174. It looks like this now:

# start headless chrome
browser = await launch(options={
        'headless': True,
        'autoClose': False,
                    'executablePath': 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
        'args': [
            '--no-sandbox',
            '--disable-setuid-sandbox',
            '--disable-dev-shm-usage',
            '--disable-accelerated-2d-canvas',
            '--no-first-run',
            '--no-zygote',
            '--single-process',
            '--disable-gpu',
            '--disable-web-security',
            '--webkit-print-color-adjust',
            '--disable-extensions'
        ],
    },
)