View Single Post
Old 03-29-2018, 05:23 AM   #152
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by cramoisi View Post
Just to say I got some issues with a DRM-locked epub book even though I remove the DRM of it to modify its CSS.
mupdf will fail to open an ePUB document if it finds any of the following files in the archive:
  • META-INF/rights.xml
  • META-INF/encryption.xml

If it happens, the following error will appear in info.log: EPUB is locked by DRM.

I found some ePUBs with a META-INF/encryption.xml referencing fonts not used by any of the CSS files and sometimes the encrypted fonts were missing from the archive!

What you can do is remove:
  • The links (within the CSS files) to the encrypted files.
  • The aforementioned XML files.
  • The encrypted files referenced by the aforementioned XML files.
  • The references to the aforementioned XML or encrypted files in content.opf.

There's a related bug report.

Last edited by baskerville; 04-02-2018 at 05:57 AM.
baskerville is offline   Reply With Quote