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

Conversation

mvdw
Copy link
Contributor

@mvdw mvdw commented Jun 29, 2015

If Pencil exports a SVG file, then the result contains attributes with a fixed size.
In the SVG export file, the first element is:
<svg xmlns="..." width="744.09448819" height="1052.3622047" .....
These dimensions are wrong. Adapting these two values fixes the problem that you will have when using the svg result: If the drawing is bigger, a part is cut of, and if the drawing is smaller, you have too much white space.

See also https://code.google.com/p/evoluspencil/issues/detail?id=456
See also https://code.google.com/p/evoluspencil/issues/detail?id=538

This patch uses the dimensions of the first page for all its pages.

Remark about the multipage aspect:
SVG does not support multiple pages.
Pencil uses the Inkscape extension for multiple layers.
That means that when you view the resulting SVG file in a browser, all pages appear on top of each other.
So, creating a .ep file with multiple pages seems not very usefull to me.
If your .ep files only contain 1 page, then the SVG export function is perfect with this patch.

prikhi added a commit that referenced this pull request Jul 18, 2015
[#538] solve bug fixed size in svg export
@prikhi prikhi merged commit 417fa19 into prikhi:develop Jul 18, 2015
@prikhi
Copy link
Owner

prikhi commented Jul 18, 2015

Sorry for the delay, I thought github would email me when PRs were opened...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants