Skip to content
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

Is it possible to compile this book to pdf? #601

Open
younicoin opened this issue Apr 2, 2023 · 3 comments
Open

Is it possible to compile this book to pdf? #601

younicoin opened this issue Apr 2, 2023 · 3 comments

Comments

@younicoin
Copy link

Hello. This is very useful info. The project has extended Readme. I also would like to have a paragrapgs "Build md", "Convert to pdf".
Is it possible to get pdf version with all necessary code examples from src and with pics also?

@younicoin
Copy link
Author

younicoin commented May 30, 2023

finally did with grip and wkhtmltopdf
https://github.com/younicoin/crypto_docs/blob/master/Learning-Bitcoin-from-the-Command-Line.pdf

grip 06_1_Sending_a_Transaction_to_a_Multisig.md 6655
while read l; do for i in `ls ${l}_*`; do grip $i 6699 & sleep 3; wkhtmltopdf http://localhost:6699 /mnt/disk-evo-500-2/temp/ll/${i}.pdf; sleep 2.5; fuser 6699/tcp -k; done; done < <(echo `seq -w 20` A1 A2 A3 | tr ' ' '\n')
   GitHub imposes a limit of 60 requests/hour when using their API without authentication.
#increase dealy to 20 seconds
while read l; do for i in `ls ${l}_*`; do grip $i 6699 & sleep 10; wkhtmltopdf http://localhost:6699 /mnt/disk-evo-500-2/temp/ll2/${i}.pdf; sleep 10; fuser 6699/tcp -k; done; done < <(echo `seq -w 20` A1 A2 A3 | tr ' ' '\n')

qpdf --empty --pages `ls -tr` -- ../combined.pdf

@shannona
Copy link
Collaborator

That looks like a terrific resource @younicoin. Please feel to upload it in a PR as something like lbtcftcl-v220.pdf and I'd love to link it in for other people to use.

@younicoin
Copy link
Author

yes, you are right. prepared my repository with your advice https://github.com/younicoin/crypto_docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants