Re: Drastic Performance Improvement by dropping xerces and xalan

2014-05-19 Thread Pascal Sancho
Hi,

-xsl and -xml command line parameters are there for convenience.
FOP delegates XSLT transformation to Xalan before do its own job:
render pdf (or whatever supported format).

You can do the XSLT transformation by yourself, using whatever XSLT
processor you want, and feed FOP with resulting XSL-FO.
That can be done a batch processing.

So, Xalan dependencies (and associated Xerces) can be removed from FOP bundle.

2014-05-14 10:38 GMT+02:00 Peter :
> Actually, we are using -xsl and -xml as input.
>
>
> Glenn Adams-2 wrote
>> Personally, I support removing all XSLT functions from FOP, but I'm afraid
>> that would cause many users to find it less useful. I think it was a
>> serious architectural error to combine those functions in the first place,
>> but that horse left the gate long ago.
>>
>>
>> On Tue, May 13, 2014 at 4:18 AM, Peter <
>
>> p.kullmann@
>
>> > wrote:
>>
>>> We had some performance problems with fop and began to investigate. For a
>>> specific example document of about 400 pages fop took about 55 seconds on
>>> a
>>> server at a client. The same process was much faster in our own setting
>>> (taking about 11 seconds). What we found out is the following:
>>>
>>> - fop from the distribution (either 1.1 release or 1.2 snapshot) takes 55
>>> seconds
>>> - fop from the suse package takes only 11 seconds
>>>
>>> The two configurations differ in the jars: The suse config does not
>>> include
>>> xercesImpl, xalan and serializer
>>>
>>> We are running
>>> java version "1.7.0_40"
>>> OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64)
>>> OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)
>>>
>>> So, removing these three libraries drastically improved performance for
>>> us.
>>>
>>> Can someone explain why this is so? Can I safely drop these jars?


-- 
pascal

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



Re: Greek Characters in Postscript Output

2014-05-19 Thread Normen
Hi there,

iam testing with FOP 1.0 and tested with Arial and verdana True Type Fonts
and the POSTSCRIPT renderer; created Metrics for it and put it into the
configuration file like shown further down in this post, but the result is
non readable gibberish as shown in the image below.

(btw i have no problems with the PDF renderer...)

Any kind of hint/help would be greatly appreciated.

Thanks a lot in advance!!!

 



 






























--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40635.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: Greek Characters in Postscript Output

2014-05-19 Thread Pascal Sancho
Hi,

metric files are depreca

2014-05-19 11:01 GMT+02:00 Normen :
> iam testing with FOP 1.0 and tested with Arial and verdana True Type Fonts
> and the POSTSCRIPT renderer; created Metrics for it and put it into the
> configuration file like shown further down in this post, but the result is
> non readable gibberish as shown in the image below.
>
> (btw i have no problems with the PDF renderer...)
>
> Any kind of hint/help would be greatly appreciated.
>


-- 
pascal

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



Re: Greek Characters in Postscript Output

2014-05-19 Thread Pascal Sancho
Sorry, fingers too big...

metric files are deprecated with recent FOP releases. You don't neet
them if you want to embed fonts, witch is the common way.
Note also that the config schema as widely changed since FOP 0.2.x;
there were many issues in the past when upgrading from 0.2.x.

you should also provide short XSL-FO that demonstrates the issue. You
will get quicker help from list.

2014-05-19 11:53 GMT+02:00 Pascal Sancho :
> Hi,
>
> metric files are depreca
>
> 2014-05-19 11:01 GMT+02:00 Normen :
>> iam testing with FOP 1.0 and tested with Arial and verdana True Type Fonts
>> and the POSTSCRIPT renderer; created Metrics for it and put it into the
>> configuration file like shown further down in this post, but the result is
>> non readable gibberish as shown in the image below.
>>
>> (btw i have no problems with the PDF renderer...)
>>
>> Any kind of hint/help would be greatly appreciated.
>>
>
>
> --
> pascal



-- 
pascal

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



Re: Greek Characters in Postscript Output

2014-05-19 Thread Normen
Hey Pascal and others,

i have now uploaded the XML, XSL and the config file iam using (with several
blocks commented out).

I removed the mextric references in the config and deleted the metric xml
files of the TTFs Arial and Verdana but without success, still.

Hope someone can help me out, Thanks

Normen

kith_sample_1.xml
  
kithFO.xsl   
FOPconfig.xml
  



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40638.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: Greek Characters in Postscript Output

2014-05-19 Thread Normen
an even simpler example with the same (negative) result when using Arial and
Verdana TTFs:

projectteam.xml
  
projectteam2fo.xsl
  
Java_Printing.pdf
  




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40639.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: Greek Characters in Postscript Output

2014-05-19 Thread Glenn Adams
Don't bother supplying XSL/XML input files. Preprocess them into an XSL-FO
file and then send it (and test with it), otherwise the XSL/XML files are
just noise.

Also, make sure you are using Unicode code points for the greek characters,
e.g., Ͱ through Ͽ. Also, don't bother with FOP 1.0, use FOP
1.1 or the current trunk builds.


On Mon, May 19, 2014 at 8:05 PM, Normen  wrote:

> an even simpler example with the same (negative) result when using Arial
> and
> Verdana TTFs:
>
> projectteam.xml
> 
> projectteam2fo.xsl
> 
> Java_Printing.pdf
> 
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40639.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: Greek Characters in Postscript Output

2014-05-19 Thread Pascal Sancho
Hi,

Did you get any error or warning message?

Regarding the config file:
both base and font-base value should start with "file:///"



2014-05-19 12:56 GMT+02:00 Normen :
> Hey Pascal and others,
>
> i have now uploaded the XML, XSL and the config file iam using (with several
> blocks commented out).
>
> I removed the mextric references in the config and deleted the metric xml
> files of the TTFs Arial and Verdana but without success, still.
>
> Hope someone can help me out, Thanks
>
> Normen
>
> kith_sample_1.xml
> 
> kithFO.xsl 
> FOPconfig.xml
> 
>
>
>
> --
> View this message in context: 
> http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40638.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



redirect stderr and stdout message

2014-05-19 Thread Bonekrusher
Hi,

I am using FOP 1.1 embedded. Is there a way to redirect or capture all the
fop messages (stderr and stdout messages)?

Thanks



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/redirect-stderr-and-stdout-message-tp40642.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: redirect stderr and stdout message

2014-05-19 Thread Bonekrusher
Never mind... found it. https://xmlgraphics.apache.org/fop/1.1/events.html



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/redirect-stderr-and-stdout-message-tp40642p40643.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



preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
Hi, in the following FO, I'm losing the space between the word "page"
and page-number-citation-last.

  


  
Page No:  
  
  
  
 
of 
  
  

  

I've tried various permutations and combinations of
white-space-collapse, white-space-treatment, and even
white-space="pre", but to no avail.

Could someone please suggest what ought to work?

I'm using FOP 1.1.  Thanks .. Jason

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



Re: preserving a trailing space in inline

2014-05-19 Thread Terence M. Bandoian

On 5/19/2014 8:15 PM, Jason Harrop wrote:

Hi, in the following FO, I'm losing the space between the word "page"
and page-number-citation-last.

   

 
   
 Page No:  
   
   
   
  
 of 
   
   
 
   

I've tried various permutations and combinations of
white-space-collapse, white-space-treatment, and even
white-space="pre", but to no avail.

Could someone please suggest what ought to work?

I'm using FOP 1.1.  Thanks .. Jason



Hi, Jason-

I did something very similar using FOP 1.0 to generate PDF files. The 
XSL-FO I used looked like this:



Page  of



The biggest difference I see is that I didn't use any inline objects.

-Terence Bandoian

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



Re: preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
Hi Terence,  thanks, it's good to know the simple FO works fine!

Its non trivial for me to get rid of the inline elements, although I
could get rid of the nested ones if it is these which are causing the
problem.

I'll look into that, but it would still be useful to get confirmation
as to which of the whitespace attributes I should be using.

thanks .. Jason

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



Re: preserving a trailing space in inline

2014-05-19 Thread Terence M. Bandoian

On 5/19/2014 10:03 PM, Jason Harrop wrote:

Hi Terence,  thanks, it's good to know the simple FO works fine!

Its non trivial for me to get rid of the inline elements, although I
could get rid of the nested ones if it is these which are causing the
problem.

I'll look into that, but it would still be useful to get confirmation
as to which of the whitespace attributes I should be using.

thanks .. Jason



Hi, Jason-

Both fo:page-number and fo:page-number-citation-last are documented to 
support padding so you might look into that if you can't determine why 
the white space is collapsing.


Good luck!

-Terence Bandoian

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



Re: preserving a trailing space in inline

2014-05-19 Thread Rob Sargent


This has worked for me

  

select="concat('(Left)',' ')"/>


   
 

On 05/19/2014 09:25 PM, Terence M. Bandoian wrote:

On 5/19/2014 10:03 PM, Jason Harrop wrote:

Hi Terence,  thanks, it's good to know the simple FO works fine!

Its non trivial for me to get rid of the inline elements, although I
could get rid of the nested ones if it is these which are causing the
problem.

I'll look into that, but it would still be useful to get confirmation
as to which of the whitespace attributes I should be using.

thanks .. Jason



Hi, Jason-

Both fo:page-number and fo:page-number-citation-last are documented to 
support padding so you might look into that if you can't determine why 
the white space is collapsing.


Good luck!

-Terence Bandoian

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




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



RE: preserving a trailing space in inline

2014-05-19 Thread Manuel Mall
You other option might be to use a non breaking space ( ).

Also your original description is a bit confusing as you said: 

" I'm losing the space between the word "page" and page-number-citation-last."

According to your fo snippet there is no word "page" it looks more like

Page No:  of 

So you should be able to clearly say where the 'space is lost'.

Manuel

-Original Message-
From: Jason Harrop [mailto:jhar...@gmail.com] 
Sent: Tuesday, 20 May 2014 11:04 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: preserving a trailing space in inline

Hi Terence,  thanks, it's good to know the simple FO works fine!

Its non trivial for me to get rid of the inline elements, although I could get 
rid of the nested ones if it is these which are causing the problem.

I'll look into that, but it would still be useful to get confirmation as to 
which of the whitespace attributes I should be using.

thanks .. Jason

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



Re: preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
Ooops, sorry, the space is lost after "of", so I'm getting:

 of

Thanks for pointing that out Manuel!

cheers .. Jason


On Tue, May 20, 2014 at 1:56 PM, Manuel Mall  wrote:
> You other option might be to use a non breaking space ( ).
>
> Also your original description is a bit confusing as you said:
>
> " I'm losing the space between the word "page" and page-number-citation-last."
>
> According to your fo snippet there is no word "page" it looks more like
>
> Page No:  of 
>
> So you should be able to clearly say where the 'space is lost'.
>
> Manuel
>
> -Original Message-
> From: Jason Harrop [mailto:jhar...@gmail.com]
> Sent: Tuesday, 20 May 2014 11:04 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: preserving a trailing space in inline
>
> Hi Terence,  thanks, it's good to know the simple FO works fine!
>
> Its non trivial for me to get rid of the inline elements, although I could 
> get rid of the nested ones if it is these which are causing the problem.
>
> I'll look into that, but it would still be useful to get confirmation as to 
> which of the whitespace attributes I should be using.
>
> thanks .. Jason
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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