Hi,

I'm using FOP 2.1.

With the same simple fo file which is including an external image (jpg), with sam config file, and same fop, URI resolving to the image is OK on Linux, but generates the below Error on Windows:

Image not found. URI: images/logo.jpg. (See position 11:67)

If i use url('...') format in src attribute and take the full path, it works and includes the image, but relative path is not working.

The problem is not related to using FOP from the command line or embedded mode. You can test from command line easy.

The problem is not related to used output format. (I used PDF and PS)

I have read some problem with URI resolving with the new FOP versions (from 2.0), but i think that is a new problem.

Please, somebody test this again or i'm waiting for any new info or mistake with my files or configuration.

I attached my FO and Config to this mail.


Thanks for any help.

<?xml version="1.0" encoding="UTF-8"?>
<fop version="1.0">
	<accessibility>true</accessibility>
	<base>/data/Develop/Szeak</base>
	<target-resolution>600</target-resolution>
	<complex-scripts disabled="true"/>
	<font-base>/data/Develop/Szeak/MyFonts</font-base>
	<use-cache>true</use-cache>
	<!--<cashe-file>C:/_test/fop-fonts.cache</cashe-file>-->

	<renderers>
		<!--<renderer mime="application/X-fop-areatree">
			<fonts>
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>-->

		<renderer mime="application/X-fop-intermediate-format">
			<fonts>
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="application/pdf">
			<version>1.4</version>
			<pdf-a-mode>PDF/A-1a</pdf-a-mode>
			<filterList>
				<value>flate</value>
			</filterList>
			<fonts>
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="application/x-pcl">
			<rendering>speed</rendering>
			<text-rendering>auto</text-rendering>
		</renderer>

		<renderer mime="application/postscript">
			<language-level>3</language-level>
			<optimize-resources>true</optimize-resources>
			<safe-set-page-device>true</safe-set-page-device>
			<dsc-compliant>true</dsc-compliant>
			<rendering>quality</rendering>
			<fonts>
				<!--<font kerning="yes" embed-url="calibri.ttf" embedding-mode="full">
					<font-triplet name="Calibri" style="normal" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="calibrib.ttf" embedding-mode="full">
					<font-triplet name="Calibri" style="normal" weight="bold"/>
				</font>
				<font kerning="yes" embed-url="calibrii.ttf" embedding-mode="full">
					<font-triplet name="Calibri" style="italic" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="calibriz.ttf" embedding-mode="full">
					<font-triplet name="Calibri" style="italic" weight="bold"/>
				</font>
				<font kerning="yes" embed-url="ocrb10.ttf" embedding-mode="full">
					<font-triplet name="ocrb10" style="normal" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="Ubuntu-R.ttf" embedding-mode="full">
					<font-triplet name="Ubuntu" style="normal" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="Ubuntu-C.ttf" embedding-mode="full">
					<font-triplet name="Ubuntu Condensed" style="normal" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="Arial.ttf" embedding-mode="full">
					<font-triplet name="Arial" style="normal" weight="normal"/>
				</font>
				<font kerning="yes" embed-url="Arial_Bold.ttf" embedding-mode="full">
					<font-triplet name="Arial" style="normal" weight="bold"/>
				</font>-->
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="image/png">
			<color-mode>rgba</color-mode>
			<transparent-page-background>false</transparent-page-background>
			<background-color>white</background-color>
			<anti-aliasing>true</anti-aliasing>
			<rendering>speed</rendering>
			<fonts>
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="image/tiff">
			<transparent-page-background>true</transparent-page-background>
			<background-color>white</background-color>
			<rendering>speed</rendering>
			<fonts>
				<directory>./MyFonts</directory>
			</fonts>
		</renderer>
	</renderers>

</fop>
<?xml version="1.0" encoding="windows-1250"?>
<fop version="1.0">
	<base>P:/Szeak</base>
	<target-resolution>600</target-resolution>
	<!--<complex-scripts disabled="true"/>-->
	<font-base>P:/Szeak/Myfonts</font-base>
	<use-cache>false</use-cache>
	<!--<cashe-file>C:/_test/fop-fonts.cache</cashe-file>-->

	<renderers>
		<renderer mime="application/X-fop-intermediate-format">
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="application/pdf">
			<version>1.4</version>
			<filterList>
				<value>flate</value>
			</filterList>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="application/vnd.hp-PCL">
			<rendering>speed</rendering>
			<text-rendering>auto</text-rendering>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
				<!--<auto-detect/>-->
			</fonts>
		</renderer>

		<renderer mime="application/x-pcl">
			<rendering>speed</rendering>
			<text-rendering>auto</text-rendering>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
				<!--<auto-detect/>-->
			</fonts>
		</renderer>

		<renderer mime="application/postscript">
			<language-level>3</language-level>
			<optimize-resources>true</optimize-resources>
			<safe-set-page-device>true</safe-set-page-device>
			<dsc-compliant>true</dsc-compliant>
			<rendering>quality</rendering>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="image/png">
			<color-mode>rgba</color-mode>
			<transparent-page-background>false</transparent-page-background>
			<background-color>white</background-color>
			<anti-aliasing>true</anti-aliasing>
			<rendering>speed</rendering>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
			</fonts>
		</renderer>

		<renderer mime="image/tiff">
			<transparent-page-background>true</transparent-page-background>
			<background-color>white</background-color>
			<rendering>speed</rendering>
			<fonts>
				<directory>P:/Szeak/MyFonts</directory>
			</fonts>
		</renderer>
	</renderers>

</fop>
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm" margin="1cm">
			<fo:region-body margin="2cm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="a4">
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<fo:external-graphic src="images/logo.jpg" scaling="uniform"/>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to