[ 
https://issues.apache.org/jira/browse/FOP-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183211#comment-15183211
 ] 

simon steiner commented on FOP-2524:
------------------------------------

This works for me:
{code}
        String fopxconf = "<fop version=\"1.0\">\n"
                + "<target-resolution>288</target-resolution>"
                + "</fop>";

        FopFactoryBuilder confBuilder = new FopConfParser(
                new ByteArrayInputStream(fopxconf.getBytes()),
                new URI(".")).getFopFactoryBuilder();
        FopFactory fopFactory = confBuilder.build();
        FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
        foUserAgent.getTargetResolution();
{code}

> FOP 2.0: target-resolution not set in FoUserAgent
> -------------------------------------------------
>
>                 Key: FOP-2524
>                 URL: https://issues.apache.org/jira/browse/FOP-2524
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/png
>    Affects Versions: 2.0
>         Environment: Java 1.8.0_51, 64 Bit, Windows 7, Windows 2008 R2
>            Reporter: MH
>         Attachments: screenshot-FOP-PNG-Renderer.png
>
>
> We upgraded from FOP 1.0 to FOP 2.0 (as we had to skip FOP 1.1 due to a 
> blocker bug in 1.1). After converting all Java embedding code, we are now in 
> test phase. Almost everything looks good, but our PNG rendered documents 
> suddenly all look very blurry (see atachement). We had the same problem with 
> FOP 1.0 but "solved" it by setting the target resolution to 288:
> <target-resolution>288</target-resolution>
> We still have this setting in the fop user config XML file, but it seems that 
> it has no effect anymore!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to