I am able to view PNG image with both fop-0.95 and fop-trunk as well, I just downloaded fop-0.95 binary, extracted... just used the fop.bat to run

like from the command prompt....

fop -c C:\fop.xconf -fo hello.fo -pdf hello.pdf

It worked in both 0.95 and trunk versions.... I am attaching the sample with this mail....

I have used the following java version on windows environment...

C:\mywork\FOP\fop-0.95>java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

Cheers,
Venkat.

Jonathan Levinson wrote:

I’m using fop.bat and I reinstalled fop-0.95 just to make sure my installation was not corrupted.

xmlgraphics-commons-1.3.1 is in my classpath.

Here is the Java I’m suing:

java version "1.6.0_10"

Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

Best Regards,

Jonathan Levinson

*From:* Griffin,Sean [mailto:[email protected]]
*Sent:* Monday, October 19, 2009 5:58 PM
*To:* [email protected]
*Subject:* RE: Unable to display jpeg or PNG files in fop document

Have you tried it from the fop.bat or are you embedding FOP in your own service? I tried with fop.bat and it works just fine using the dependencies added to the classpath in that script. In particular ensure you’re running xmlgraphics-commons-1.3.1.

*From:* Jonathan Levinson [mailto:[email protected]]
*Sent:* Monday, October 19, 2009 4:33 PM
*To:* [email protected]
*Subject:* Unable to display jpeg or PNG files in fop document

I’m using FOP 0.95 and I’m unable to display jpeg or PNG images.

The errors I get are like the following:

SEVERE: Image not available: No ImagePreloader found for file:///perforce/Users/levinson/B47157/2009-usa-125x125.png

Best Regards,

Jonathan Levinson

------------------------------------------------------------------------

CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.


<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
	xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="page">
			<fo:region-body 
				margin-right="0.5in" 
				margin-left="0.5in" 
				margin-bottom="1in" 
				margin-top="0.5in" 
				region-name="body"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="page">
	<fo:flow flow-name="body">
		<fo:block break-before="page" top="4in">
		Testing image <fo:external-graphic src="file:///C:/XSLFOSamples/sample.png"/> in between words
		</fo:block>
	</fo:flow>
	</fo:page-sequence>
</fo:root>

Attachment: hello.pdf
Description: Adobe PDF document

<<inline: sample.png>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to