gitbook2pdf icon indicating copy to clipboard operation
gitbook2pdf copied to clipboard

Grab the contents of the gitbook document and convert it to pdf

Results 33 gitbook2pdf issues
Sort by recently updated
recently updated
newest added

upgrade depency package version: requests==2.27.1 WeasyPrint==54.1 fix image cannot display issues: https://github.com/fuergaosi233/gitbook2pdf/issues/54 https://github.com/fuergaosi233/gitbook2pdf/issues/72 add github action: docker build and pull to dockerhub

Hi, No errors during execution, getting: crawl : all done! Generating pdf,please wait patiently Generated But both files in output are empty. Did anyone manage to solve this?

Collecting cffi==1.12.2 Using cached cffi-1.12.2.tar.gz (453 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [20 lines of...

编排compose,配置环境,一键运行。

```shell python gitbook.py https://lingcoder.gitee.io/onjava8/#/sidebar ``` ![空白pdf](https://github.com/kailiu119/blog_img/blob/master/[email protected]?raw=true) 不知道是否因为目录链接里面有井号orz

https://wizardforcel.gitbooks.io/sicp-py/content/ 使用[docker镜像](https://github.com/soulteary/docker-gitbook-pdf-generator) 或者在archlinux下使用 https://github.com/fuergaosi233/gitbook2pdf/pull/102 生成的pdf中,均出现问题 例子:https://wizardforcel.gitbooks.io/sicp-py/content/1.3.html 网站显示: ![image](https://user-images.githubusercontent.com/11155705/171007018-55cd5eeb-d0b7-4acc-8b11-80e0cd117a0b.png) PDF: ![image](https://user-images.githubusercontent.com/11155705/171007277-94da9877-1cbb-4904-ba5a-8186c6c21244.png)

系统:centos python版本:3.7 ![image](https://user-images.githubusercontent.com/49665472/94382854-d5ced900-0170-11eb-9930-42b024ac02f2.png)

(venv3) PS D:\gitbook2pdf-master> python3 gitbook.py http://self-publishin crawling : http://self-publishing.ebookchain.org/index.html crawling : http://self-publishing.ebookchain.org/1-干嘛要写书?/1-写书的必要性/readme.html crawling : http://self-publishing.ebookchain.org/1-干嘛要写书?/2-写书的好处/readme.html crawling : http://self-publishing.ebookchain.org/2-什么是自出版平台?/readme.html crawling : http://self-publishing.ebookchain.org/3-如何打造自己的平台?/readme.html crawling : http://self-publishing.ebookchain.org/3-如何打造自己的平台?/1-Summary的安装.html crawling : http://self-publishing.ebookchain.org/3-如何打造自己的平台?/2-Summary的使用.html crawling : http://self-publishing.ebookchain.org/3-如何打造自己的平台?/3-电子书的生成.html...

File "D:\ProgramFiles\Miniconda\envs\env_gitbook\lib\site-packages\cairocffi\__init__.py", line 36, in dlopen raise OSError("dlopen() failed to load a library: %s" % ' / '.join(names)) OSError: dlopen() failed to load a library: cairo / cairo-2 / cairo-gobject-2...

``` ERROR: Command errored out with exit status 1: command: 'C:\Users\ykla\AppData\Local\Programs\Python\Python310\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-bujdn8g_\\cffi_0d64212d60404156b1e60a30f9812ad8\\setup.py'"'"'; __file__='"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-bujdn8g_\\cffi_0d64212d60404156b1e60a30f9812ad8\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from...