Migrating FOP and XSL FO to 1.1

2014-06-17 Thread Vijaya Raghavan.R
Hi,
I'm new to xsl .
Currently we are using XSL-FO 1.0 and FOP 0.93.
we planned to migrate xsl and fop to latest 1.1 version.

Please let me know that,what are the things  should I consider while
migrating XSL FO and FOP.

Is performance improved in fop 1.1?


Thanks in Advance. Please guide me.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Migrating-FOP-and-XSL-FO-to-1-1-tp40792.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: Migrating FOP and XSL FO to 1.1

2014-06-17 Thread Pascal Sancho
Hi,

FOP 0.93 is quite old (released on 9 January 2007), so many
improvments, bugfixes, new features, etc. were added since that
version (see [1]).

performance is not ommited:
 - less memory consuption
 - faster
 - producing smaller files
 - etc.

To upgrade, read 1st the uprgrading page at [2].

You may pay attention on
 - font management (metrics files are deprecated, and many heavy other
improvments were made on this area)
 - uri resolution (more consistant now), used in links, external images, etc.
 - images (deep improvments on this area, resizing, colors, ...)
 - complex scripts (not all fonts support this feature)
 - etc.

[1] http://xmlgraphics.apache.org/fop/changes.html
[2] http://xmlgraphics.apache.org/fop/1.1/upgrading.html

2014-06-17 9:52 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net:
 Hi,
 I'm new to xsl .
 Currently we are using XSL-FO 1.0 and FOP 0.93.
 we planned to migrate xsl and fop to latest 1.1 version.

 Please let me know that,what are the things  should I consider while
 migrating XSL FO and FOP.

 Is performance improved in fop 1.1?


 Thanks in Advance. Please guide me.



 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Migrating-FOP-and-XSL-FO-to-1-1-tp40792.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

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




-- 
pascal

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



Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-17 Thread Dridi Seifeddine
Hello,

 

 Is that what you were trying to achieve?

 

No. I want to leave the image as it is and prevent FOP from scaling up or
down. Using this:

fo:external-graphic src=300dpi.jpg width=1919px height=1272px
content-width=scale-to-fit content-height=scale-to-fit/

 

FOP implicitly assumes that the image's DPI is 72, so when calculating the
mpt size we get (1919000, 1272000), and the image is rendered with no
scaling applied.

 

My question is: Is there any way to override the image's DPI in FOP using
the config?

 

Thanks

 

Seifeddine

 

 

 



Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-17 Thread Luis Bernardo
FOP does not implicitly assume that the pixel size is 72 dpi. FOP uses the
pixel size (resolution) specified in the image. Since you are using JPEG
and the resolution may be specified in the EXIF segment make sure you use
trunk, not 1.1. If the image has no resolution (or the resolution is in the
EXIF segment and you are using 1.1) then FOP defaults to 72dpi. You can
change that specifying a different value in the source-resolution /
element in the conf file.



On Tue, Jun 17, 2014 at 9:46 AM, Dridi Seifeddine sdr...@iptech-group.com
wrote:

 Hello,



  Is that what you were trying to achieve?



 No. I want to leave the image as it is and prevent FOP from scaling up or
 down. Using this:

 fo:external-graphic src=300dpi.jpg width=”1919px” height=”1272px” 
 content-width=scale-to-fit content-height=scale-to-fit/



 FOP implicitly assumes that the image’s DPI is 72, so when calculating the
 mpt size we get (1919000, 1272000), and the image is rendered with no
 scaling applied.



 My question is: Is there any way to override the image’s DPI in FOP using
 the config?



 Thanks



 Seifeddine









Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-17 Thread Pascal Sancho
Hi,

px unit defaults to 1/72 in, but you can specify other size:
either in conf file with source-resolution,
or in logic with fopFactory.setSourceResolution()

Note that px is device dependant.
You should use absolute unit instead.


2014-06-17 10:46 GMT+02:00 Dridi Seifeddine sdr...@iptech-group.com:
 Hello,



 Is that what you were trying to achieve?



 No. I want to leave the image as it is and prevent FOP from scaling up or
 down. Using this:

 fo:external-graphic src=300dpi.jpg width=”1919px” height=”1272px”
 content-width=scale-to-fit content-height=scale-to-fit/



 FOP implicitly assumes that the image’s DPI is 72, so when calculating the
 mpt size we get (1919000, 1272000), and the image is rendered with no
 scaling applied.



 My question is: Is there any way to override the image’s DPI in FOP using
 the config?



 Thanks



 Seifeddine









-- 
pascal

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



Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-17 Thread Vincent Hennebert

On 17/06/14 10:46, Dridi Seifeddine wrote:

Hello,




Is that what you were trying to achieve?




No. I want to leave the image as it is and prevent FOP from scaling up or
down. Using this:

fo:external-graphic src=300dpi.jpg width=1919px height=1272px
content-width=scale-to-fit content-height=scale-to-fit/


If you want the image to appear at its natural size (16.3x10.8cm in the
present case) then you should leave width/height and
content-width/height unspecified:
fo:external-graphic src=300dpi.jpg/
FOP will extract the image’s DPI and calculate its size in mpt
accordingly.



FOP implicitly assumes that the image's DPI is 72, so when calculating


No it doesn’t. It assumes that the px unit you used in the width and
height properties above resolves to 72px per inch. This has nothing to
do with the image’s resolution.



the
mpt size we get (1919000, 1272000), and the image is rendered with no
scaling applied.


I’m not sure I understand what you mean. If you use fo:external-graphic
in the way you show above, FOP effectively scales up the image by around
416% of its natural size.



My question is: Is there any way to override the image's DPI in FOP
using the config?


If you want to override the image’s 300DPI resolution, then you just set
content-width/height to scale-to-fit and width/height to any dimension
you like.

But I suspect that’s not what you’re asking for. If you want to honour
the image’s resoltion of 300DPI, then you should leave width/height and
content-width/height unspecified like explained above.





Thanks



Seifeddine


HTH,
Vincent

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