I ripped a lot of xhtml files from a crappy ebook reader online, how do combine these into a pdf?

  • Irelephant@lemm.eeOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    I made the script to rip them in bash. I know python, lua, js, bash and powershell, anything using these works.

    • Daniel Quinn@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      I’ve used pdfkit to considerable success. It has a few system-level dependencies, but the instructions are pretty straightforward:

      # apt-get install wkhtmltopdf
      $ pip install pdfkit
      
    • deegeese@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      Surely you can figure out how to use existing libraries for this task, or is there something you’re stuck on?

      • Irelephant@lemm.eeOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        23 hours ago

        Can’t really find many good ones. Google isn’t returning much, just pdfs about python libraries and the odd abandoned github repo