Guest User

create_pdf.bat

a guest
Feb 7th, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.49 KB | None | 0 0
  1. @echo off
  2.  
  3. IF [%1]==[] (goto usage)
  4. IF [%2]==[] (goto longscroll)
  5. IF NOT [%2]==[] (goto default)
  6.  
  7. :usage
  8. echo Usage is ^<folder to process^> ^<longscroll^>
  9. echo Example: create_pdf.bat bloom_into_you longscroll
  10. echo Creates a PDF with the name of the folder in long scroll format
  11. echo Example: create_pdf.bat bloom_into_you
  12. echo Creates a PDF with the name of the folder
  13. exit /b 1
  14.  
  15. :default
  16. echo Creating %1.pdf
  17. call magick %1\*[0-9].{png,jpg} %1\*credits.{png,jpg} %1.pdf
  18. exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment