Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
Thanks a lot everybody for helping me.
As I assumed the problem was with the JAR files I had used. Got the correct
JAR files and now the problem was solved.
Everything works well.

Thanks a lot for helping me. Keep it up.
Dinuka.


Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread Mike Ferrando
Dinuka,
Let me know if you don't get a response.

I can send you some files that will work.

Sincerely,
Mike Ferrando
Washington, DC





From: dinuka dayarathna 
To: fop-users@xmlgraphics.apache.org
Sent: Wed, May 11, 2011 2:06:44 PM
Subject: Re: ExampleXML2PDF.java ERROR

Please can somebody send me a working application and the JAR files you are 
using.
I'm stuck at this point. I had done everything which I can do. But it does not 
work.
Please help me.

Thanks a lot for all your support.
Dinuka.

Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
Please can somebody send me a working application and the JAR files you are
using.
I'm stuck at this point. I had done everything which I can do. But it does
not work.
Please help me.

Thanks a lot for all your support.
Dinuka.


RE: Problem with whitespace-treatment

2011-05-11 Thread Eric Douglas
I couldn't get it to print blank spaces properly either.  If you can modify 
your xml the simple solution is to replace all spaces.
I replace blank spaces with  



From: Michael Seeberger [mailto:michael.seeber...@isys-software.de] 
Sent: Wednesday, May 11, 2011 9:37 AM
To: fop-users@xmlgraphics.apache.org
Subject: Problem with whitespace-treatment


Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:



i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
=> The text "Gutschriften überweisen " gets wrapped at "diese" and a 
leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so 
the text is printed this way;


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
"Bank", and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger




Re: Problem with whitespace-treatment

2011-05-11 Thread Pascal Sancho
Hi,

If your '' data don't contain any spaces, you can imagine a XSLT
that replace your string with a fo:table, since you have both line
separator(
) and cell separator (last space before ''). XSLT
gurus will help you for that.

If not, uou have to ensure that the used font is a monospace one, so
there will be no offset from one line to one other.

Le 11/05/2011 16:26, Michael Seeberger a écrit :
> Hi Georg,
> 
> you're right .. in this case the user is responsible for correctly
> inserting the text.
> So there is no way to get this done with setting the attributes correctly?
> 
> Michael
> 
> Am 11.05.2011 16:18, schrieb Georg Datterl:
>>
>> Hi Michael,
>>
>>  
>>
>> So if the user misses a blank, the alignment goes to hell? If yes, try
>> to replace all blanks with   (or all double blanks with two nbsp,
>> if you still want a break in the text). Ugly, but could work.
>>
>>  
>>
>> Regards,
>>
>>  
>>
>> Georg Datterl
>>
>> *Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
>> *Gesendet:* Mittwoch, 11. Mai 2011 16:13
>> *An:* fop-users@xmlgraphics.apache.org
>> *Betreff:* Re: Problem with whitespace-treatment
>>
>>  
>>
>> Hi George,
>>
>> the reason is, that the text comes form an textarea,
>> in which a customer can insert any text he or she wants to.
>>
>> regards,
>> Michael
>>
>> Am 11.05.2011 16:03, schrieb Georg Datterl:
>>
>> Hallo Michael,
>>
>>  
>>
>> Is there a reason why you don’t split the text into 9 parts and use a
>> table?
>>
>>  
>>
>> Regards,
>>
>>  
>>
>> Georg Datterl
>>
>> *Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
>> *Gesendet:* Mittwoch, 11. Mai 2011 15:37
>> *An:* fop-users@xmlgraphics.apache.org
>> 
>> *Betreff:* Problem with whitespace-treatment
>>
>>  
>>
>> Hello,
>>
>> i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0
>> and can't get my text formatted the way i want to:
>>
>> my formatted text is (leading whitespaces before Bank, BLZ, Konto and
>> Empfänger)
>>
>> Bank:  X
>> BLZ:X
>> Konto: X
>> Empfänger:X
>>
>> Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
>> Bankverbindung. Sofern sich diese
>> geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um
>> Bekanntgabe.
>>
>> the value in my xml-tag is:
>>
>> 
>>
>> i tried several combinations of white-space-collapse,
>> white-space-treatment and linefeed-treatment. For example when using
>>
>> 1. white-space-collapse=false, linefeed-treatment=preserve,
>> white-space-treatment=*preserve *or *ignore-if-before-linefeed*
>> => The text "Gutschriften überweisen " gets wrapped at "diese"
>> and a leading whitespace is added to the following line so it looks
>> like this:
>>
>> Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
>> Bankverbindung. Sofern sich diese
>>  geändert haben sollte, bitten wir zur Vermeidung von
>> Fehlbuchungen um Bekanntgabe.
>>
>> 2. white-space-collapse=false, linefeed-treatment=preserve,
>> white-space-treatment=*ignore-if-after-linefeed* or
>> *ignore-if-surrounding-linefeed*
>> => The leading whitespaces before "Bank", "BLZ" etc. are beeing
>> ignored so the text is printed this way;
>>
>>
>> Bank:  X
>> BLZ:X
>> Konto: X
>> Empfänger:X
>>
>> Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
>> Bankverbindung. Sofern sich diese
>> geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen
>> um Bekanntgabe.
>>
>> Is there a way to prevent FOP from deleting the inserted whitespaces
>> before "Bank", and inserting a whitespace when performing an automatic
>> linebreak??
>>
>> I hope you get my point and can help me.
>>
>> Thx
>> Michael Seeberger
>>
>>
>>
>> -- 
>> iSYS Software GmbH
>>  
>> Michael Seeberger | Softwareentwickler
> 
> -- 
> iSYS Software GmbH
> 
> Michael Seeberger | Softwareentwickler

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



AW: Problem with whitespace-treatment

2011-05-11 Thread Georg Datterl
Hi Michael,

> So there is no way to get this done with setting the attributes correctly?

I don't know enough to answer that question.

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 16:27
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Problem with whitespace-treatment

Hi Georg,

you're right .. in this case the user is responsible for correctly inserting 
the text.
So there is no way to get this done with setting the attributes correctly?

Michael

Am 11.05.2011 16:18, schrieb Georg Datterl:
Hi Michael,

So if the user misses a blank, the alignment goes to hell? If yes, try to 
replace all blanks with   (or all double blanks with two nbsp, if you 
still want a break in the text). Ugly, but could work.

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 16:13
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Problem with whitespace-treatment

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:
Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a table?

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 15:37
An: fop-users@xmlgraphics.apache.org
Betreff: Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:



i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
=> The text "Gutschriften überweisen " gets wrapped at "diese" and a 
leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so 
the text is printed this way;


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese

Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger

Hi Georg,

you're right .. in this case the user is responsible for correctly 
inserting the text.

So there is no way to get this done with setting the attributes correctly?

Michael

Am 11.05.2011 16:18, schrieb Georg Datterl:


Hi Michael,

So if the user misses a blank, the alignment goes to hell? If yes, try 
to replace all blanks with   (or all double blanks with two nbsp, 
if you still want a break in the text). Ugly, but could work.


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de 

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 



Willmy PrintMedia GmbH: www.willmy.de 

Willmy Consult & Content GmbH: www.willmycc.de 

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 16:13
*An:* fop-users@xmlgraphics.apache.org
*Betreff:* Re: Problem with whitespace-treatment

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:

Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a 
table?


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de 

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 



Willmy PrintMedia GmbH: www.willmy.de 

Willmy Consult & Content GmbH: www.willmycc.de 

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 15:37
*An:* fop-users@xmlgraphics.apache.org 


*Betreff:* Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empfänger)


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:




i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
=> The text "Gutschriften überweisen " gets wrapped at "diese" 
and a leading whitespace is added to the following line so it looks 
like this:


Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing 
ignored so the text is printed this way;



Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before "Bank", and inserting a whitespace when performing an automatic 
linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger



--
iSYS Software GmbH
  
Michael Seeberger | Softwareentwickler
  
+++ Achtung: Wir ziehen am 20.05.2011 um +++
  
Unsere neue Anschrift:

Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14
  
Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14

email:m.seeber...@isys-software.de  
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de  
  
Sitz der Gesellschaft: München | HRB 111760

Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer


--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtu

AW: Problem with whitespace-treatment

2011-05-11 Thread Georg Datterl
Hi Michael,

So if the user misses a blank, the alignment goes to hell? If yes, try to 
replace all blanks with   (or all double blanks with two nbsp, if you 
still want a break in the text). Ugly, but could work.

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 16:13
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Problem with whitespace-treatment

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:
Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a table?

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 15:37
An: fop-users@xmlgraphics.apache.org
Betreff: Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:



i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
=> The text "Gutschriften überweisen " gets wrapped at "diese" and a 
leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so 
the text is printed this way;


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
"Bank", and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger



--

iSYS Software GmbH



Michael Seeberger | Softwareentwickler



+++ Achtung: Wir ziehen am 20.05.2011 um +++



Unsere neue Anschrift:

Grillparzerstr. 10

81675 München

Tel. +49 (0) 89 462328-0

Fax +49 (0) 89 462328-14



Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14

email: m.seeber...@isys-software.de

Lucile-Grahn-Str. 37 | D-81675 Muenchen

www.isys-software.de



Sitz der Gesellschaft: München | HRB 111760

Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer


Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:


Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a 
table?


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de 

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 



Willmy PrintMedia GmbH: www.willmy.de 

Willmy Consult & Content GmbH: www.willmycc.de 

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 15:37
*An:* fop-users@xmlgraphics.apache.org
*Betreff:* Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empfänger)


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:




i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
=> The text "Gutschriften überweisen " gets wrapped at "diese" 
and a leading whitespace is added to the following line so it looks 
like this:


Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing 
ignored so the text is printed this way;



Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before "Bank", and inserting a whitespace when performing an automatic 
linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger



--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtung: Wir ziehen am 20.05.2011 um +++

Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14

Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email: m.seeber...@isys-software.de
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de

Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer



Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger
 ahh yes that should be spaces before the X's (dont know what 
happend to the spaces in my mail ...).

i tried inserting tab characters (	 in XML) but it didn't really work.

Michael Seeberger

Am 11.05.2011 15:55, schrieb Michael Rubin:


I am guessing they are space characters before the X's. I was just 
wondering if you have tried tab characters at all? Does that have a 
similar effect? Certainly in word processing tabs align much better 
than spaces especially where different fonts are involved.


Thanks.

-Mike

On 11/05/11 14:37, Michael Seeberger wrote:


Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empf�nger)


��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:




i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
��� => The text "Gutschriften �berweisen " gets wrapped at 
"diese" and a leading whitespace is added to the following line so it 
looks like this:

���
��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 ge�ndert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
��� => The leading whitespaces before "Bank", "BLZ" etc. are beeing 
ignored so the text is printed this way;


���
��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
��� ge�ndert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before "Bank", and inserting a whitespace when performing an 
automatic linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger









*Michael Rubin*

Developer

Thunderhead LogoTagline Triangles

*T*

*F*

*M*

*E*

*W*



+44 20 8238 7400

+44 20 8238 7401

mru...@thunderhead.com 

www.thunderhead.com   

Thunderhead featured in The Sunday Times Profit Track 100 league table 
of companies with fastest-growing profits. Click here 
 to read more.


LinkedIn  twitter 
RSS 
YouTube 
 
were-hiring 


The contents of this e-mail are intended for the named addressee only. 
It contains information that may be confidential. Unless you are the 
named addressee or an authorized designee, you may not copy or use it, 
or disclose it to anyone else. If you received it in error please 
notify us immediately and then destroy it.




--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtung: Wir ziehen am 20.05.2011 um +++

Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14

Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email: m.seeber...@isys-software.de
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de

Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer



AW: Problem with whitespace-treatment

2011-05-11 Thread Georg Datterl
Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a table?

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Michael Seeberger [mailto:michael.seeber...@isys-software.de]
Gesendet: Mittwoch, 11. Mai 2011 15:37
An: fop-users@xmlgraphics.apache.org
Betreff: Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:



i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
=> The text "Gutschriften überweisen " gets wrapped at "diese" and a 
leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so 
the text is printed this way;


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
"Bank", and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger


Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Rubin

I am guessing they are space characters before the X's. I was just wondering if 
you have tried tab characters at all? Does that have a similar effect? 
Certainly in word processing tabs align much better than spaces especially 
where different fonts are involved.

Thanks.

-Mike

On 11/05/11 14:37, Michael Seeberger wrote:
Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empf�nger)

��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:



i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
��� => The text "Gutschriften �berweisen " gets wrapped at "diese" and a 
leading whitespace is added to the following line so it looks like this:
���
��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
��� => The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so 
the text is printed this way;

���
��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
��� ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
"Bank", and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger





Michael Rubin


Developer


[http://thunderhead.com/email_signature/images/Thunderhead-logo.png]
[http://thunderhead.com/email_signature/images/make-every-communication-count.png]
  [http://thunderhead.com/email_signature/images/triangles.png]

T

F

M

E

W


+44 20 8238 7400

+44 20 8238 7401



mru...@thunderhead.com

www.thunderhead.com



Thunderhead featured in The Sunday Times Profit Track 100 league table of companies 
with fastest-growing profits. Click 
here to read more.


[http://thunderhead.com/email_signature/images/linkedin.png]
 [http://thunderhead.com/email_signature/images/twitter.png]  
[http://thunderhead.com/email_signature/images/rss.png]  
[http://thunderhead.com/email_signature/images/youtube.png]  
[http://thunderhead.com/email_signature/images/theblog.png]   
[http://thunderhead.com/email_signature/images/werehiring.png] 

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.






Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and 
can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empfänger)


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:




i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
=> The text "Gutschriften überweisen " gets wrapped at "diese" 
and a leading whitespace is added to the following line so it looks like 
this:


Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
=> The leading whitespaces before "Bank", "BLZ" etc. are beeing 
ignored so the text is printed this way;



Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before "Bank", and inserting a whitespace when performing an automatic 
linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger



Re: How to get fonts loaded programatically?

2011-05-11 Thread mehdi houshmand
Hi Theresa,

What version of FOP are you using? That config file doesn't look like the
FOP 1.0 fop.xconf.

Mehdi

On 10 May 2011 11:36, Theresa Jayne Forster  wrote:

> Sorry about that, ok moved to the right Thread.
>
>
>
> I first Tried with the original font metrics details from before. Its
> almost as if its not loading the fopconfig.xml.  How can I see if it is or
> not?
>
> I followed the example on the site and its not seemingly to work.  No
> matter how I try it doesn’t seem to be loading the config file. And not
> showing an error.
>
> The fopconfig.xml file can be seen here
>
>
>
> http://pastebin.com/W9pbrVT1
>
>
>
> Theresa
>
>
>
> Hi Theresa,
>
>
>
> Firstly, can you try not to mix queries in threads, if people refer
>
> back to this thread, it makes it difficult to follow. Also, you
>
> already have a thread concerning this issue so anyone that wants to
>
> help you, doesn't have all the information.
>
>
>
> That said, I think it might be worth you configuring the fonts
>
> individually rather than depending on the automated method. What
>
> output format are you using? Do you want to reference fonts or embed
>
> them? Take a look at
>
> http://xmlgraphics.apache.org/fop/trunk/fonts.html#register, it
>
> explains how to reference fonts individually and it's not clear,
>
> please feel free to ask more questions.
>
>
>
> Mehdi
>
>
>
>
>
> Kindest regards
>
>
>
>
> Theresa Forster
>
> Senior Software Developer
>
> ther...@inbrand.co.uk
> www.inbrand.co.uk
>
> *Tel: 01483 266500*
>
>
>
>
>
> IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
> Software Ltd. The information in this transmission is for the intended
> addressee only and is confidential to that intended addressee. If either you
> know or you ought reasonably to conclude that you are not, or may not be,
> the intended addressee, you are hereby given notice that any unauthorised
> dissemination or copying of this transmission and any disclosure or use of
> the information
> transmitted is strictly prohibited and may be illegal. In such
> circumstances we ask for your assistance in notifying us immediately by
> e-mail, telephone or letter.
>
> InBrand Software Ltd Registered in England No. 5131004 Registered Office:
> The Old Barn, Ewhurst Road, Cranleigh GU6 7EF
>
>
>
> *From:* Theresa Jayne Forster [mailto:ther...@inbrand.co.uk]
> *Sent:* 10 May 2011 09:49
>
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* RE: How to get fonts loaded programatically?
>
>
>
> I guess, I was also wanting to check I was implementing it in the right
> way?
>
>
>
> Or to make it use the fonts do I need to create an FOUserAgent rather than
> just a Fop instance from the factory?
>
>
>
> As there are not really any proper examples of embedding that explain the
> difference between making a
>
> Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,out);
>
>
>
> Or
>
> FOUserAgent userAgent = fopFactory.newFOUserAgent();
>
> Fop fop = fopFactory.newFop(MimeConstants.MIME_POSTSCRIPT, userAgent, out);
>
>
>
> What is the difference between the two and what are the benefits of using a
> user agent rather than just a fop?
>
>
>
>
>
> Theresa
>
> * *
>
> *From:* mehdi houshmand [mailto:med1...@gmail.com]
> *Sent:* 10 May 2011 09:40
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: How to get fonts loaded programatically?
>
>
>
> Hi Theresa,
>
>
>
> There're two ways you can find out what you're looking for, some
> information is on the FOP website
> http://xmlgraphics.apache.org/fop/trunk/fonts.html, but if that fails to
> answer your questions I'd suggest you look through the mailing list
> archives. There have been quite a few of questions regarding fonts fairly
> recently, so that'll probably help you find the answers you're looking for.
>
>
>
> Hope that helps
>
>
>
> Mehdi
>
> On 10 May 2011 09:29, Theresa Jayne Forster  wrote:
>
> I have been trying to get fonts to load programmatically using the latest
> FOP
>
> To instantiate the factory I do the following
>
>
>
> private static final  FopFactory fopFactory =
> FopFactory.newInstance();
>
> fopFactory.setUserConfig(new File("C:/myfiles/fopconfig.xml"));
>
> fopFactory.setTargetResolution(300);
>
>
>
> then I make the Fop and use it…
>
>
>
> The config file has 2 separate sections,
>
> 1.   Fonts section as per the old system (I copied it from our old
> setup)
>
> 2.   A renderer section for PDF telling it to use autodetect.
>
>
>
> But I am not seeing anything in the logs except the standard 14… and these
> errors.
>
>
>
> 2011-05-09 16:28:06,551 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
> - Font "HelveticaNeue,normal,400" not found. Substituting with
> "any,normal,400".
>
> 2011-05-09 16:28:06,822 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
> - Font "AGaramond,normal,700" not found.. Substituting with
> "any,normal,700".
>
> 2011-05-09 16:28:06,824 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
> - Font "H

AW: ExampleXML2PDF.java ERROR

2011-05-11 Thread Georg Datterl
Hi dinuka,

Which version of fop and which version of xmlgraphics do you use?

regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.de
Willmy Consult & Content GmbH:   
www.willmycc.de

Von: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk]
Gesendet: Mittwoch, 11. Mai 2011 14:01
An: fop-users@xmlgraphics.apache.org
Betreff: RE: ExampleXML2PDF.java ERROR

Looks strange, I have had no problem with the latest from Trunk and the stand 
alone program here  http://pastebin.com/zzQrHwwD
Except for the Font issue I am having that is.

Maybe have a look at the code I have there and see where yours differs, mine 
takes xml/xslt and turns it into PDF


Kindest regards


Theresa Forster
Senior Software Developer

From: dinuka dayarathna [mailto:dinukaonl...@gmail.com]
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

(I have sent this problem earlier. but not sure whether it is delivered or not. 
that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link 
ExampleXML2PDF.java.
 This is the application which I had searched from a long time.

But when I build and run this application it gives me the following error.
=
FOP ExampleXML2PDF

Preparing...
Input: XML 
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectteam.xml)
Stylesheet: 
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectteam2fo.xsl
Output: PDF 
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pdf)

Transforming...
Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/util/Iterator;
at 
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMappingRegistry.java:75)
at 
org.apache.fop.fo.ElementMappingRegistry.(ElementMappingRegistry.java:67)
at org.apache.fop.apps.FopFactory.(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.
=
Please tell me what is the issue and if it is a problem with the jar files I'm 
using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this email.

thank you a lot.
Dinuka.


RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
On another note I had lots of classdef not founds and discovered I needed

Avalon Framework

Xml-api-ext

Commons.configuration 

And

Xmlgraphics.commons-1.5svn.jar 

 

libraries

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 

From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
 . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
Looks strange, I have had no problem with the latest from Trunk and the
stand alone program here  http://pastebin.com/zzQrHwwD

Except for the Font issue I am having that is. 

 

Maybe have a look at the code I have there and see where yours differs, mine
takes xml/xslt and turns it into PDF

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
 . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link
ExampleXML2PDF.java.
This is the application which I had searched from a long time.

But when I build and run this application it gives me the following error.
=
FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectteam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectteam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pdf)

Transforming...
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/util/Iterator;
at org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings
(ElementMappingRegistry.java:75)
at org.apache.fop.fo.ElementMappingRegistry.
(ElementMappingRegistry.java:67)
at org.apache.fop.apps.FopFactory.(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.
=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.

   
  100
  Steven
  King
  SKING
  515.123.4567
  1987-06-17
  24000
   
   
  101
  Neena
  Kochhar
  NKOCHHAR
  515.123.4568
  1989-09-21
  17000
   
   
  102
  Lex
  De Haan
  LDEHAAN
  515.123.4569
  1993-01-13
  17000
   
   
  103
  Alexander
  Hunold
  dinukad
  590.423.4567
  1990-01-03
  9000
   
   
  104
  Bruce123
  Ernst
  BERNST
  590.423.4568
  1991-05-21
  6000
   
   
  105
  David
  Austin
  DAUSTIN
  590.423.4569
  1997-06-25
  4800
   
   
  106
  Valli
  Pataballa
  VPATABAL
  590.423.4560
  1998-02-05
  4800
   
   
  107
  Diana
  Lorentz
  DLORENTZ
  590.423.5567
  1999-02-07
  4200
   
   
  108
  Nancy
  Greenberg
  NGREENBE
  515.124.4569
  1994-08-17
  12000
   
   
  109
  Daniel
  Faviet
  DFAVIET
  515.124.4169
  1994-08-16
  9000
   
   
  110
  John
  Chen
  JCHEN
  515.124.4269
  1997-09-28
  8200
   
   
  111
  Ismael
  Sciarra
  ISCIARRA
  515.124.4369
  1997-09-30
  7700
   
   
  112
  Jose Manuel
  Urman
  JMURMAN
  515.124.4469
  1998-03-07
  7800
   
   
  113
  Luis
  Popp
  LPOPP
  515.124.4567
  1999-12-07
  6900
   
   
  114
  Den
  Raphaely
  DRAPHEAL
  515.127.4561
  1994-12-07
  11000
   
   
  115
  Alexander
  Khoo
  AKHOO
  515.127.4562
  1995-05-18
  3100
   
   
  116
  Shelli
  Baida
  SBAIDA
  515.127.4563
  1997-12-24
  2900
   
   
  117
  Sigal
  Tobias
  STOBIAS
  515.127.4564
  1997-07-24
  2800
   
   
  118
  Guy
  Himuro
  GHIMURO
  515.127.4565
  1998-11-15
  2600
   
   
  119
  Karen
  Colmenares
  KCOLMENA
  515.127.4566
  1999-08-10
  2500
   
   
  120
  Matthew
  Weiss
  MWEISS
  650.123.1234
  1996-07-18
  8000
   
   
  121
  Adam
  Fripp
  AFRIPP
  650.123.2234
  1997-04-10
  8200
   
   
  122
  Payam
  Kaufling
  PKAUFLIN
  650.123.3234
  1995-05-01
  7900
   
   
  123
  Shanta
  Vollman
  SVOLLMAN
  650.123.4234
  1997-10-10
  6500
   
   
  124
  Kevin
  Mourgos
  KMOURGOS
  650.123.5234
  1999-11-16
  5800
   
   
  125
  Julia
  Nayer
  JNAYER
  650.124.1214
  1997-07-16
  3200
   
   
  126
  Irene
  Mikkilineni
  IMIKKILI
  650.124.1224
  1998-09-28
  2700
   
   
  127
  James
  Landry
  JLANDRY
  650.124.1334
  1999-01-14
  2400
   
   
  128
  Steven
  Markle
  SMARKLE
  650.124.1434
  2000-03-08
  2200
   
   
  129
  Laura
  Bissot
  LBISSOT
  650.124.5234
  1997-08-20
  3300
   
   
  130
  

RE: Determine font names to use

2011-05-11 Thread Theresa Jayne Forster
Thanks for the information but I am using FOP as an api within a tomcat app so 
while it may help as a standalone thing, I was hoping to be able to get the 
actual names programmatically so that I could generate a list in the app of 
installed fonts on the JS editor.

Theresa

-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 11 May 2011 09:37
To: fop-users@xmlgraphics.apache.org
Subject: Re: Determine font names to use

Hi Theresa,

perhaps this link can help you:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#font-list


Le 11/05/2011 10:16, Theresa Jayne Forster a écrit :
> I am slowly getting through this minefield,
> 
>  
> 
> For the AutoReg fonts, how do we determine the names to use in the XML
> 
> I have been trying the following and am getting annoying and conflicting
> results.
> 
>  
> 
> The text in the xsl is
> 
>  font-style="normal" font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
> 
> 
> 
>  
> 
> Error is
> 
> 2011-05-11 09:01:21,837 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "FrutigerNormal,normal,400" not found. Substituting with
> "any,normal,400".
> 
>  
> 
> Next change.
> 
>  
> 
> Text in the xsl is changed to
> 
>  font-style="normal" font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect
> fonts
> 
>  
> 
> FOP works fine,
> 
>  
> 
> Adobe responds however with a large bullet on the page and the popup
> “Cannot find or create the font ‘FrutigerLight’. Some Characters may not
> display or print correctly.
> 
>  
> 
> FOP log shows
> 
> 2011-05-11 09:04:11,918 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> Frutiger,normal,200".
> 
>  
> 
>  
> 
> Ok lets try it one more time…
> 
>  font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect fonts 
> 
> 
>  
> 
> Popup the same,
> 
>  
> 
> Log the same
> 
> 2011-05-11 09:07:31,919 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> "Frutiger,normal,200".
> 
>  
> 
> Ok that’s strange its not accepting the font-weight param anymore (the
> old version of Fop worked fine.)
> 
>  
> 
> Change the XSL to font-weight=”200” and there is no error in the FOP
> logs but still the same error on the PDF.
> 
>  
> 
> So, how do we use these fonts and how do you find the names needed to
> use them properly ?
> 
>  
> 
> The fopconfig.xml is as follows.
> 
>  
> 
> 
> 
> 
> 
>  recursive="true">C:/Runtime/Fonts
> 
> 
> 
> 
> 
> 
> 
>  
> 
> Kindest regards
> 
>  
> 
> 
> Theresa Forster

-- 
Pascal

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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3628 - Release Date: 05/10/11



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



Re: Determine font names to use

2011-05-11 Thread Pascal Sancho
Hi Theresa,

perhaps this link can help you:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#font-list


Le 11/05/2011 10:16, Theresa Jayne Forster a écrit :
> I am slowly getting through this minefield,
> 
>  
> 
> For the AutoReg fonts, how do we determine the names to use in the XML
> 
> I have been trying the following and am getting annoying and conflicting
> results.
> 
>  
> 
> The text in the xsl is
> 
>  font-style="normal" font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
> 
> 
> 
>  
> 
> Error is
> 
> 2011-05-11 09:01:21,837 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "FrutigerNormal,normal,400" not found. Substituting with
> "any,normal,400".
> 
>  
> 
> Next change.
> 
>  
> 
> Text in the xsl is changed to
> 
>  font-style="normal" font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect
> fonts
> 
>  
> 
> FOP works fine,
> 
>  
> 
> Adobe responds however with a large bullet on the page and the popup
> “Cannot find or create the font ‘FrutigerLight’. Some Characters may not
> display or print correctly.
> 
>  
> 
> FOP log shows
> 
> 2011-05-11 09:04:11,918 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> Frutiger,normal,200".
> 
>  
> 
>  
> 
> Ok lets try it one more time…
> 
>  font-size="15pt" text-align="left">
> 
> This is supposed to be in Frutiger Normal to test the auto-detect fonts 
> 
> 
>  
> 
> Popup the same,
> 
>  
> 
> Log the same
> 
> 2011-05-11 09:07:31,919 [main] WARN  org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> "Frutiger,normal,200".
> 
>  
> 
> Ok that’s strange its not accepting the font-weight param anymore (the
> old version of Fop worked fine.)
> 
>  
> 
> Change the XSL to font-weight=”200” and there is no error in the FOP
> logs but still the same error on the PDF.
> 
>  
> 
> So, how do we use these fonts and how do you find the names needed to
> use them properly ?
> 
>  
> 
> The fopconfig.xml is as follows.
> 
>  
> 
> 
> 
> 
> 
>  recursive="true">C:/Runtime/Fonts
> 
> 
> 
> 
> 
> 
> 
>  
> 
> Kindest regards
> 
>  
> 
> 
> Theresa Forster

-- 
Pascal

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



Determine font names to use

2011-05-11 Thread Theresa Jayne Forster
I am slowly getting through this minefield, 

 

For the AutoReg fonts, how do we determine the names to use in the XML

I have been trying the following and am getting annoying and conflicting
results.

 

The text in the xsl is 



This is supposed to be in Frutiger Normal to test the auto-detect fonts



 

Error is 

2011-05-11 09:01:21,837 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
"FrutigerNormal,normal,400" not found. Substituting with "any,normal,400".

 

Next change.

 

Text in the xsl is changed to 



This is supposed to be in Frutiger Normal to test the auto-detect
fonts

 

FOP works fine, 

 

Adobe responds however with a large bullet on the page and the popup "Cannot
find or create the font 'FrutigerLight'. Some Characters may not display or
print correctly.

 

FOP log shows 

2011-05-11 09:04:11,918 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
"Frutiger,normal,400" not found. Substituting with Frutiger,normal,200".

 

 

Ok lets try it one more time.

 

This is supposed to be in Frutiger Normal to test the auto-detect fonts


 

Popup the same, 

 

Log the same 

2011-05-11 09:07:31,919 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
"Frutiger,normal,400" not found. Substituting with "Frutiger,normal,200".

 

Ok that's strange its not accepting the font-weight param anymore (the old
version of Fop worked fine.)

 

Change the XSL to font-weight="200" and there is no error in the FOP logs
but still the same error on the PDF.

 

So, how do we use these fonts and how do you find the names needed to use
them properly ?

 

The fopconfig.xml is as follows.

 





C:/Runtime/Fonts







 

Kindest regards

 


Theresa Forster

Senior Software Developer

  ther...@inbrand.co.uk
  www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

<>