Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I usually do what rarely doesn't work well for you, but it works decently for me. You get 1 page per image and the image isn't compressed or touched at all.

  apt install img2pdf
  img2pdf *.jpg -o leonardo-da-book.pdf


wouldnt this mess up the order? I think you are supposed to view it like R1, V2, R2, V2, etc


Yes, this was just an example. Using wildcard expansion will give you whatever order the your current shell seems fit. Bash does alphabetical order.


More like

    echo $(for page in {1..1119}; do for side in R V; do
      echo "000$side-$page.jpg"; done; done)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: