Learning-Bitcoin-from-the-Command-Line icon indicating copy to clipboard operation
Learning-Bitcoin-from-the-Command-Line copied to clipboard

Is it possible to compile this book to pdf?

Open younicoin opened this issue 1 year ago • 3 comments

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 avatar Apr 02 '23 20:04 younicoin

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

younicoin avatar May 30 '23 14:05 younicoin

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.

shannona avatar May 30 '23 17:05 shannona

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

younicoin avatar Jun 01 '23 07:06 younicoin