Answer the question
In order to leave comments, you need to log in
Is there a service or tool to transfer source code to print?
Maybe someone will tell you if there is such a service so that you can upload the archive with the project there, and it will give you a pdf file with all your sources and each page is marked to which file it belongs, ideally - if the content also creates which file to which page.
If in the context of the task - I want to print the source code of some open source product and study them on the way to the university, to work, so as not to waste time. I like to read from my phone, but I want the code on paper: to highlight interesting places, faster navigation and other goodies of the "paper edition".
PS Yes, I know, there is software that allows you to add notes / bookmarks / highlights / notes, etc. on android, I tried it, it’s not convenient, it’s more convenient on paper with a pen
Answer the question
In order to leave comments, you need to log in
Interest Ask. I searched a little and found in this project https://code.google.com/p/code-to-pdf/
It is clear from the description that it prints 1 file. But if the project does this task well, then it should be easy to automate traversing the project's file tree and calling this tool for each file. The resulting PDFs can be glued together with some other tool.
Perhaps this project can print many files to pdf at once (a tree of files is possible).
Haven't tried it personally.
UPD:
Let source be the project folder, and let's say it's java. We will put pdfs in the output folder.
#!/bin/bash
find source -name '*.java' -exec bash -c 'code-to-pdf $0 output/$0.pdf' {} \; //находим все файлы джава, дергаем для каждого код-ту-пдф и пдфку сохраняем в папке аутпут.
convert output/*.pdf out.pdf // склеиваем все пдфки в один out.pdf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question