[
https://issues.apache.org/jira/browse/XGC-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010670#comment-15010670
]
Nishita Rai edited comment on XGC-102 at 11/18/15 10:15 AM:
------------------------------------------------------------
In addition to the above problem, attached is the sample program to reproduce
the issue. Attachment (FOP_2.0.rar) contains:
1. Steps to run the program
2. List of all required libraries
3. java file
4. XSL file
5. Input xml file
6. FOP config xml file
7. Images to be rendered
8. Output PDF with ImageLoaderRawPNG and ImageLoaderPNG.
Problem Statement: This program runs only with ImageLoaderPNG. If we try to run
it with ImageLoaderRawPNG (change ImageLoaderPNG to ImageLoaderRawPNG in
fop.xml file),PDF is getting generated but on opening it gives error message
"Insufficient data for an image".
was (Author: nishitarai):
In addition to the above problem, attached is the sample program to reproduce
the issue. Attachment contains:
1. Steps to run the program
2. List of all required libraries
3. java file
4. XSL file
5. Input xml file
6. FOP config xml file
7. Images to be rendered
8. Output PDF with ImageLoaderRawPNG and ImageLoaderPNG.
Problem Statement: This program runs only with ImageLoaderPNG. If we try to run
it with ImageLoaderRawPNG (change ImageLoaderPNG to ImageLoaderRawPNG in
fop.xml file),PDF is getting generated but on opening it gives error message
"Insufficient data for an image".
> Problem in rendering PNG images with ImageLoaderRawPNG in XMLGraphics 2.0.1
> and FOP2.0
> --------------------------------------------------------------------------------------
>
> Key: XGC-102
> URL: https://issues.apache.org/jira/browse/XGC-102
> Project: XMLGraphicsCommons
> Issue Type: Bug
> Components: general
> Affects Versions: 2.0.1
> Environment: FOP 2.0., PDF rendering of a PNG Image using
> ImageLoaderRawPNG
> Reporter: Mandar Nimbkar
> Fix For: 2.0.1
>
> Attachments: Docs.zip, FOP_2.0.rar
>
>
> I am migrating from FOP 1.0 to FOP 2.0
> I have made the required Java code changes as per the changed API.
> There are PNG images used in the report generated using PDF renderer..
> Initially with FOP 1.0, I tried ImageLoaderPNG. However, the resolution of
> the image gets impacted. So I shifted to ImageLoaderRawPNG which rendered it
> properly.
> So this was working fine with FOP 1.0
> However, FOP 2.0 is not able to render the image with ImageLoaderRawPNG and
> throws exception..
> Attached the PNG image, exception and the intermediate XSL-FO file (partial)
> generated with ImageLoaderRawPNG.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]