From issues-return-84011-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Thu Feb 28 03:57:20 2013 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 126BBE0D1 for ; Thu, 28 Feb 2013 03:57:20 +0000 (UTC) Received: (qmail 4475 invoked by uid 500); 28 Feb 2013 03:57:19 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 4034 invoked by uid 500); 28 Feb 2013 03:57:18 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 3531 invoked by uid 99); 28 Feb 2013 03:57:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 03:57:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 03:57:13 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id DBF1BB04EE for ; Wed, 27 Feb 2013 21:56:52 -0600 (CST) Date: Wed, 27 Feb 2013 21:56:52 -0600 (CST) From: "Steven Swor (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MPDF-29) Improve figure scaling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MPDF-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=320601#comment-320601 ] Steven Swor commented on MPDF-29: --------------------------------- For SVG graphics exported from Google Docs, {{scale-to-fit}} seems to work better than {{scale-down-to-fit}}. Otherwise the image can end up being really tiny. > Improve figure scaling > ---------------------- > > Key: MPDF-29 > URL: https://jira.codehaus.org/browse/MPDF-29 > Project: Maven 2.x PDF Plugin > Issue Type: Improvement > Affects Versions: 1.0 > Reporter: Lukas Theussl > Assignee: Lukas Theussl > Fix For: 1.2 > > > From a private mail: > Today, I found an extremely useful tip for how to get the images/graphics "right" both in HTML and PDF. As you know and write in the FAQ, there is a challenge with scaling the images, especially when using APT. > I think it would be useful for others, if you could publish this tip on the site for the plugin. > What I did was this: > I made a copy of the original fo-styles.xslt, names it pdf-config.xml in my src/site/resources. > Then I replaced the following section: > {code:xml} > > auto > auto > auto > auto > > {code} > with this: > {code:xml} > > scale-down-to-fit > scale-down-to-fit > 100% > 100% > > {code} > > And VOILA, the scaling was perfect! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira