View Single Post
Old 10-11-2012, 02:07 AM   #2
Junior Member
jobalcaen began at the beginning.
Posts: 5
Karma: 10
Join Date: Oct 2012
Location: Winnipeg, Canada
Device: Sony PRS-505

I was finally able to resolve my own issue. The solution was to reduce the width and the height of the svg to 99% instead of 100%. I guess there is somekind of a hidden margin that does not get removed even though I set the margins for everything to 0 in the css. Here is an example of the code I used:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<html xmlns="">
<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">

@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }

<svg xmlns="" height="99%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 524 612" width="99%" xmlns:xlink="">
<image height="612" width="524" xlink:href="../Images/image001.png"></image>

I tested this successfully in ibooks, kobo reader app on the ipad, Sony PRS-505, firefox epubreader, FBreader and ADE.
jobalcaen is offline   Reply With Quote