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

Pretty sure calibre makes this easy if you don’t wanna reinvent the wheel

@Irelephant@lemm.ee
creator
link
fedilink
English
120h

Oh, I already have that installed. I’ll try it.

came here to say calibre! it works and the converting is super simple. takes a little while for pdf files since its a big file but it works

merde alors
link
fedilink
English
21d

Scribus may help you with that

@deegeese@sopuli.xyz
link
fedilink
English
22d

There are a ton of options depending on your tech level.

How are you with basic Python scripts?

@Irelephant@lemm.ee
creator
link
fedilink
English
12d

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

Daniel Quinn
link
fedilink
English
32d

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
32d

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

@Irelephant@lemm.ee
creator
link
fedilink
English
22d

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

@deegeese@sopuli.xyz
link
fedilink
English
21d

I’d start with wkhtmltopdf/pdfkit

@undefined@lemmy.hogru.ch
link
fedilink
English
1
edit-2
2d

In a production web app I use Gotenberg. It’s definitely overkill for the task at hand, but if you find yourself doing this often I would highly recommend it. It’s dead easy to convert HTML (and I imagine XHTML) to PDF.

@Moonrise2473@feddit.it
link
fedilink
English
12d

If when opened with a browser they have the right stylesheet, you can pirate m0nkrus’ acrobat pro, then select all => right click => convert to pdf

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
!piracy@lemmy.dbzer0.com
Create a post
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don’t request invites, trade, sell, or self-promote

3. Don’t request or link to specific pirated titles, including DMs

4. Don’t submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

  • 1 user online
  • 192 users / day
  • 358 users / week
  • 908 users / month
  • 3.25K users / 6 months
  • 1 subscriber
  • 3.66K Posts
  • 86.4K Comments
  • Modlog