code2pdf is a program that converts all text-type files within a specified folder into a single PDF file. It attaches the directory structure diagram at the beginning of the PDF and appends the contents of each file afterward.
中文 | عربي | বাংলা | Deutsch | Français | हिंदी | 日本 | 한국인 | Português | Русский
- Place the code2pdf tool inside your project folder directory.
- Run code2pdf and take a sip of water.
- open the generated file 1.pdf to view the results.
Usage of code2pdf:
-addfiles string
If the generated PDF is missing some files, manually add them using this parameter. For example, -addfiles=".abc|.cba"
-dir string
Specify the folder you want to convert to PDF.
-fontfile string
Set the font file path (default "C:\Windows\Fonts\simfang.ttf").
-fontsize int
Set the font size in the PDF (default 14).
-fonttype string
Specify the font format in the font file to use (default "fangsong").
-pdfname string
Set the file name of the converted PDF (default "1.pdf").