Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

solve bug fixed size in svg export #718

Merged
merged 1 commit into from
Jul 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/content/pencil/exporter/Pencil2SVG.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
<xsl:output method="xml"/>

<xsl:template match="/">
<svg width="744.09448819" height="1052.3622047"
<!-- Use the dimensions of the first page! -->
<svg width="{/p:Document/p:Pages/p:Page/p:Properties/p:Property[@name='width']/text()}"
height="{/p:Document/p:Pages/p:Page/p:Properties/p:Property[@name='height']/text()}"
id="exportedSVG"
version="1.1"
pencil:version="1.2.2"
Expand All @@ -51,6 +53,9 @@
</svg>
</xsl:template>
<xsl:template match="p:Page">
<!-- Multiple pages in the ep file end up as inkscape layers.
The SVG standard does not support pages nor layers.
All pages/layers are shown in a browser, if the background is transparant! -->
<g inkscape:label="{p:Properties/p:Property[@name='name']/text()}"
inkscape:groupmode="layer" id="layer_{p:Properties/p:Property[@name='fid']/text()}">
<g>
Expand Down