Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2010, 02:03 PM   #1
crestfalleen
Member
crestfalleen began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: iphone
Post Epub Validation Problems

Note: Sorry if this is in the wrong category, just the closest one it seemed to fit.

I recently made an epub in InDesign with their "export for Digital Editions" and it works in Digital Editions with no problems, but when I run it through a validator (epub validator) I get a bunch of errors. I've added it to Calibre and it works fine, I even re-convert it to epub in Calibre and it works fine, but it won't upload to Stanza on my iphone (presumably because it won't validate and there's some error in it there). Can anyone help, tell me if there's some options in export I did or didn't choose or something I need to rewrite in the metadata or xml file or if it's just the way Adobe exports the files. Thanks.



Here are the errors:




1. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
2. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
3. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
4. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
5. ERROR: Escape From Hell Book copy.epub/OEBPS/content.opf(2): date value '' is not valid, YYYY[-MM[-DD]] expected
6. Check finished with warnings or errors!


Here's what the XML file looks like:


<encryption xmlns="urnasis:names:tcpendocument:xmlns:conta iner" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:deenc="http://ns.adobe.com/digitaleditions/enc"><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-Bold.otf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-Regular.otf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/Calibri.ttf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-BoldItalic.otf"/></enc:CipherData></enc:EncryptedData></encryption>
crestfalleen is offline   Reply With Quote
Old 05-14-2010, 02:11 PM   #2
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
Never used epub validator so I don't have an answer, but you might want to list which version you're using. Are you using CS5 or CS4 and if CS4 is it the 6.0.5 update?

Also IIRC epub validator uses ePub Check as it's engine. Not sure if it's still the case, but I remember ePub Check having a few bugs.
AnemicOak is offline   Reply With Quote
Advert
Old 05-14-2010, 02:43 PM   #3
crestfalleen
Member
crestfalleen began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: iphone
Sorry, it' s 6.0.5 (CS4).

Epub Validator was the first one I saw, so I used it, it was a simple uplad the file and get a result thing. I'll look at epub check. I saw it but didn't do anything with it yet. Thanks.
crestfalleen is offline   Reply With Quote
Old 05-14-2010, 03:01 PM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,463
Karma: 305784726
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by crestfalleen View Post
I recently made an epub in InDesign with their "export for Digital Editions" and it works in Digital Editions with no problems, but when I run it through a validator (epub validator) I get a bunch of errors.
You ePub has embedded fonts. These fonts have been 'obfuscated' - that is, changed by a simple algorithm into a form that means that can't just be copied out of the zip folder and used.

Unfortunately, there are currently two font obfuscation algorithms. The one Adobe came up with, with ADE and most other ePub readers understands, and the IDPF Standard method, that almost no-one uses yet, but that is the only one that will pass ePub validation.

If you ePubs are going to be distributed with DRM, try generating them without font encryption. They'll then pass the validation, and the fonts will get encrypted along with the rest of the files.

Alternatively, consider whether or not you really need to embed fonts, or those particular fonts.

It will all get sorted out eventually, and everyone'll be using the IDPF method. But we're not there yet.
pdurrant is offline   Reply With Quote
Old 05-14-2010, 03:13 PM   #5
crestfalleen
Member
crestfalleen began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: iphone
Great. Worked and it still looks the same, at least on the first try through Adobe Digital Editions. Any clue about fixing the date issue?

"OEBPS/content.opf(2): date value '' is not valid, YYYY[-MM[-DD]] expected"

Thanks so much.
crestfalleen is offline   Reply With Quote
Advert
Old 05-14-2010, 05:50 PM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,463
Karma: 305784726
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by crestfalleen View Post
Great. Worked and it still looks the same, at least on the first try through Adobe Digital Editions. Any clue about fixing the date issue?

"OEBPS/content.opf(2): date value '' is not valid, YYYY[-MM[-DD]] expected"

Thanks so much.
I guess that ID4 isn't following the spec for the date properly. Just unpack the ePub, edit the content.opf file (changing the date to the required format) and re-zip.

Or just open in Sigil, and check/correct the Metadata and save. That should do it too.
pdurrant is offline   Reply With Quote
Old 08-02-2010, 09:43 PM   #7
mrExtreme
Member
mrExtreme began at the beginning.
 
mrExtreme's Avatar
 
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
Hi all, I'm new here,
Can I convert my own pdf file with Calibre and put it in Kindle (might be Kindle 3), by using Calibre ?
If that so, where can i read step by step guide, I'm not teach savvy guy, I'm dummies person.
I'm think about to buy Kindle 3, to read some of my PDF (convert to ePub).
mrExtreme is offline   Reply With Quote
Reply

Tags
adobe, indesign, validate, validation, validator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub validation problems robcub ePub 12 02-04-2011 05:04 AM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 10:53 PM
ePub Validation Problem rlarrett ePub 14 10-07-2010 01:06 AM
Epub validation problem silentobserver ePub 3 08-16-2010 12:51 AM


All times are GMT -4. The time now is 02:34 AM.


MobileRead.com is a privately owned, operated and funded community.