Commit 1edc5652 authored by Johan B. C. Engelen's avatar Johan B. C. Engelen Committed by Johan Engelen

add scaling option to PDF+LaTeX (patch by Bernd Bandemer)

(bzr r10088)
parent e8fe21d0
......@@ -528,10 +528,16 @@ LaTeXTextRenderer::setupDocument(SPDocument *doc, bool pageBoundingBox, SPItem *
os << " \\ifx\\svgwidth\\undefined\n";
os << " \\setlength{\\unitlength}{" << d->width() * PT_PER_PX << "pt}\n";
os << " \\ifx\\svgscale\\undefined\n";
os << " \\relax\n";
os << " \\else\n";
os << " \\setlength{\\unitlength}{\\unitlength * \\real{\\svgscale}}\n";
os << " \\fi\n";
os << " \\else\n";
os << " \\setlength{\\unitlength}{\\svgwidth}\n";
os << " \\fi\n";
os << " \\global\\let\\svgwidth\\undefined\n";
os << " \\global\\let\\svgscale\\undefined\n";
os << " \\makeatother\n";
os << " \\begin{picture}(" << _width << "," << _height << ")%\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment