|
1 | 1 | This program is designed to allow anyone to easily modify an existing pdf of any number of pages to pdf ready to print to a booklet for book binding projects. |
2 | 2 |
|
3 | | -Provided in releases is the Linux build. This can be run in terminal by using ./PDFBookletMaker with the following 3 required parameters: |
4 | | --source (-s) the location of the source pdf on your machine |
5 | | --dest (-d) the output location of the finished result |
6 | | --bsize (-b) the number of pages you desire for each booklet. This MUST be a multiple of 4 and a postive integer. |
| 3 | +Provided in releases is the Linux build. This can be run in terminal by using ```./PDFBookletMaker``` with the following 3 required parameters:<br /> |
| 4 | +```-source``` (```-s```) the location of the source pdf on your machine<br /> |
| 5 | +```-dest``` (```-d```) the output location of the finished result<br /> |
| 6 | +```-bsize``` (```-b```) the number of pages you desire for each booklet. This MUST be a multiple of 4 and a postive integer.<br /> |
7 | 7 |
|
8 | | -Once you run this command the application will process the pdf and determine if extra pages are needed. It will prompt you if the needed pages added to front and pack is acceptable. For example a 70 page document using a booklet size of 12 pages would require 6 booklets. However 6*12=72. So the application would ask if you would like to add 1 blank page to the front and 1 to the back. If you respond with Y then the application will add those pages and rearrange the page order appropriately. If you say no the program finishes with no action. |
| 8 | +Once you run this command the application will process the pdf and determine if extra pages are needed. It will prompt you if the needed pages added to front and pack is acceptable. |
| 9 | + |
| 10 | +For example a 70 page document using a booklet size of 12 pages would require 6 booklets. However 6*12=72. So the application would ask if you would like to add 1 blank page to the front and 1 to the back. If you respond with Y then the application will add those pages and rearrange the page order appropriately. If you say no the program finishes with no action. |
9 | 11 |
|
10 | 12 | Resulting PDF can then be printed using a duplex printer. Choose 2 pages per side/sheet and use Short-edge binding when printing for a booklet. I recommend printing the first 4 pages (1st folio) to test that your booklets are printing correctly. |
11 | 13 |
|
12 | | -If you would like to run this program on windows you will need to compile it yourself. Download the source and in vs.code using the terminal enter the command "dotnet publish --configuration Release". Doing this on a windows machine should generate an exe which you can use in command prompt. (I don't have a windows machine) |
| 14 | +If you would like to run this program on windows you will need to compile it yourself. Download the source and in vs.code using the terminal use the command ```dotnet publish --configuration Release``` from the root repo directory. Doing this on a windows machine should generate an exe which you can use in command prompt. (I don't have a windows machine) |
13 | 15 |
|
14 | | -To run this on any platform, install dotnet and use the command "dotnet PDFBookletMaker.dll" with the appropriate parameters. |
| 16 | +To run this on any platform, install dotnet and use the command:<br/> |
| 17 | +```dotnet PDFBookletMaker.dll -s "sourcefile.pdf" -d "output.pdf" -b 12``` with the appropriate parameters modified. |
15 | 18 |
|
16 | | -I created this application for my own purposes very quickly so excellent Object Oriented principles were not followed. Feel free to modify as you see fit. |
| 19 | +I created this application for my own purposes very quickly. Excellent Object Oriented principles were not followed. Feel free to modify as you see fit. |
17 | 20 |
|
18 | 21 | This was developed and built in .net 6 because I was too lazy to update. Code changes may be necessary if you are trying to build with a newer version of .net. |
19 | 22 |
|
20 | | -Good luck Sewing! |
| 23 | +Good luck Sewing! |
0 commit comments