xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lexa2009 <myworkac...@gmail.com>
Subject error in pdf with tiff image inside which was created by fop
Date Wed, 25 Nov 2009 09:01:37 GMT

i use fop 0.95 and create pdf document.

i have a tiff image with compression CCITT4
http://old.nabble.com/file/p26509340/00000375.tif 00000375.tif 
and want to see it in pdf, so i use this xsl file with any xml document.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"

   <xsl:output method="xml"/>
<xsl:template match="/">
		<fo:simple-page-master master-name="my-page1" page-height="29.7cm"
page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm"
			<fo:region-body margin-top="1.5cm" margin-bottom="1.5cm"
margin-left="1.5cm" margin-right="1.5cm" />
			<fo:region-before extent="1.5cm" />
			<fo:region-after extent="0.5cm" />
			<fo:region-start extent="1.5cm" />
			<fo:region-end extent="1.5cm" />
	<fo:page-sequence master-reference="my-page1">
		<fo:flow flow-name="xsl-region-body">
				<fo:block><fo:external-graphic src="url(00000375.tif)"
content-height="100%" scaling="uniform" /></fo:block>


when fop create pdf there is an error - insufficient data for an image. when
i use other tiff images CCITT4 or decode this one to jpeg or tiff without
compression all work good. but i need to transform a large amount of images
and documents, so i want to know why this error happens and how to fix it
with out converting to other format. 
how to fix it?
thank you.
View this message in context: http://old.nabble.com/error-in-pdf-with-tiff-image-inside-which-was-created-by-fop-tp26509340p26509340.html
Sent from the FOP - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message