xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Coppens <pc.subscripti...@gmail.com>
Subject Re: Fop 0.95beta - svg tif images
Date Thu, 10 Apr 2008 20:55:48 GMT
Well...I did the test with only a tif.

0.94 --> 4sec
0.95beta -->  78sec

Somewhat worrying to be honest (although I guess it might be due to  
the fact that I am using a jai image io jar extracted from a linux  
package)

I guess, next is to try Jeremias's version that gets rid of the jai  
image io dependancy for tiff's...

Peter

Stylesheet

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
	xmlns:rx="http://www.renderx.com/XSL/Extensions"
	xmlns:doc="for internal documentation"
	xmlns:svg="http://www.w3.org/2000/svg">
	<fo:layout-master-set>
		<fo:simple-page-master page-height="884pt" page-width="318.6pt"
			master-name="regular-odd">
			<fo:region-body margin-top="56.69291338582677pt"
				margin-bottom="56.69291338582677pt"
				margin-left="85.03937007874016pt"
				margin-right="42.51968503937008pt" />
			<fo:region-before region-name="regular-before-odd"
				extent="28.346456692913385pt" display-align="before" />
			<fo:region-after region-name="regular-after-odd"
				extent="28.346456692913385pt" display-align="after" />
			<fo:region-start region-name="regular-inner"
				extent="56.69291338582678pt" display-align="after" />
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="text-plain">
			<fo:repeatable-page-master-reference
				master-reference="regular-odd" />
		</fo:page-sequence-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="text-plain" id="rc_ua9">
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<fo:block-container absolute-position="fixed" left="0pt"
					top="0pt" width="318.6pt" height="884pt">
					<fo:block>
						<fo:instream-foreign-object
							content-width="318.6pt" content-height="884pt">
							<svg:svg width="318.6" height="884"
								viewbox="0, 0, 318.6, 884">
								<svg:g
									transform="translate(159.3, 442)">
									<svg:g
										transform="matrix(1, 0, 0, 1, 0.06, -0.04)">
										<svg:rect x="-159.24"
											y="-441.96000000000004" width="318.48"
											height="883.9200000000001" fill="none" stroke="none" />
										<svg:g
											transform="translate(-159.24, -441.96000000000004)">
											<svg:svg overflow="hidden"
												width="318.48" height="883.9200000000001">
												<svg:g
													transform="translate(159.24, 441.96000000000004)">
													<svg:g
														transform="matrix(1, 0, 0, 1, -159.24,  
-441.96000000000004)">
														<svg:image
															xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"
															width="318.48" height="883.9200000000001" fill="none"
															stroke="none"
															xlink:href="Ostern_DIN Lang_Front.tif" />
													</svg:g>
												</svg:g>
											</svg:svg>
										</svg:g>
									</svg:g>
								</svg:g>
							</svg:svg>
						</fo:instream-foreign-object>
					</fo:block>
				</fo:block-container>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>



On 10 Apr 2008, at 20:54, Andreas Delmelle wrote:
>
> On Apr 10, 2008, at 20:01, Peter Coppens wrote:
>>>
>>> You can use the Java-only part of JAI Image I/O Tools. The
>>> platform-specific parts are not necessary for TIFF. In the worst  
>>> case,
>>> you can extract the JAR from an installation done on a Windows  
>>> machine
>>> I hope you'll have around.
>>
>> That works...kind of...
>>
>> If I 'time' the pdf rendering of 'the' stylesheet with 0.94 it  
>> takes about 7 seconds. With 0.95beta it takes 328 seconds
>>
>> I could try to isolate the 'performance' bottleneck...but perhaps  
>> this can be explained with the info available right now?
>
> Hmm.. That could be caused by all sorts of things.
> Are you sure the difference is even related to the included TIFF?
> Have you compared the timings for documents without TIFF? If so, is  
> there a similar difference?
>
>
>
> Cheers
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


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


Mime
View raw message