You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Gergely Hajdu <gh...@abprodata.com> on 2003/12/09 14:17:55 UTC

Graphics resolution

I have an XSL-FO transformed document from which I render a TIFF-image.
I wonder, is it possible with any <fo:>-tag define the DIMENSIONS ( or dpi)
of the TIFF-image to be rendered ? My XSL-FO doc. looks like this :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xml.apache.org/fop/extensions">
	<!-- Creator="html2fo" Version="0.4.2" -->
	<fo:layout-master-set>
		<fo:simple-page-master margin-right="2.0cm" margin-left="2.0cm"
margin-bottom="1.0cm" margin-top="1.0cm" page-width="21cm"
page-height="29.7cm" master-name="first">
			<fo:region-before extent="1.5cm"/>
			<fo:region-body margin-bottom="1.5cm" margin-top="1.5cm"/>
			<fo:region-after extent="1.0cm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>

	<fo:page-sequence master-reference="first" language="en" hyphenate="true">

<fo:static-content flow-name="xsl-region-before">

<fo:block line-height="12pt" font-size="10pt" space-before.optimum="1.5pt"
space-after.optimum="1.5pt"
keep-together="always">BPOBeanTemplate</fo:block></fo:static-content>

<fo:static-content flow-name="xsl-region-after">

<fo:block line-height="12pt" font-size="10pt" space-before.optimum="1.5pt"
space-after.optimum="1.5pt" keep-together="always">
	TestExample
</fo:block></fo:static-content>
<fo:flow flow-name="xsl-region-body">

<fo:table table-layout="fixed" text-align="start">
<fo:table-column column-width="8.15cm"/>
<fo:table-column column-width="8.15cm"/>
<fo:table-body>

<fo:table-row>
	<fo:table-cell><fo:block line-height="12pt" font-size="10pt"
space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always" text-align="end">Payer Identifier
Type</fo:block></fo:table-cell>
	<fo:table-cell><fo:block line-height="12pt" font-size="10pt"
space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always"
text-align="start">${beanName.PayerIdentifierType}</fo:block></fo:table-cell
>
</fo:table-row>

<fo:table-row>
	<fo:table-cell><fo:block line-height="12pt" font-size="10pt"
space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always" text-align="end">Payer
Identifier</fo:block></fo:table-cell>
	<fo:table-cell><fo:block line-height="12pt" font-size="10pt"
space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always"
text-align="start">${beanName.PayerIdentifier}</fo:block></fo:table-cell>
</fo:table-row>

</fo:table-body></fo:table>
 <fo:block space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always" id="LastPage" line-height="1pt"
font-size="1pt"></fo:block></fo:flow>
</fo:page-sequence></fo:root>

I have seen a tag , <fo:external-graphic src="url(/path_to_image)"/>, but to
use this, it's
supposed there is an image on the file-system. And since I have the image
AFTER running
this FO-file, I can't see how I could use it ?
Regards
/Gergely




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


Re: Graphics resolution

Posted by Chris Bowditch <bo...@hotmail>.
Gergely Hajdu wrote:

> I have an XSL-FO transformed document from which I render a TIFF-image.
> I wonder, is it possible with any <fo:>-tag define the DIMENSIONS ( or dpi)
> of the TIFF-image to be rendered ? My XSL-FO doc. looks like this :

No, it is not possible. I suggest you speak to the author of the TIFF 
generator, or perhaps examine/modify the code yourself.

<snip/>

> I have seen a tag , <fo:external-graphic src="url(/path_to_image)"/>, but to
> use this, it's
> supposed there is an image on the file-system. And since I have the image
> AFTER running
> this FO-file, I can't see how I could use it ?

<fo:external-graphic> controls how images will fit into your XSL-FO 
document (the input). It does not affect properties of the output 
medium, which just happens to be an image in your case.

Chris



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