[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3377) iText's p:image ignores dpi

Gijsbert Peijs (JIRA) jira-events at lists.jboss.org
Tue May 19 09:05:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468169#action_12468169 ] 

Gijsbert Peijs commented on JBSEAM-3377:
----------------------------------------

This is still an issue with the latest version of Seam. A usefull workaround is to use both width and height attributes to scale your image (to match the DPIxDPI of your image). Not the most convenient way but it works.

for example:

<p:image alignment="right" value="myImage_tooBig.jpg"  width="800" height="200" alt="This is my image" />



> iText's p:image ignores dpi
> ---------------------------
>
>                 Key: JBSEAM-3377
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3377
>             Project: Seam
>          Issue Type: Bug
>          Components: PDF
>    Affects Versions: 2.0.2.SP1
>         Environment: jboss 4.2.2.GA
>            Reporter: arne anka
>         Attachments: foo.pdf, foo.png
>
>
> i got a pdf with 600dpi and a size of 1427x1311px.
> according to simple math and gimp that means a physical size of 2.38x2.18in or 6x5.5cm, which would easily fit onto an A4 page.
> but the rendered A4 pdf shows only a part of the image since it does not fit.
> i append the image and the pdf.
> my xhtml is below, note that setting dpi="600 600" does make _no_ difference!
> <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
>             xmlns:f="http://java.sun.com/jsf/core"
>             xmlns:p="http://jboss.com/products/seam/pdf"
> 	        pageSize="A4">
> 	<p:image alignment="center" dpi="600 600" value="/img/foo.png" />
> </p:document>
> i am strongly interested in a workaround.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list