![]() |
#1 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
ePUB with PDF embedded test
As I pointed out in this post, the ePUB spec allows including PDF documents as alternative renderings for chapters.
This is a test for this feature. It is my version of "Gulliver's Travels", with a PDF version of each chapter (at 9×12cm), and the standard XHTML as a "fallback". According to the spec, a reading system that supports PDF could show the PDF version, while those that don't will display the normal (XHTML) text. I don't know, however, if there is any system that supports this, but it may be worth testing. The first thing I notice is that the book becomes huge. The normal ePUB version is 500 kB, the PDF version is 1.8 MB, and this "hybrid" version is 14MB! This is size increase is due to splitting the PDF in one file per chapter. I could include the whole book as a single PDF, but then I'd have to put all the XHTML text in a single file too (the alternatives are defined on a per-file basis). So, feel free to try this in your readers (PC software or portable) and report any success or problem ![]() PS. The technique is very easy, just check the "content.opf" file. In the manifest use: Code:
<item id="Preface-1_pdf" fallback="Preface-1" href="pdf/Preface-1.pdf" media-type="application/pdf" /> <item id="Preface-1" href="Preface-1.xhtml" media-type="application/xhtml+xml" /> Code:
<itemref idref="Preface-1_pdf" /> Last edited by Jellby; 09-01-2009 at 11:06 AM. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
And yeah... the splitting of PDF files is unfortunate. Though presumably the necessity to "physically" break up ePub's HTML components will decrease as processing power and memory in eBook reading devices increases. Edit: Is there a way to give PDF primacy over the XHTML? i.e.: Try to suggest to the viewer to display PDF, and consider the XHTML as the alternate? If so, these sort of multi-layout editions could be manually tweaked by those wishing to view in the alternate format. Not terribly elegant--but a start. - Ahi |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() My CyBook (Gen3) does not support ePUB (yet, and I'm not sure if I'll install the ePUB or Mobi firmware when it comes). I have ADE installed in another computer with Windows, but I don't feel like turning it on and fighting with the sloppy Windows network or looking for a pendrive... Quote:
![]() |
||
![]() |
![]() |
![]() |
#4 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Alright. Here's my brief report on this. The file opens fine in both ADE and Sony eBook Library. However, the PDF pages display at about 1/4 size and in the upper left corner of the window. Loading the file onto my 505 via USB results in an unopenable file. The title/author metadata is being read, but otherwise it thinks it's a 1 page file with no TOC. Attempts to open it throw up a 'Page Error!' message (took about a minute to get to that message the first time I tried opening it).
A cursory look at the guts of the file show that each PDF has about 30 fonts subsetted, which likely explains the relatively large size of each file. Unfortunately, it doesn't look like any fonts can be unembedded using Acrobat Pro. I was hoping that if the PDF didn't have any fonts embedded in it that it might try to use the reader's available fonts via the res:///Data/ path (similar to Acrobat's Use System Fonts switch). Of course, had this worked it would then bring up the question of how to get users to install the correct fonts on their readers...But whatever, it didn't work. I'll fiddle around with it a bit more and let you know if I see anything else. |
![]() |
![]() |
![]() |
#6 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() But I don't think that should prevent the Sony reader to open the PDF, this PDF uses the same "trick", and as far as I know opens fine everywhere. |
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I have just tried it now in ADE with Wine, and there's not only the size problem, but it automatically trims the margins, as can be seen in pages 29-32. But at least text search and selection seem to work.
|
![]() |
![]() |
![]() |
#8 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
I meant to mention that, too. IIRC, it wasn't doing that in the Sony desktop software.
|
![]() |
![]() |
![]() |
#9 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#10 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
No idea, but a similar thought went through my head when I was looking over the PDFs yesterday. Only one way to find out.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
|
![]() |
![]() |
![]() |
#12 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Did anyone try on the Opus?
|
![]() |
![]() |
![]() |
#13 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
|
![]() |
![]() |
![]() |
#15 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pdf embedded notes | dragoo | Calibre | 0 | 09-26-2010 11:14 PM |
Embedded fonts in epub | erik5000 | ePub | 7 | 12-08-2009 11:55 AM |
How to create non-embedded Unicode EPUB,LRF,TXT,RTF,PDF | alexmobile | Sony Reader | 1 | 09-23-2009 10:04 PM |
ePub embedded fonts | JSWolf | Ectaco jetBook | 9 | 09-14-2009 08:43 PM |
ePub + Embedded Fonts | Cygfrydd | ePub | 11 | 03-02-2009 05:56 PM |