You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arnaud Bailly (JIRA)" <ji...@codehaus.org> on 2005/10/05 10:10:11 UTC
[jira] Created: (MPPDF-52) Better handling of figures
Better handling of figures
--------------------------
Key: MPPDF-52
URL: http://jira.codehaus.org/browse/MPPDF-52
Project: maven-pdf-plugin
Type: Improvement
Versions: 2.4
Environment: linux, maven 1.0.2, jdk1.4.2
Reporter: Arnaud Bailly
Priority: Minor
When an image is included in the document whose height is greater than the page size, FOP crashes with the cryptic message :
[java] [INFO] [61]
[java] [INFO] [62]
[java] [ERROR] file:/home/nono/project/workspace/abailly/target/pdf/project.fo:269:141 No meaningful layout in block after many attempts. Infinite loop is assumed. Processing halted.
A simple fix is to set the height or content-height attribute in fo to a meaningful.
This issue comes from the fact that fop uses a default graphics resolution of 72dpi which is not meaningful for printing devices (it is the standard resolution of screen devices). The resolution should be 300 or 600 dpi.
A more involved fix would be to allows definition of substitution properties in the plugin, something like:
maven.pdf.substitute.from=(.*).png
maven.pdf.substitute.to=(.*).pdf
This properties, if defined are then used by the XSLT transformer to replace low-res graphics with hi-res ones. This leaves to the user the responsibility of providing both images
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org