Closed mohan9000 closed 3 years ago
Hello, what Git revision of the software are you using? Do you have a test EPUB to reproduce the issue?
we noticed that if we remove the prefix enc: from all elements in the encryption.xml file and encoding = 'UTF-8' container.xml , it is working .but if these files having enc: in encryption.xml and encoding='UTF-8' in container.xml it is not working ,
note: we are using readium-js-viewer version 0.31.1
http://ns.adobe.com/pdf/enc#RC http://www.idpf.org/2008/embedding is there any difference between these two algorithms @danielweck
Font deobfuscation code:
IDPF http://www.idpf.org/2008/embedding
:
Adobe http://ns.adobe.com/pdf/enc#RC
:
@danielweck Hi Daniel I am sharing the content which have issues with encrypted fonts .Please verify and provide some solutions. 9781647470258.zip
Thank you for the test sample. I am able to reproduce the font de-obfuscation failure, because of the enc
XML namespace prefix in encryption.xml
.
In the interim until a proper fix is implemented, you may add enc:
before the EncryptedData
, EncryptedMethod
and CipherReference
jQuery selectors:
var encryptedData = $('EncryptedData', encryptionDom);
var encryptionAlgorithm = $('EncryptionMethod', encryptedData).first().attr('Algorithm');
var cipherReference = $('CipherReference', encryptedData);
You can test your EPUB by drag-n-drop on the web reader window:
https://readium.web.app
Alternative link:
https://readium.surge.sh
You can download the latest web reader build (Readium_cloud-reader.zip
) from:
https://github.com/readium/readium-js-viewer/releases/tag/0.32.0-alpha
encrypted fonts are not loading
This issue is a Bug|Feature Request
Expected Behaviour
What you expected Readium to do render the fonts which are encrypted
Observed behaviour
Instead, Readium does not rendering the fonts which are rendering