Just bought an “enhanced eBook”, accessible only through Yuzu (Barnes and Noble’s site) and I would love to rip it to PDF and get it on libgen. Does anyone have any advice or tutorial for this?

I don’t have much experience with writing scripts but I understand I could use python to screenshot and append all 800+ pages as well. Looking for how to do this if it’s what I have to do.

Thanks, and happy to provide more relevant info if needed!

  • andrew_bidlaw@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    11 months ago

    #pip install pikepdf

    import pikepdf

    pdf = pikepdf.open(‘filename.pdf’, allow_overwriting_input=True)

    pdf.save(‘new_filename.pdf’)

    #That’s if you have it in the same folder. You can make that script more clever. It strips off DRM stuff like printing, copying, editing permissions that are respected by most programs. Probably kills your DRM too.

  • chepox
    link
    fedilink
    English
    arrow-up
    10
    ·
    11 months ago

    Have you tried acquiring the file from ‘elsewhere’ (see megathread)?

    • SqueakySpider@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      32
      ·
      11 months ago

      yeah, libgen + others, it’s a recent edition and unavailable so far. Figured I’d try to get it available to others myself :)