-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paragraphs issue #5
Comments
Thanks for reporting this to me. After some research I found that this is related to a pdfkit/wkhtmltopdf bug that seems to have been ongoing for 4+ years: wkhtmltopdf/wkhtmltopdf#3256 Unfortunately there's no solution yet, so all I can do is refactor the script replacing pdfkit with another html2pdf library. It's going to take some time, maybe in the next few days I'll come up with something working. |
@evmer well you can check this topic mostly peoples fixed in dpi setting and some not |
@jaan143 I refactored the script replacing pdfkit with pyppeteer. Now this bug should be fixed, you can try yourself. Don't forget to update the python requirements:
|
@evmer thanks for your efforts Dear :) page 347 downloaded PS C:\Users\Hp\Downloads\Compressed\perlego-downloader-main\perlego-downloader-main_4 (new pdf convert library)\perlego-downloader-main> |
@jaan143 seems your system is missing some required dependencies: |
@evmer check this i read a lot topics and they fixing issue in their project code here is main link and it is also no more updating are you tried it in windows os ? |
@jaan143 can you please describe better your issue? This is just a warning and shouldn't break the script execution:
Try to reinstall the latest version of Python and upgrade the required dependencies. |
@evmer actually issue is the same which i show above Traceback (most recent call last): PS C:\Users\Hp\Downloads\Compressed\perlego-downloader-main\perlego-downloader-main_4 (new pdf convert library)\perlego-downloader-main> |
@jaan143 I updated the script, can you please try now? |
@evmer ok let me confirm you |
@evmer still the same. what OS you are using ? PS C:\Users\Hp\Downloads\Compressed\perlego-downloader-main\perlego-downloader-main 5\perlego-downloader-main> |
@jaan143 I tested it on MacOSX, Linux (Debian) and Windows 10, so it seems a problem related to your configuration. Can you please follow these instructions for troubleshoot and post the output here? |
@evmer he saying copy command and run in powershell or cmd but he is asking for docker or aws. |
@jaan143 can you please copy-paste the printed command and run it? I mean this: |
@evmer here is |
@jaan143 to run an executable on powershell you first have to 'dot' source the script, so for you:
|
@evmer here is with dot |
@jaan143 I'm not familiar with powershell, try to google the error and make it work |
@evmer here is cmd |
@evmer this script is also same working like yours. it is downloading html pages and then making epub. so you can get help from it and make epub file which will more best |
did you have a plan to update |
@evmer i dont want to delete html files so can you tell me which lines i need to remove from script code |
Guys, this is not a chat group, please try to follow the Github's guidelines. The original problem was solved by replacing pdfkit with pyppeteer so now I'll mark this as closed. Feel free to open a new request providing detailed info about your issue. @lilfmdude please see my reply to #7. |
fix issues reported in #5 #8 see pyppeteer/pyppeteer#143
@evmer its done now |
Finally! 😅 So was the missing chromedriver the issue? |
@evmer no. it was already set in path |
You can try to adjust the margins setting a different value (in pixels) at line 209: https://github.com/evmer/perlego-downloader/blob/main/downloader.py#L209
Just try to increase them and see how the output looks like |
Can you please elaborate the solution step-by-step? It's a very common issue and you'd make many users happy. Thank you! |
@evmer can i also set page size like A4 or letter ? |
@evmer see this |
please check whole book have this text issue
this is book link
https://www.perlego.com/book/3294395/second-language-pronunciation-bridging-the-gap-between-research-and-teaching-pdf
The text was updated successfully, but these errors were encountered: