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!

  • Андрей Быдло@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    10 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.