|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2011
Device: IPAD, Kindle fire
|
Page blank before and after book image page
When I just create an epub from the book, all is fine but I want the first page to be the cover image. So my content.opf looks like the text below, but there is always a blank page on page 1 then the image appears on page 2 than another blank page before the book starts. Seems like the cover.html page is inserting page breaks before and after that html loads. Is there anyway to stop this? This is the content.opf file. Any help would be appreciated. Thanks. ?xml version="1.0" encoding="utf-8" standalone="yes"?> <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns pf="http://www.idpf.org/2007/opf"><dc:identifier id="BookID" opf:scheme="UUID">b778c5ff-6a7f-406b-ae4a-62a1b1b72634</dc:identifier> <dc:title>book title1</dc:title> <dc:identifier opf:scheme="ISBN"></dc:identifier> <dc:subject>Science Fiction&Fantasy</dc:subject> <dc:creator opf:role="aut">aaa</dc:creator> <dc:description>test</dc:description> <dc ublisher>aaai</dc ublisher><dc:date opf:event="publication">2011-12-20</dc:date> <dc:language>en</dc:language> <meta name="cover" content="CoverImage.jpg" /> <meta content="0.4.903" name="Sigil version" /> </metadata> <manifest> <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" /> <item href="Images/CoverImage.jpg" id="CoverImage.jpg" media-type="image/jpeg" /> <item href="Text/CoverPage.html" id="CoverPage.html" media-type="application/xhtml+xml" /> <item href="Text/book.htm" id="book.htm" media-type="application/xhtml+xml" /> </manifest> <spine toc="ncx"> <itemref idref="CoverPage.html" /> <itemref idref="book.htm" /> </spine> <guide> <reference href="Text/CoverPage.html" title="Cover" type="cover" /> </guide> </package> Last edited by osiris12; 12-20-2011 at 01:31 PM. |
|
|
|
|
|
#2 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,743
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Nothing strange leaps our with that OPF
Your image WITH MARGINS AND PADDING may be larger than the screen. that will cause new pages on both sides. Blank lines, (Even non-printing) Headings are another cause. Codeview is King Please show the Code from after </head> And the CSS stylessheet
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2011
Device: IPAD, Kindle fire
|
That makes sense about the image size being too big. It's 1035x1600 pixels
Here is the code in the Cover.html page <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>cover</title> </head> <body> <img alt="" height="100%" src="../Images/CoverImage.jpg" width="100%" /> </body> </html> |
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2011
Device: IPAD, Kindle fire
|
Ok.. I played around with the width on the img tag. The Ipad seems to like 90%. Now I have to test it on the Ipod Touch and other devices. Not sure how to ensure that the image fits (displays) on all devices correctly... :-(
|
|
|
|
|
|
#5 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,743
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
![]() Youse gets what the reading device defaults to(not always 0) ![]() IMHO A minimum style controls borders, padding and margins (even if the are forced to 0)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#6 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2011
Device: IPAD, Kindle fire
|
I have the style in the Book.html file
body { margin: 0in 13.5pt ; font-size: 12pt; font-family: "Bookman Old Style", "serif"; text-align: left; ont-weight:normal; } h1{ text-align: center; font-size: 16pt; font-family: "Arial","sans-serif"; margin-top: 10px; margin-right: 5px; page-break-before:always; margin-bottom: 20px; margin-left: 6px } p { font-weight:normal; } span.sgc-7 {font-style: italic;} div.sgc-6 {text-align: left} span.sgc-5 {font-family: Arial,sans-serif;} table.sgc-4 {border: 1px solid rgb(0, 0, 255); width: 100%; text-align: center; margin-right: auto; font-weight: bold;} div.sgc-3 {text-align: center;} div.sgc-2 {text-align: left;} big.sgc-1 {font-weight: bold} p.sgc-8 {font-weight:normal} |
|
|
|
|
|
#7 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,743
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
I don't think a nekid' <img will pass Your browser/reader is helping You only have body margins, no P margins set. add margin: 0 to your P style
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#8 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 552
Karma: 23783
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300
|
|
|
|
|
|
|
#9 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,743
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
![]() ADE will ignore the whole body style over that one. ADE is intolerant of errors
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#10 | |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,148
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Quote:
A different situation is if you forget a colon or semicolon, or write "1.2fm" instead of "1.2em"... |
|
|
|
|
|
|
#11 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,743
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
But in some case, who can tell An early class in a cascade goes south and lots of things go into left field
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iPad I found the uwnated blank pages before and after for each full-page image on iPad. | Vengadesan | Apple Devices | 1 | 07-07-2011 01:23 AM |
| Blank first page | spaze | Writer2ePub | 3 | 05-15-2011 11:41 AM |
| [Old Thread] epub -> mobi conversion; blank page after image | joubert | Calibre | 10 | 03-07-2011 05:26 PM |
| image on separate page without half-page text next | Toxaris | ePub | 2 | 01-26-2011 03:32 AM |
| PRS-505 Help Please,Book goes blank from page 23 or so onwards | Liquidsilver | Sony Reader | 3 | 07-05-2010 03:33 AM |