Re: Table of Contens fo:leader Problem

2007-11-27 Thread Dirk Bromberg

Hey,

thanks for this workaround. I'think it is ok.

Dirk

Jeremias Maerki schrieb:

I can't think of an FO construct that would accomplish this. The only
work-around would be a table but that leaves you with a possible compromise
concerning the leader which cannot come as close to the page number as
you might wish.

fo:table width=100% table-layout=fixed
fo:table-column column-width=95%/
fo:table-column column-width=5%/
fo:table-body
  fo:table-row
fo:table-cell
  fo:block text-align-last=justify1 Demo Demo Demo Demo Demo Demo Demo 
Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo fo:leader

  leader-pattern=rule rule-thickness=0.5pt/
  /fo:block  
/fo:table-cell

fo:table-cell display-align=after
  fo:block text-align=end555/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table

I guess, we'd need a text-indent-last or something.

Jeremias Maerki



On 26.11.2007 12:46:43 Dirk Bromberg wrote:
  

Hi Users,

i've a small problem with the usage of a leader.

When i will render a TOC, i use this code:

fo:block text-align-last=justify1 Demo Demo Demo Demo Demo Demo Demo 
Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo fo:leader

leader-pattern=rule rule-thickness=0.5pt/ 555
/fo:block

The problem: When the text Demo is too long for the page then it 
breaks above the pagenumber and starts in a new line under the start of 
the first line. Is there way to create a style like:


---
1 Demo Demo Demo BREAK
   Demo Demo  555



Thanks.

Dirk




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table of Contens fo:leader Problem

2007-11-26 Thread Dirk Bromberg

Hi Users,

i've a small problem with the usage of a leader.

When i will render a TOC, i use this code:

fo:block text-align-last=justify1 Demo Demo Demo Demo Demo Demo Demo 
Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo Demo fo:leader

   leader-pattern=rule rule-thickness=0.5pt/ 555
   /fo:block

The problem: When the text Demo is too long for the page then it 
breaks above the pagenumber and starts in a new line under the start of 
the first line. Is there way to create a style like:


---
1 Demo Demo Demo BREAK
  Demo Demo  555



Thanks.

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



fop pagebreak problems / errors

2007-03-27 Thread Dirk Bromberg

Hi fops,


I've got some strange behaviour of the fop-mechanisms when I try to 
force a page break from within a table. Basically the page breaks seem 
to have no effect, as long as the height of an enclosing row is not 
reached. I'm using fop-0.93.




I attached a small set of files to illustrate that. In the file 
not_paging.fo, the page-break is the only block element within a row 
with enforced height of 10. The page break is ignored here. Changing to 
break-before doesn't change that.




After inserting a bit of text (as in is_paging.fo), the height of the 
cell is taller than indicated in the fo, and surprisingly the page break 
*is* included. Can you please check, if this is an intended behaviour? 
If so: How can I enforce a page break then without having to remove the 
height constraints?



Thanks

Dirk





PS - On a different note: break-after crashes in the fo given in 
crash.fo with an illegal state exception (this surely is a bug, isn't it?):




java.lang.IllegalStateException: Invalid break class: -1

   at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)


   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

   at org.apache.fop.cli.Main.startFOP(Main.java:160)

   at org.apache.fop.cli.Main.main(Main.java:191)



When I change to break-before, it doesn't crash.

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;!-- defines page layout --
	fo:layout-master-set
		fo:simple-page-master master-name=1 page-height=297mm
			page-width=210mm
			fo:region-body /
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-reference=1
		fo:flow flow-name=xsl-region-body
			fo:table table-layout=fixed width=100%
fo:table-body
	fo:table-row
		fo:table-cell
			fo:table table-layout=fixed
width=100%
fo:table-body
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
linefeed-treatment=ignore font-family=Helvetica
font-size=12pt
page
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
break-after=page /
		/fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:table table-layout=fixed
width=100%
fo:table-body
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
linefeed-treatment=ignore font-family=Helvetica
font-size=12pt
page
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
break-after=page /
		/fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:table table-layout=fixed
width=100%
fo:table-body
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
linefeed-treatment=ignore font-family=Helvetica
font-size=12pt
page
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
break-after=page /
		/fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:table table-layout=fixed
width=100%
fo:table-body
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
linefeed-treatment=ignore font-family=Helvetica
font-size=12pt
page
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
break-after=page /
		/fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:table table-layout=fixed
width=100%
fo:table-body
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block
linefeed-treatment=ignore font-family=Helvetica
font-size=12pt
page
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row 
		fo:table-cell
			display-align=auto text-align=start
			fo:block

Re: own URIResolver for ttf fonts?

2007-01-03 Thread Dirk Bromberg

No,

what i need is a way to add a resolver which pulls the files out of an 
database.


So it is more like the basepath...

Dirk

Peter schrieb:

Perhaps the setFontBaseURL method in FopFactory does what you want ?

Peter

  

-Original Message-
From: Dirk Bromberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 03, 2007 6:34 PM
To: fop-users@xmlgraphics.apache.org
Subject: own URIResolver for ttf fonts?

Hi,

is it possible the override a resolver for the destination of the ttf
file (whole font handling)?

- ttf file
- metrics xml file

I've tried the URIResolver but it works only for things like images ...


Thanks


Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: own URIResolver for ttf fonts?

2007-01-03 Thread Dirk Bromberg

Hey,

this sounds great. So i'll hope that the release it going fine this time 
:-) good luck!


Dirk


Jeremias Maerki schrieb:

The latest FOP Trunk (and the soon-to-be-released 0.93) loads fonts and
metric files through the URIResolver. You can easily write your own
URIResolver (see [1] as an example) to handle URIs to font resources in
a special way. BTW, you can omit the step with the metrics file with the
latest version. This is a new feature where we'd be glad for some
feedback.

[1] 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/servlet/ServletContextURIResolver.java?view=markup

On 03.01.2007 18:33:53 Dirk Bromberg wrote:
  

Hi,

is it possible the override a resolver for the destination of the ttf 
file (whole font handling)?


- ttf file
- metrics xml file

I've tried the URIResolver but it works only for things like images ...


Thanks


Dirk




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use PDF as input source for FOP

2006-11-30 Thread Dirk Bromberg

Hi,

what you want can be done with itext.
www.lowagie.com/*iText*/

fop can only create pdfs with some like xml:fo as source.

Dirk

[EMAIL PROTECTED] schrieb:


Has anyone had any experience with using PDF's as input for FOP?

We are using FOP 0.20.5 with Java 1.5.  We have a PDF that was 
provided to us by an outside source.  We would like to leverage the 
existing PDF (or as much of it as we can)  by using it as an input 
source.  Our goal is to  modify it with our data, and have FOP 
generate a new PDF for us, which would be a combination of the 
original PDF and our data.


From reading the FAQ's and the mail archives for FOP, it appears FOP 
will only take XML and XSL-FO as input.  So, I am wondering, do I need 
to use some independent PDF to XML conversion tool, or if there is a 
better/easier way to do this?


Thank you for any insight you can offer us regarding this issue.








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



none break space and fop

2006-11-24 Thread Dirk Bromberg

Hi,

some time ago i've asked for the implementation state fo soft-hyphens. 
Now i need an answer if none break spaces are implemented in fop (0.92 
or trunk) and working!?


if they are implemented, which signs are allowed?
U+00A0, U+200C and U+200D; (nbsp;) ?

I can't find something at the website... (only in the 0.25 section)


Thanks

Dirk




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: none break space and fop

2006-11-24 Thread Dirk Bromberg

Thanks.

So, we'll try to use this feature.

Dirk


Manuel Mall schrieb:

On Friday 24 November 2006 19:08, Dirk Bromberg wrote:
  

Hi,

some time ago i've asked for the implementation state fo
soft-hyphens. Now i need an answer if none break spaces are
implemented in fop (0.92 or trunk) and working!?

if they are implemented, which signs are allowed?
U+00A0, U+200C and U+200D; (nbsp;) ?




Looking through the code and our testcases U+00A0 is supported.

I don't think the U+200C and U+200D (ZW[N]J) code points are properly 
supported. However, as FOP does not (yet) implement ligatures or 
Unicode compliant linebreaking this may not be a problem.


  

I can't find something at the website... (only in the 0.25 section)


Thanks

Dirk



Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table Border Help needed

2006-10-25 Thread Dirk Bromberg


Very thanks, that was it. I've disabled the Acrobat anti-aliasing 
Smooth line art and now it works fine in the Reader.


But when i print the page the borders are like before... is there a 
Smooth line art setting in the Adobe Reader print settings? I can't 
find something like that.



Dirk



Jeremias Maerki schrieb:

It could very well be that there is no mistake. I'm fairly sure that the
problem goes away if you disable anti-aliasing in Acrobat Reader and
that the problem doesn't occur in print. Is that so?

If that's the case, you might be asking if there's a way to avoid that
effect. I don't think it's worth the effort but if the PDF renderer were
extended with some smart algorithm that can combine border elements to
larger combinations this effect could be avoided.

On 24.10.2006 15:41:19 Dirk Bromberg wrote:
  

Hi,

i've written an generic table modell which creates the fo code for a 
table. Inline is a sample of the table as screenshot. My problem are the 
borders in cell which don't have a top and bottom border, here the line 
in the middle. You can see that the border is thicker than the border in 
the first and last line...





The Table has border-collapse=separate and each Cell has a:

border-top=[EMAIL PROTECTED]
border-bottom=[EMAIL PROTECTED]
border-left=[EMAIL PROTECTED]
border-right=[EMAIL PROTECTED]

with: none or 1mm solid gray as value.

Is there a better was to create such borders? 


 What is the mistake?

Thanks.

Dirk





Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table Border Help needed

2006-10-25 Thread Dirk Bromberg

Hm,

i'll try some older versions of the Reader...

Thanks.

Dirk

Jeremias Maerki schrieb:

No, there's no setting for print. But so far I've never seen
anti-aliasing artifacts in print with Acrobat Reader. That's weird but
short of investing a lot of time to improve border painting I have no
idea how to solve this.

On 25.10.2006 09:23:30 Dirk Bromberg wrote:
  
Very thanks, that was it. I've disabled the Acrobat anti-aliasing 
Smooth line art and now it works fine in the Reader.


But when i print the page the borders are like before... is there a 
Smooth line art setting in the Adobe Reader print settings? I can't 
find something like that.



Dirk



Jeremias Maerki schrieb:


It could very well be that there is no mistake. I'm fairly sure that the
problem goes away if you disable anti-aliasing in Acrobat Reader and
that the problem doesn't occur in print. Is that so?

If that's the case, you might be asking if there's a way to avoid that
effect. I don't think it's worth the effort but if the PDF renderer were
extended with some smart algorithm that can combine border elements to
larger combinations this effect could be avoided.

On 24.10.2006 15:41:19 Dirk Bromberg wrote:
  
  

Hi,

i've written an generic table modell which creates the fo code for a 
table. Inline is a sample of the table as screenshot. My problem are the 
borders in cell which don't have a top and bottom border, here the line 
in the middle. You can see that the border is thicker than the border in 
the first and last line...





The Table has border-collapse=separate and each Cell has a:

border-top=[EMAIL PROTECTED]
border-bottom=[EMAIL PROTECTED]
border-left=[EMAIL PROTECTED]
border-right=[EMAIL PROTECTED]

with: none or 1mm solid gray as value.

Is there a better was to create such borders? 


 What is the mistake?

Thanks.

Dirk




Jeremias Maerki
  


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table Border Help needed

2006-10-24 Thread Dirk Bromberg




Hi,

i've written an "generic table modell" which creates the fo code for a
table. Inline is a sample of the table as screenshot. My problem are
the borders in cell which don't have a top and bottom border, here the
line in the middle. You can see that the border is thicker than the
border in the first and last line...




The Table
has border-collapse="separate" and each Cell has a:
border-top="[EMAIL PROTECTED]"
border-bottom="[EMAIL PROTECTED]"
border-left="[EMAIL PROTECTED]"
border-right="[EMAIL PROTECTED]" 

with: none or 1mm solid gray as value.

Is there a better was to create such borders? 
 What
is the mistake?

Thanks.

Dirk




Re: trouble positionning an image on the top of my document

2006-09-10 Thread Dirk Bromberg

Hi,

try to set font-size=0pt at the fo:block where the image is in.

Dirk


Olivier Mansour schrieb:

Hello

I have a problem with fop 0.92. I try to set a picture on the top left 
of the page.
It's obvious but I have a little white space on the top of the PDF 
doc. Here the fo file and the pdf given


An idea ?

Thank you !



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Commercial Processors

2006-08-31 Thread Dirk Bromberg

Yes,

our dynamic tool is embedded in a customer application, so by using fop 
for this part there a no costs per unit. And for the highres print 
there are a few xep users which can create the printable output.


Dirk

[EMAIL PROTECTED] schrieb:

Thanks for the response. Is there a reason you still do your dynamic documents 
in FOP rather than XEP?

Andy R

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/fop-users@xmlgraphics.apache.org/4794903.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



fo:table in fo:list Question

2006-08-31 Thread Dirk Bromberg

Hi all,


i've a indent question. I've a fo:list with an embedded fo:table (full 
fo attached) then i've the problem that the elements (blocks) in the 
cells are indent by the lists start-indent. But the only thing i want is 
to indent the list-item-body and it content but not the elements in the 
content one for one... or must i use a table aaround my table with one 
column for the list-item-labels and one for the list-item-body??


Thanks

Dirk

fo:list-block
   provisional-distance-between-starts=4mm
   provisional-label-separation=0mm
 fo:list-item
   fo:list-item-label end-indent=label-end()
 fo:block background-color=#FFE0E0
  text-align=left1./fo:block
   /fo:list-item-label
   fo:list-item-body start-indent=body-start()
 fo:block background-color=#E0E0FF
 font=10pt Courier
 text-align=left
   fo:blockdistance-between-starts = 2 in/fo:block
   fo:blocklabel-separation = 0 in/fo:block
fo:table provisional-distance-between-starts=0mm 
table-layout=fixed width=100%  border-collapse=separate

 fo:table-column column-width=50mm/

?xml version=1.0 encoding=utf-8?

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=all-pages
  fo:region-body region-name=xsl-region-body margin=0.7in
  column-gap=0.25in border=0.25pt solid gray
  padding=6pt /
  fo:region-before region-name=xsl-region-before
  extent=0.7in display-align=after padding=6pt 0.7in /
  fo:region-after region-name=xsl-region-after
  extent=0.7in display-align=before padding=6pt 0.7in /
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=all-pages
fo:static-content flow-name=xsl-region-before
/fo:static-content
fo:static-content flow-name=xsl-region-after
 
/fo:static-content
fo:static-content flow-name=xsl-footnote-separator
  fo:block
fo:leader leader-pattern=rule leader-length=100%
rule-thickness=0.5pt rule-style=solid color=black /
  /fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
  fo:block

fo:list-block 
provisional-distance-between-starts=4mm
provisional-label-separation=0mm

  fo:list-item
fo:list-item-label end-indent=label-end()
  fo:block background-color=#FFE0E0
   text-align=left1./fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
  fo:block background-color=#E0E0FF
  font=10pt Courier 
  text-align=left
fo:blockdistance-between-starts = 2 in/fo:block
fo:blocklabel-separation = 0 in/fo:block
 fo:table provisional-distance-between-starts=0mm table-layout=fixed width=100%  border-collapse=separate
  fo:table-column column-width=50mm/
  fo:table-column column-width=50mm/
  fo:table-column column-width=50mm/
  fo:table-body
fo:table-row
  fo:table-cell fo:blockgood/fo:block/fo:table-cell
  fo:table-cell fo:blockbad/fo:block/fo:table-cell
  fo:table-cell fo:blockugly/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell fo:blocknice/fo:block/fo:table-cell
  fo:table-cell fo:blockdice/fo:block/fo:table-cell
  fo:table-cell fo:blockvice/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell fo:blockliterature/fo:block/fo:table-cell
  fo:table-cell fo:blockmusic/fo:block/fo:table-cell
  fo:table-cell fo:blockart/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell fo:blockjava/fo:block/fo:table-cell
  fo:table-cell fo:blockperl/fo:block/fo:table-cell
  fo:table-cell fo:blockpython/fo:block/fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
  /fo:block
/fo:list-item-body
  /fo:list-item
/fo:list-block
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Commercial Processors

2006-08-31 Thread Dirk Bromberg

This sounds very nice :-)

Dirk

Jeremias Maerki schrieb:

Good news then: CMYK and Pantone support has recently appeared on my
planning radar for FOP.

On 31.08.2006 18:37:08 Dirk Bromberg wrote:
  

Yes,

our dynamic tool is embedded in a customer application, so by using fop 
for this part there a no costs per unit. And for the highres print 
there are a few xep users which can create the printable output.


Dirk

[EMAIL PROTECTED] schrieb:


Thanks for the response. Is there a reason you still do your dynamic documents 
in FOP rather than XEP?
  




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: SoftHyphen

2006-06-19 Thread Dirk Bromberg

Thanks for answers.

I'll try both ways to choose the best :-)

Dirk


Beat Pfister wrote:

Hi,

i wants to have a resolution for this scenario:

I've a long word thisismyword and it is in two cells with hyphen on.
1. Now, in the first cell the word fits and all is fine.
2. The word does not fit in the second cell and the hyphen 
breaks - all is fine.


I've no chance to enable or disable the hyphen (must always 
be enabled).
In the second cell i want to force the hyphen mechanism to 
break the word at a special char.


Can i use the soft-hyphens like the U+00AD for this, like 
thisis(U+00AD)myword? Is the priority for this soft hyphen 
higher as for the hyphen pattern from the hyphen-file?



To force the hypen mechnism to break the word at a spcific 'place' you can
define an exception in the hyphen-file.
Example:
exceptions
Thisis-myword

/exceptions

Beat Pfister

  

Thanks

Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SoftHyphen

2006-06-16 Thread Dirk Bromberg

Hi,

i wants to have a resolution for this scenario:

I've a long word thisismyword and it is in two cells with hyphen on.
1. Now, in the first cell the word fits and all is fine.
2. The word does not fit in the second cell and the hyphen breaks - all
is fine.

I've no chance to enable or disable the hyphen (must always be enabled).
In the second cell i want to force the hyphen mechanism to break the
word at a special char.

Can i use the soft-hyphens like the U+00AD for this, like
thisis(U+00AD)myword? Is the priority for this soft hyphen
higher as for the hyphen pattern from the hyphen-file?

Thanks

Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SoftHyphen

2006-06-16 Thread Dirk Bromberg

Hi,

i wants to have a resolution for this scenario:

I've a long word thisismyword and it is in two cells with hyphen on.
1. Now, in the first cell the word fits and all is fine.
2. The word does not fit in the second cell and the hyphen breaks - all 
is fine.


I've no chance to enable or disable the hyphen (must always be enabled).
In the second cell i want to force the hyphen mechanism to break the 
word at a special char.


Can i use the soft-hyphens like the U+00AD for this, like 
thisis(U+00AD)myword? Is the priority for this soft hyphen

higher as for the hyphen pattern from the hyphen-file?

Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



space-after at 0.92b

2006-05-18 Thread Dirk Bromberg

Hi all,

when i need some space after some fo elements i set a space-after=x mm 
to these elements.


but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)

so i use margin-bottom=x mm.
is this a good workaround? is there a better one?


Thanks.

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Read only PDF with fop

2006-05-16 Thread Dirk Bromberg

Have a look at the samplecode at:


   Usage (embedded)

or here inline:

Lukem wrote:

Thank you very much

This is my code:

ByteArrayOutputStream BAout = new ByteArrayOutputStream();
org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver();

driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
driver.setOutputStream(BAout);
  

this should work:

Map rendererOptions = new java.util.HashMap();
rendererOptions.put(ownerPassword, mypassword);
rendererOptions.put(allowCopyContent, FALSE);
rendererOptions.put(allowEditContent, FALSE);
rendererOptions.put(allowPrint, FALSE);
driver.getRenderer().setOptions(rendererOptions);


Dirk

driver.render(input.getParser(), input.getInputSource());

File outputFile = new File(filenamePDF);
FileOutputStream outFileWriter = new FileOutputStream(filenamePDF);

byte[] content = BAout.toByteArray();

outFileWriter.write(content);
outFileWriter.flush();
outFileWriter.close();

How can I integrate with the code of the page you redirect me?

thanks
--
View this message in context: 
http://www.nabble.com/Read-only-PDF-with-fop-t1627655.html#a4410423
Sent from the FOP - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Read only PDF with fop

2006-05-16 Thread Dirk Bromberg

Please read the section


   Environment ...


   at http://xmlgraphics.apache.org/fop/0.20.5/pdfencryption.html


Lukem wrote:

sorry, it was my mistake. this is the real error:

Algorithm RC4 not available
--
View this message in context: 
http://www.nabble.com/Read-only-PDF-with-fop-t1627655.html#a4411290
Sent from the FOP - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error while creating font metric file

2006-05-05 Thread Dirk Bromberg

You shoud you use some like:

java -cp 
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar  
org.apache.fop.fonts.apps.TTFReader


?? the jars have version numbers in...

Dirk

kralik wrote:

Hi,
I am trying to create font metrics file for FOP Trunk. I use the following
command:

java org.apache.fop.fonts.apps.TTFReader C:\myfont\times.ttf
C:\FopTrunk\conf\my_new_font.xml

In my CLASSPATH I have:
C:\FopTrunk\build\fop.jar;C:\FopTrunk\lib\avalon-framework.jar;C:\FopTrunk\lib\xml-apis.jar;C:\FopTrunk\lib\xercesImpl.jar;C:\FopTrunk\lib\xalan.jar
and C:\myfont\times.ttf exists.

I get the following error:
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:109)

Where can be problem?

And is there any possibility then to copy text from PDF?

Thanks, Pavel Tyl
--
View this message in context: 
http://www.nabble.com/Error-while-creating-font-metric-file-t1563275.html#a4245353
Sent from the FOP - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: vertical-align 50% does not work?

2006-05-05 Thread Dirk Bromberg

It is working. Thanks.

Dirk

Manuel Mall wrote:

On Friday 05 May 2006 15:45, Dirk Bromberg wrote:
  

Hi all,

fo:inline font-size=12pt vertical-align=50%.../fo:inline
does result as:
ERROR org.apache.fop.fo.PropertyList  - No conversion defined 50%;
property:'vertical-align'
but the website:
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-vertica
l-align says: Trunk: yes

I'm using 0.92 release.



Had a quick look at the code and the vertical-align shorthand expansion 
does indeed not support percentages. You could try to use the expanded 
properties instead (see XSL-FO spec 7.29.22). In this particular case 
vertical-align=50% is suppose to be expanded into:

alignment-baseline=baseline
alignment-adjust=50%
baseline=shift=baseline
dominant-baseline=auto

This actually means under 'usual circumstances' vertical-align=50% is 
equivalent to alignment-adjust=50%. So try that and let us know if it 
fixed it.


  

Thanks

Dirk




Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: vertical-align 50% does not work?

2006-05-05 Thread Dirk Bromberg
Now I've seen that on XEP there is a property to aviod the shift of the 
normal text when there is a piec of super text (Line gets heigher...)


|* 
http://www.stylusstudio.com/api/fop-0.20.5/org/apache/fop/fo/properties/DominantBaseline.htm#NO_CHANGE*|line-stacking-strategy=max-height 


line-height-shift-adjustment=disregard-shifts

is there a way to get some text as super text 50% and not increase the 
line-height and align of the other text...?


Thanks

Dirk


Dirk Bromberg wrote:

It is working. Thanks.

Dirk

Manuel Mall wrote:

On Friday 05 May 2006 15:45, Dirk Bromberg wrote:
 

Hi all,

fo:inline font-size=12pt vertical-align=50%.../fo:inline
does result as:
ERROR org.apache.fop.fo.PropertyList  - No conversion defined 50%;
property:'vertical-align'
but the website:
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-vertica
l-align says: Trunk: yes

I'm using 0.92 release.



Had a quick look at the code and the vertical-align shorthand 
expansion does indeed not support percentages. You could try to use 
the expanded properties instead (see XSL-FO spec 7.29.22). In this 
particular case vertical-align=50% is suppose to be expanded into:

alignment-baseline=baseline
alignment-adjust=50%
baseline=shift=baseline
dominant-baseline=auto

This actually means under 'usual circumstances' vertical-align=50% 
is equivalent to alignment-adjust=50%. So try that and let us know 
if it fixed it.


 

Thanks

Dirk




Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: vertical-align 50% does not work?

2006-05-05 Thread Dirk Bromberg

Manuel Mall wrote:

On Friday 05 May 2006 20:09, Dirk Bromberg wrote:
  

Now I've seen that on XEP there is a property to aviod the shift of
the normal text when there is a piec of super text (Line gets
heigher...)

|*

http://www.stylusstudio.com/api/fop-0.20.5/org/apache/fop/fo/propert
ies/DominantBaseline.htm#NO_CHANGE*|line-stacking-strategy=max-heigh
t

line-height-shift-adjustment=disregard-shifts

is there a way to get some text as super text 50% and not increase
the line-height and align of the other text...?




line-height-shift-adjustment is not yet implemented. Actually as far as 
I can recall you are the first one mentioning this property on this 
list. However, I believe setting line-stacking-strategy=font-height 
on the enclosing block may do the trick depending on the complexity of 
what you doing.
  

Yes, that's it :-)

Thanks!

Dirk

  

Thanks

Dirk



snip/

Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Font Problem - Cannot load font

2006-04-28 Thread Dirk Bromberg

Hi all,

with the 0.92 release i'get this error:

java.lang.RuntimeException: Cannot load font: failed to create Source 
from metrics file MyFont.xml

   at org.apache.fop.fonts.LazyFont.load(LazyFont.java:75)
   at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:183)
   at org.apache.fop.fonts.Font.getAscender(Font.java:66)

with 0.20.5 it works ...

where can i search?

the metrics it generated with -enc ansi from an ttf font file.

Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Font Problem - Cannot load font

2006-04-28 Thread Dirk Bromberg

Thanks for answer,

i'll have a closer look at it on Tuesday.

btw. the result of the new fop looks great at this moment...

i've a rendering component which uses 0.20.5 (for redistribute) and 
xep (for offset printing) and now i don't want to customize 2 versions 
of the stylesheets, so i'm going to switch to 0.92b because it can use 
the same input as xep :-) at it seems working... without fonts ;-)



Dirk

Jeremias Maerki wrote:

FOP can't find MyFont.xml. Maybe the file isn't there, or the base
directory is not correct or something like that.

On 28.04.2006 17:19:43 Dirk Bromberg wrote:
  

Hi all,

with the 0.92 release i'get this error:

java.lang.RuntimeException: Cannot load font: failed to create Source 
from metrics file MyFont.xml

at org.apache.fop.fonts.LazyFont.load(LazyFont.java:75)
at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:183)
at org.apache.fop.fonts.Font.getAscender(Font.java:66)

with 0.20.5 it works ...

where can i search?

the metrics it generated with -enc ansi from an ttf font file.




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache Jar Question

2006-04-07 Thread Dirk Bromberg

Hi all,

short question:

is it allowed to extract the files from some apache jar and build one 
big jar?


Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Jar Question

2006-04-07 Thread Dirk Bromberg

Thanks for answer,

so i'll watch one it :-)

Dirk

Jeremias Maerki wrote:

That's perfectly feasible. Two things come to my mind that you'll have
to pay attention to:
- If the JARs have different licensing, you have to take care if you
plan to redistribute.
- Duplicate files such as service descriptors in the META-INF/services
directory, for example. You may have to merge these if you encounter any.

On 07.04.2006 13:22:32 Dirk Bromberg wrote:
  
is it allowed to extract the files from some apache jar and build one 
big jar?




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: external-graphic size in PDF

2006-04-06 Thread Dirk Bromberg

Hi,

the new version must have the content-height attribute not the height...

Dirk

Will Peterson wrote:

I'm currently using FOP .2 for a project.  Testing the SVN .9.
 
Just wondering if I'm the only one have problems sizing images.  For 
example:
 
fo:external-graphic height=300px src=myImage.jpg/
 
Using FOP .2 the image comes out perfect, resized to a width of 300 
pixels.  The newer FOP, however, does not resize the image causing (in 
my case) the image to be bigger than the virtual PDF paper it is 
rendered on.
 
Thanks in advance for any help.
 
-Will



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: creating SVG from MathML

2006-03-31 Thread Dirk Bromberg

Hello,

[EMAIL PROTECTED] wrote:

Since MathML is XML and SVG is XML, the natural way to convert one to another, 
as I see it, is with with XSLT. Are you looking for a ready-made Java package 
with classes to produce a variety of SVG formats, or are you looking for a 
general approach?
  
i'm looking for some like fop but not for fo-pdf, but even for 
MathML-SVG.


Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting veradana font to work

2006-03-06 Thread Dirk Bromberg

Have you seen the typo error ?:

font 
metrics-url=fle:///C:/unzipped/fop-0.91beta-bin-jdk1.4/fop-0.91beta/ttfcm.xml 


---   
   font-triplet name=Verdana style=normal weight=normal/
/font

Dirk

Tracey Zellmann wrote:
I am not able to get Verdana to work. I have tried to follow the 
documentation. I have also read the recent emails about embedded font 
problems, but I can't quite follow the details.


I am getting this error.
SEVERE: svg graphic could not be rendered: null
java.lang.NullPointerException
at org.apache.fop.fonts.LazyFont.mapChar(LazyFont.java:97)
at org.apache.fop.fonts.Font.mapChar(Font.java:144)
at 
org.apache.fop.svg.PDFTextPainter.getStringWidth(PDFTextPainter.java:266)

at org.apache.fop.svg.PDFTextPainter.paint(PDFTextPainter.java:219)
at org.apache.batik.gvt.TextNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown 
Source)

at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown 
Source)

at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source), 
and many more...


Here are the steps I have taken

Create font metrics from the local Verdana.ttf file in 
C:\WINDOWS\FONTS using TTFReader
the command window messages indicates it was successful, and the file 
is ttfcm.xml
I did use the -enc ansi otpion. My target customers are using Windows 
and will have the same Verdana font available locally.


Register Fonts with FOP.
I took the configuration file that comes with the distribution 
fop.xconf, and added these elements in the fonts element.
fo:inline font-family=Verdana font-weight=normal 
font-style=normal

Verdana-normal-normal font
/fo:inline

font 
metrics-url=fle:///C:/unzipped/fop-0.91beta-bin-jdk1.4/fop-0.91beta/ttfcm.xml 


font-triplet name=Verdana style=normal weight=normal/
/font



Tell FOP about the configuration

   Fop fop = new Fop(MimeConstants.MIME_PDF);
   DefaultConfigurationBuilder cfgBuilder =
   new DefaultConfigurationBuilder();
   Configuration cfg = cfgBuilder.buildFromFile(
C:/unzipped/fop-0.91beta-bin-jdk1.4/fop-
0.91beta/conf/fop.xconf);

   FOUserAgent userAgent = fop.getUserAgent();
   userAgent.setUserConfig(cfg);

For completeness, here is how I am trying to invoke the font within 
the svg element.


g style=font-family: Verdana, sans-serif; font-size: 10pt; stroke: 
none; fill: black;


Any help would be appreciated. Is there a worked example that touches 
all the aspects?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using 20.5 and Trunk in same project?

2006-03-03 Thread Dirk Bromberg

Hi all,

we've a project in which fop20.5 is already working for many year. now 
we wants to add some new features and are not sure if it is possible to 
use 20.5 and the trunk version in the same application.


all jars are in the same classpath

has someone some experience with this?

we don't want to port the 20.5 yet..

Thanks

Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using 20.5 and Trunk in same project?

2006-03-03 Thread Dirk Bromberg

Thanks for answer, so i'll have a look at it.

Dirk

Jeremias Maerki wrote:

Yes, I do have experience with that. I've written a wrapper API for
XSL-FO implementations [1] where I support exactly that: Support
multiple FO implementations in the same VM. For that to work you have to
isolate the two versions using different class loaders. FOP Trunk still
uses the same package names as 0.20.5 so you can't have both in the same
classpath. The problem with [1] is that it's currently a little behind.
If you want to use it with the latest FOP release I'd have to update it
first. And I'm still looking for a better name for that thing. Sun
doesn't like my using JAXG. :-( You can also just look at the source
code to get some ideas how to isolate the FOP versions.

[1] http://www.jeremias-maerki.ch/dev/jaxg/index.html

On 03.03.2006 11:23:45 Dirk Bromberg wrote:
  
we've a project in which fop20.5 is already working for many year. now 
we wants to add some new features and are not sure if it is possible to 
use 20.5 and the trunk version in the same application.


all jars are in the same classpath

has someone some experience with this?

we don't want to port the 20.5 yet..




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: no runtime java--how to install

2006-01-22 Thread Dirk Bromberg

Hi,

yes, you can run java from CD. Like Glen said, you must copy the JRE 
directory from your java install dir to the CD and if you want to run 
fop you must call the java.exe direct (relative from your script).


Dirk

Glen Mazza wrote:

Paul Tremblay wrote:


I am trying to run fop from a CD (or other removable device). I am at
a different place every day and at a different computer. At some of
the places java is installed, so I can run fop no problem.



I'm assuming you're running fop by calling fop.bat.


However, at other places there is no java runtime. So is it possible
to to install the java runtime on a removable device such as a CD? I 
want to do with java what I do with python, put the executables on a

removable device and then sat the path to these executables.


I *think* so, although I haven't tried it.  I would install (expand) 
the J2SDK (or JRE) on your computer's hard drive, then move the entire 
expanded directory to the CD that will have FOP on it.


Next, modify FOP's fop.bat (located in FOP's root directory); the line 
at the bottom that says java -CP %LOCALCLASSPATH%...; switch it to 
..\jd2sdk\jre\bin\java -CP... or whereever the java.exe will be on 
the CD.  Make sure you use a relative path (..\.., etc.) instead of 
hardcoding the drive letter because that will probably change from 
machine to machine.


Glen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cmyk and FOP 0.91

2006-01-11 Thread Dirk Bromberg

Hi,

i think it is not supported.

you can only use rgb() and hex.

Dirk

Pierre-Yves Landure wrote:

Hello,

i'm currently using FOP 0.20.5 and having issue with RGB / CMYK. Can someone
tell me if CMYK is supported in FOP 0.91 (using rgb-icc) ?

Thanx

Pierre-Yves Landure

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



fop_20.5 fo validation??

2006-01-10 Thread Dirk Bromberg

Hi,

is there a xsd or something else to validate a fo.file for using it with 
fop_20.5 like the trunk version has?


I mean a validation which has build in all the differences form the 
specs to fop :-) (eg. image width and not content-width) we have new 
developer at our project and the ask me...



Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP and PDF Print

2006-01-09 Thread Dirk Bromberg

Hi,

if the PDF in the Reader looks ok and your print out from the Reader 
looks not ok, then it is a problem between the reader and the printer. 
We've the same problem with colors. In the Reader they looks good but 
the printer prints them a bit other...


Dirk


[EMAIL PROTECTED] wrote:
Dear all , 


i have a problem printing the pdf generated from fo. All images have a
darker background (where they are supposed to be white), allthough in the
Acrobat reader itself it looks perfect. 
Only the physical printout from Acrobat reader is screwed up. Does FOP have

a problem with printing images ?

Thanks for your help.

Thomas Schmitt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Image in table not fitting full height?

2005-12-12 Thread Dirk Bromberg

Thanks. the workaround with the font-size works great!

Dirk

Jeremias Maerki wrote:

scaling-method is not evaluated by FOP, so it can't be the problem.
Images are always embedded as is and scaled by the viewer/RIP. That
means that the scaling is always target-device-specific.

The gaps above and below of the images come from line-building, i.e.
from the line-height property among other factors. I was asked about the
same problem by the manufacturer of an FO editor. I still owe him a
reponse. :-( Anyway, I think we still have a bug in line-building. I'll
have to investigate a little further to come up with a test case. But I
think I found a work-around that works for now:

  fo:block background-color=yellow font-size=0pt
fo:external-graphic content-height=40pt 
src=url('http://www.apache.org/images/asf_logo_wide.gif')/
  /fo:block

Setting font-size to 0pt does the trick because it doesn't create any
half-leading trait, or rather a 0mpt value.

In theory, the problem should be solved like this, I think:

  fo:block background-color=yellow line-height=1.0
fo:external-graphic content-height=40pt 
src=url('http://www.apache.org/images/asf_logo_wide.gif') alignment-baseline=after-edge/
  /fo:block

If I'm not mistaken, line-height=1.0 should in theory not lead to a
half-leading trait but that doesn't seem to happen right now. The
alignment-baseline is optional here as there are no characters in this
block that could have a descender because external-graphic is normally
aligned with the baseline AFAIK. But if there were additional
characters, this might be necessary depending on the expectations. Maybe
Manuel has some additional insight here. I'm not the line-building
specialist.

HTH

On 10.12.2005 22:20:23 Andreas L Delmelle wrote:
  

On Dec 10, 2005, at 13:52, Dirk Bromberg wrote:



Here is my fo sample. And a screenshot form the pdf.
I want the image in the xsl-region-before to scale the full  
height of the cell (table) but there  is 1mm border above and 2 mm  
border below the image remaining. Are there default marigns  
paddings or borders at cells block or tables?


Please tell me how to make the logo fits image to the full table  
height.
  
The most likely cause seems to be scaling-method. If that property  
set to auto (= initial value) then the formatter may choose the  
method. I'm guessing all three tested formatters default to integer- 
pixels, which could cause rounding in determining the number of  
device pixels...


As a workaround, maybe you could try making the table-cell's  
background-color black, which would at least create the desired  
appearance.




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Image in table not fitting full height?

2005-12-10 Thread Dirk Bromberg

Hi,

i've a problem with an image into a table.

Here is my fo sample. And a screenshot form the pdf.
I want the image in the xsl-region-before to scale the full height of 
the cell (table) but there  is 1mm border above and 2 mm border below 
the image remaining. Are there default marigns paddings or borders at 
cells block or tables?


Please tell me how to make the logo fits image to the full table height.

I tryed with fop 20.5 / 0.90 a1 and renderx alle the same result...


Thanks

Dirk


?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
   fo:simple-page-master master-name=only page-height=29.7cm
   page-width=21cm margin-top=0cm margin-bottom=0cm
   margin-left=0cm margin-right=0cm
 fo:region-body margin-top=3cm margin-bottom=2.9cm
 margin-left=2cm margin-right=2cm /
 fo:region-before precedence=true extent=2.9cm /
 fo:region-after precedence=true extent=1.5cm /
   /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=only
   fo:static-content flow-name=xsl-region-before
 fo:table background-color=#38528D table-layout=fixed
 height=24mm
   fo:table-column column-width=145mm /
   fo:table-column column-width=45mm /
   fo:table-column column-width=20mm /
   fo:table-body
 fo:table-row
   fo:table-cell padding-right=5mm text-align=left
 fo:block color=white text-align=right
 font-weight=bold
 font-size=14pt padding-top=9.0mmHeader
 1/fo:block
 fo:block color=white text-align=right
 font-weight=normal
 font-size=11pt padding-top=0mmHeader
 2/fo:block
   /fo:table-cell
   fo:table-cell
 fo:block
   fo:external-graphic src=url(images/logo.jpg)
   scaling=non-uniform content-width=45mm
   content-height=scale-to-fit /
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block /
   /fo:table-cell
 /fo:table-row
   /fo:table-body
 /fo:table
   /fo:static-content
   fo:static-content flow-name=xsl-region-after
 fo:blockFooter Content/fo:block
   /fo:static-content
   fo:flow flow-name=xsl-region-body
 fo:blockPage Content/fo:block
   /fo:flow
 /fo:page-sequence
/fo:root

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Image in table not fitting full height?

2005-12-10 Thread Dirk Bromberg

Here is the result PDF.

Thanks

Dirk


Dirk Bromberg wrote: cid:part1.05000105.00040706@tzi.de

Hi,

i've a problem with an image into a table.

Here is my fo sample. And a screenshot form the pdf.
I want the image in the xsl-region-before to scale the full height 
of the cell (table) but there  is 1mm border above and 2 mm border 
below the image remaining. Are there default marigns paddings or 
borders at cells block or tables?


Please tell me how to make the logo fits image to the full table 
height.


I tryed with fop 20.5 / 0.90 a1 and renderx alle the same result...


Thanks

Dirk


?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
   fo:simple-page-master master-name=only page-height=29.7cm
   page-width=21cm margin-top=0cm margin-bottom=0cm
   margin-left=0cm margin-right=0cm
 fo:region-body margin-top=3cm margin-bottom=2.9cm
 margin-left=2cm margin-right=2cm /
 fo:region-before precedence=true extent=2.9cm /
 fo:region-after precedence=true extent=1.5cm /
   /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=only
   fo:static-content flow-name=xsl-region-before
 fo:table background-color=#38528D table-layout=fixed
 height=24mm
   fo:table-column column-width=145mm /
   fo:table-column column-width=45mm /
   fo:table-column column-width=20mm /
   fo:table-body
 fo:table-row
   fo:table-cell padding-right=5mm text-align=left
 fo:block color=white text-align=right
 font-weight=bold
 font-size=14pt padding-top=9.0mmHeader
 1/fo:block
 fo:block color=white text-align=right
 font-weight=normal
 font-size=11pt padding-top=0mmHeader
 2/fo:block
   /fo:table-cell
   fo:table-cell
 fo:block
   fo:external-graphic src=url(images/logo.jpg)
   scaling=non-uniform content-width=45mm
   content-height=scale-to-fit /
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block /
   /fo:table-cell
 /fo:table-row
   /fo:table-body
 /fo:table
   /fo:static-content
   fo:static-content flow-name=xsl-region-after
 fo:blockFooter Content/fo:block
   /fo:static-content
   fo:flow flow-name=xsl-region-body
 fo:blockPage Content/fo:block
   /fo:flow
 /fo:page-sequence
/fo:root

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


out.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: fo:external-graphic limitation?

2005-11-23 Thread Dirk Bromberg

Hi,

must it be:

src={$logo_path}/ ??

btw. which fop version are you using?


Dirk


mike wrote:

Hi all,
 I would like to load an external graphic through a parameter value?
Because it does not seem to work for me ;-(
For example, the following produces the error:
  [ERROR] Error while creating area : Error with image URL: $logo_path (No such
file or directory) and no base URL is specified

?xml version=1.0?
xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:param name=logo_path select='/tmp/smartdocument.loan/logo.jpg'/
xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

fo:layout-master-set
fo:simple-page-master master-name=simple
   page-height=29.7cm page-width=21cm
   margin-top=1cm margin-bottom=1cm
   margin-left=8mm margin-right=8mm
fo:region-body margin-top=0cm margin-bottom=0cm/
fo:region-before extent=5cm/
fo:region-after extent=5cm/
/fo:simple-page-master
fo:page-sequence-master master-name=page-sequence
fo:single-page-master-reference 
master-reference=simple/
/fo:page-sequence-master
/fo:layout-master-set

fo:page-sequence master-reference=page-sequence
fo:flow flow-name=xsl-region-body

fo:block font-family=sans-serif font-size=10pt
  text-align=left
fo:table table-layout=fixed
fo:table-column column-width=95mm/
fo:table-column column-width=95mm/
fo:table-body
fo:table-row
fo:table-cell 
padding=2mm
fo:block
fo:external-graphic 
src=$logo_path/
/fo:block
[...]

I've checked the value of logo_path and it is correct.
Maybe there's another way to do it ... Any idea?

thanx,

--mike



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XSL Question

2005-11-21 Thread Dirk Bromberg

Hey,

thanks Glen.

The trick is to select the text() or *  :-)

Dirk


Glen Mazza wrote:

http://www-128.ibm.com/developerworks/library/x-xslfo2app/#b?

Read the Notice that the select attribute... blurb at the end of the 
b discussion here.


Glen

Dirk Bromberg wrote:

Hi,

i've a short xml-xsl-fo question.

my xml is:

textHere is some textB with bold B/Iand italicI/BI and 
bothI/B/ elements in it.text/


when i've a template for text, B and I how can i get the real 
text in the right order?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any good / free FO editors around?

2005-10-02 Thread Dirk Bromberg

Hi,

there is a free personal home edition of xmlspy at http://www.altova.com 
there you can type the xml with support of the schema or dtd.


But i don't think that there is a wysiwyg editor for fodocuments 
everywhere. so you must search a good xml editor. and compile your code 
with fop and see the result.


At http://www.ahmadsoft.org/fopbridge.html there is a fop plugin for 
eclipse www.eclipse.org but then you will also need a plugin for xml, 
and i don't know a free one with dtd or schema support at typing.


Dirk

Martin Smales wrote:

Are there any good / free FO editors around for a newbie like me?
 
I think that using Notepad is not sufficient for me learning-wise.
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Font embedding FOP dev

2005-09-28 Thread Dirk Bromberg

Ok,

thanks. with file:///E:/mypath_to_font it works...

btw: the path to the metrics can be setup as relative path to the 
startup dir but the fontpath has to be absolute...


Dirk

Manuel Mall wrote:

On Wed, 28 Sep 2005 05:07 am, Andreas L Delmelle wrote:
  

On Sep 27, 2005, at 22:27, Dirk Bromberg wrote:


i wants to test to switch my project from 20.5 to dev.

Now i want to embedd my ttf fonts via the fop.xconf.
  

snip /



but i always get the exception D:\mypath_to_run\ArialUNI.xml
FileNotFoundException  the Path is not relative to the xconf!
it is relative to my running directory.
  

Ouch! The user-configuration functionality is not fully ported yet,
especially the baseURL bit... Sorry. The entry is present in
fop.xconf, but currently serves no purpose.

Since I do need to finish up a few things in that area of the code,
most likely I'll be able to squeeze it in during the weekend.



How can i set the right directory? I've tried to set the
D:\mypath_to_run\confdir as basePath via the
fop.getUserAgent().setBaseURL(...) but there was no change...
  

The only way I see that might --note: not 100% sure-- temporarily
solve your problem is to include the full pathnames in the
font-triplet (possibly even as full 'file://' URLs to avoid them from
being interpreted as a relative URLs)

Why the baseURL isn't taken into account when building the font-list,
I'm not certain, but this does mean that even if I complete the
user-configurable baseURL, it still won't work as it did before...

For now, try out with absolute URLs in the triplets. As far as I
understand the related code, that should do the trick.




This is a known problem with the trunk code (see 
http://issues.apache.org/bugzilla/show_bug.cgi?id=36729). I had a look 
at fixing it but it involves changes to the font subsystem. That area 
of code is currently being completely rewritten (integration of a 3rd 
party font system) and I would expect this to be fixed as part of that 
work. However, this may not happen in a real hurry.


For the time being you have to use absolute paths or to be more correct 
full URLs in your font definition files, that is everything must start 
with file:// as Andreas suggested and be fully qualified.


  

If not, don't hesitate to report back.

HTH!

Cheers,

Andreas



Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CMYK colors in pdf via fop

2005-09-28 Thread Dirk Bromberg



Jeremias Maerki wrote:

On 28.09.2005 13:43:53 Dirk Bromberg wrote:
  

Hi,

i've asked before a few weeks if it is possible to use CMYK colors at 
the fo document to get them in the pdf.

There the answer was no. :-)

I want to create a fo document with colors like  
rgb-icc(0,0,0,#CMYK,100%,0%,0%,0%)



I've seen the #CMYK pseudo-profile in AntennaHouse and RenderX but
haven't found any reference in a specification. Is there one?

Anyway, FOP doesn't implement the rgb-icc function, yet. You'd have to
implement that yourself.
  

I've also found nothing at the fo spec about cmyk :-( 
  
I've done a short look at the code and the pdf spec and have much 
questions about the coloring world


My first questions to understand the coloring in fop a bit more are:

1. when i set a color (e.g. background-color at table) the 
ColorTypeProperty(String value); object is build for this color or not?



Yes, but currently only with sRGB plus alpha channel (in FOP Trunk).

  
2. how goes this property into the pdf file? i saw the PDFColor class 
which already has the cmyk support!?



Yes, there are some provisions for CMYK, but FOP internally transfers
only RGB values. This will have to be generalized, possibily by using
more of Java's color support classes, if the rgb-icc function is to be
supported.

  
3. when i generate a pdf document and open it into the texteditor i can 
find things like /DeviceRGB when i use the rgb(100,10,50) colors, is it 
possible that my pdf has encrypted sections?



If you don't do anything special, the page streams are compressed using
the Flate filter. You can disable the filter in the userconfig file as
shown in a post here on fop-users a few days ago. You will then see the
right PDF commands to set the colors.

Are you working on FOP Trunk or the old code?
  
I' m using the old at production version and for the cmyk task i'll 
switch to the trunk, because i think it is easier to add the cmyk to the 
trunk and the cmyk tiff image support of the trunk work - 20.5 not...


But before adding some support for cmyk, i muss see if the other thinks 
we use at 20.5 will work on trunk.. with the same layout :-)


Dirk


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CMYK colors in pdf via fop

2005-09-28 Thread Dirk Bromberg



Jeremias Maerki wrote:

On 28.09.2005 13:43:53 Dirk Bromberg wrote:
  

Hi,

i've asked before a few weeks if it is possible to use CMYK colors at 
the fo document to get them in the pdf.

There the answer was no. :-)

I want to create a fo document with colors like  
rgb-icc(0,0,0,#CMYK,100%,0%,0%,0%)



I've seen the #CMYK pseudo-profile in AntennaHouse and RenderX but
haven't found any reference in a specification. Is there one?

Anyway, FOP doesn't implement the rgb-icc function, yet. You'd have to
implement that yourself.

  
I've done a short look at the code and the pdf spec and have much 
questions about the coloring world


My first questions to understand the coloring in fop a bit more are:

1. when i set a color (e.g. background-color at table) the 
ColorTypeProperty(String value); object is build for this color or not?



Yes, but currently only with sRGB plus alpha channel (in FOP Trunk).

  
2. how goes this property into the pdf file? i saw the PDFColor class 
which already has the cmyk support!?



Yes, there are some provisions for CMYK, but FOP internally transfers
only RGB values. This will have to be generalized, possibily by using
more of Java's color support classes, if the rgb-icc function is to be
supported.

  
3. when i generate a pdf document and open it into the texteditor i can 
find things like /DeviceRGB when i use the rgb(100,10,50) colors, is it 
possible that my pdf has encrypted sections?



If you don't do anything special, the page streams are compressed using
the Flate filter. You can disable the filter in the userconfig file as
shown in a post here on fop-users a few days ago. You will then see the
right PDF commands to set the colors.

Are you working on FOP Trunk or the old code?
  
When i check my fop.xconf, must have an empty filterList/ in my 
renderer mime=application/pdf to get the plain pdf?

This is not working  or must i enable another value?

Dirk


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CMYK colors in pdf via fop

2005-09-28 Thread Dirk Bromberg

Yes, this works! Thanks.


Jeremias Maerki wrote:

For FOP Trunk:

renderer mime=application/pdf
  filterList
valuenull/value
  /filterList
/renderer

On 28.09.2005 14:50:03 Dirk Bromberg wrote:
  
When i check my fop.xconf, must have an empty filterList/ in my 
renderer mime=application/pdf to get the plain pdf?

This is not working  or must i enable another value?




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Font embedding FOP dev

2005-09-27 Thread Dirk Bromberg

Hi,

i wants to test to switch my project from 20.5 to dev.

Now i want to embedd my ttf fonts via the fop.xconf.
There i've these entrys:
font metrics-url=ArialUNI.xml kerning=yes embed-url=ARIALUNI.TTF
   font-triplet name=ArialUNI style=normal weight=normal/
/font

Now i call:

File userConfigFile = new File(basePath+/confdir/fop.xconf);
fop.getUserAgent().setUserConfig(new 
DefaultConfigurationBuilder().buildFromFile(userConfigFile));


but i always get the exception D:\mypath_to_run\ArialUNI.xml 
FileNotFoundException  the Path is not relative to the xconf! it is 
relative to my running directory.


How can i set the right directory? I've tried to set the 
D:\mypath_to_run\confdir as basePath via the  
fop.getUserAgent().setBaseURL(...) but there was no change...


How to do?

Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problems with times

2005-09-21 Thread Dirk Bromberg
To improve the first time i use this 
http://xml.apache.org/xalan-j/xsltc_usage.html to compile my xsl files 
when i compile my application. At the runtime there is a jar with the 
xsl classes and this is what i use at the runtime. So, there are no 
plain xsl file anymore in my application.


Dirk

Jeremias Maerki wrote:

On 21.09.2005 11:41:43 Manuel Mall wrote:
snip/
  

Transformer transformer = factory
.newTransformer(new StreamSource(xsltfile));


That's exactly it. You reload the stylesheet every time. If you
create a stylesheet cache, you can simply reuse Templates instances.

  
Why would cacheing the stylesheet make the first invocation faster? 



It doesn't. It just improves overall performance.

  
The 
original question was about executing a transformation multiple times 
in a loop and why the first invocation takes so much longer than the 
second and by the 3rd execution times becomes stable. I still think 
these time differences are solely JVM/application startup/warmup 
related and have nothing to do with cacheing the stylesheet as that 
would only make subsequent invocations faster.



That's correct. But ALi asked for stylesheet caching, so I gave him a
tip. I assume he won't be against a generally faster solution. :-)

snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Numbering Chapter / Section / SubSection

2005-09-12 Thread Dirk Bromberg

Hi,

i'm searching for a solution for numbering some chapter / section / 
subsection in fop?


i'll be able to do it like:

1. HeadLine
1.1 SubHeadLine
1.1.1 SubSubHeadLine
2. HeadLine
and so on.

How can i do this?

THX

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Numbering Chapter / Section / SubSection

2005-09-12 Thread Dirk Bromberg

Thanks, so i'll have a look at this...
i'was thinking that there is something in the fo e.g for toc an so 
onlike in latex


but i think i can go the way of numbering via xsl... :-)

Dirk


[EMAIL PROTECTED] wrote:



Dirk:

This is more of an XSL question, but check out the following resource: 
 http://www.dpawson.co.uk/xsl/sect2/N5758.html


There is a section on Legal Style Numbering which looks like what 
you want.


-Lou



Dirk Bromberg [EMAIL PROTECTED] wrote on 09/12/2005 07:21:37 AM:

 Hi,

 i'm searching for a solution for numbering some chapter / section /
 subsection in fop?

 i'll be able to do it like:

 1. HeadLine
 1.1 SubHeadLine
 1.1.1 SubSubHeadLine
 2. HeadLine
 and so on.

 How can i do this?

 THX

 Dirk

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Numbering Chapter / Section / SubSection

2005-09-12 Thread Dirk Bromberg

than it makes sense :-)


Vincent Hennebert wrote:


Dirk Bromberg a écrit :


Thanks, so i'll have a look at this...
i'was thinking that there is something in the fo e.g for toc an so 
onlike in latex



If it may help you see the correspondance: FO is more at the TeX 
level. See LaTeX as a kind of XSLT stylesheet that produces TeX. All 
high-level features (ToC generation, automatic section numbering...) 
belong to the LaTeX world, so with XML you'd have to use XSLT.


Vincent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Number of Pages?

2005-08-24 Thread Dirk Bromberg

Hi,

when i want to have a page numbering like page/number of pages, is there 
a tag for the number of pages in fo?


i' ve only found the page-number...

must i generate the pdf, take the number of pages via the api, set them 
to my xml and rerender the pdf?


Thanks

Dirk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Number of Pages?

2005-08-24 Thread Dirk Bromberg

Thx.


Andreas L Delmelle wrote:


On Aug 24, 2005, at 21:07, Dirk Bromberg wrote:

Hi Dirk,

when i want to have a page numbering like page/number of pages, is 
there a tag for the number of pages in fo?



This is a FAQ. See: 
http://xmlgraphics.apache.org/fop/fo.html#fo-total-pages


HTH!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to unsubscribe

2005-08-17 Thread Dirk Bromberg

See at the footer of this (every) mail...

Adolf Špenko wrote:


Hi, can someone please help me how can i unsubscribe from this mailing list...
Best regards,
Adolf Spenko


http://www.email.si/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: download latest SVN source fop version

2005-08-10 Thread Dirk Bromberg
You must check out the tree from the url with a subversion client to a 
local sandbox and then you can compile your latest fop.jar... open the 
url in the browser is not what you want :-)


so take a look at this page : http://xml.apache.org/fop/dev/tools.html

Dirk



Stanislav wrote:


Hi,

i went to http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/ and i don't 
know what to download?
I want to download latest source file, compile it (using ant, if i don't 
mistaken) and than try to
generate rtf. I'm using stxx and struts to generate pdf (wish to generate rtf), 
server is JBoss 4.02
and OS id WINXP SP1.

If you want to send me source code, please send it to [EMAIL PROTECTED]

Thank you very much! :-)

Stanislav

 


Hi,

Try looking here : http://xmlgraphics.apache.org/repo.html

If you still can't get the latest fop version give us more details such 
as what you have tried and what operating system you are using.


Good luck,

Patrick Paul

Stanislav wrote:

   


Hello!

I tried to download latest fop version because i need fo-rtf conversion and i 
can't
find where can i
do that :- can anyone help me?

Tnx,

Stanislav
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: download latest SVN source fop version

2005-08-10 Thread Dirk Bromberg
you know that the latest trunk code is not 100% compatible to the 0.20.5 
version!?


Stanislav wrote:


Hi,

i went to http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/ and i don't 
know what to download?
I want to download latest source file, compile it (using ant, if i don't 
mistaken) and than try to
generate rtf. I'm using stxx and struts to generate pdf (wish to generate rtf), 
server is JBoss 4.02
and OS id WINXP SP1.

If you want to send me source code, please send it to [EMAIL PROTECTED]

Thank you very much! :-)

Stanislav

 


Hi,

Try looking here : http://xmlgraphics.apache.org/repo.html

If you still can't get the latest fop version give us more details such 
as what you have tried and what operating system you are using.


Good luck,

Patrick Paul

Stanislav wrote:

   


Hello!

I tried to download latest fop version because i need fo-rtf conversion and i 
can't
find where can i
do that :- can anyone help me?

Tnx,

Stanislav
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wingdings font - ttfreader exception

2005-08-07 Thread Dirk Bromberg

Hi,

can you post the error / stacktrace?

Dirk

Riz Virk wrote:

This may already have been answered somewhere, but can't seem to find it. 

When trying to import wingdings or wingdings2 fonts into fop, I get a TTFReader exception when trying to generate the font metrics file that fop needs.  


Is this a known issue? If so, is there a fix somewhere?

Thanks
Riz


Rizwan Virk
CTO
CambridgeDocs
[EMAIL PROTECTED]
personal: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: creating printable high res PDF 2400dpi

2005-08-05 Thread Dirk Bromberg

Thanks,

for the first i'll have a look what we need for printing and than see 
how to solve possible problems in fop if there are..


Dirk


Jeremias Maerki wrote:


PDF is normally resolution-independent as it is mostly a vector-format.
FOP includes bitmap images as-is into the PDF, so bullshit in, bullshit
out. :-) If you have 2400dpi bitmap images, they make it into PDF as a
2400dpi image if your Java VM doesn't collapse because of the memory
requirements. Use JPEG images where possible to minimize memory usage.

The resolution setting in the trunk is only used to control the
vector-to-bitmap conversion that is done by Batik in case of certain
elements in SVG. And this part works.

In offset printing you will often be asked about stuff like CMYK and
spot colors. FOP currently doesn't support these features although some
people have done a few experiments. You might want to search the mailing
list archives.

So, although it's possible to produce PDFs for offset printing, FOP is
probably not the ideal tool, yet. Help is welcome to improve that.

On 05.08.2005 09:31:45 Dirk Bromberg wrote:
 


Hi,

i've a short question.

I'll be asked if fop can generate a high res - 2400dpi PDF for offset 
printing...


I've see the set Res Method in the trunk, but does it work? I don't know 
waht makes a high res PDF to a high res PDF, only the res of the images, 
or the lines of a table, or is there a different in the font res?


does someone have a clue about that?
   




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I unsubscribe successfully?

2005-08-04 Thread Dirk Bromberg

[EMAIL PROTECTED]



Andrew Mercer wrote:


Hi,

I am trying to unsubscribe from the dev list however despite trying 
the unsubscribe links

on the web page have failed to do so.

I registered in 2003 so also tried the unsubscribe links suggested 
then eg:


[EMAIL PROTECTED]

I used old email address (my domain has since altered) but without 
success.


What do I need to do.

Thanks Andrew



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Include PDF into another...

2005-08-02 Thread Dirk Bromberg

Hi,

is it possible to create a PDF Document wich includes other PDF Files?

- I've a number of PDF Files and want to include them into my fop 
generated PDF.


Is this possible with 0.25 or 1.0dev? patch?

Thanks

Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: footnotes: baseline-shift

2005-08-01 Thread Dirk Bromberg

This work at my fop

   !-- sub text--
   xsl:template match=sub
   fo:inline vertical-align=sub font-size=80%
   xsl:apply-templates select=*/
   /fo:inline
   /xsl:template
   !-- super text--
   xsl:template match=super
   fo:inline vertical-align=super 
font-size={$footnotenumberfontsize}

   xsl:apply-templates select=*/
   /fo:inline
   /xsl:template



[EMAIL PROTECTED] wrote:

Hi, 


thanks, Dirk, did you mean

fo:inline vertical-align=super font-size=6ptxsl:value-of 
select=.//fo:inline

this does not work, as it doesn't even show the values anymore ?!?

Regards
Jens 



-Ursprüngliche Nachricht-
Von: Dirk Bromberg [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 1. August 2005 13:18

An: fop-users@xmlgraphics.apache.org
Betreff: Re: footnotes: baseline-shift

Take

vertical-align=super in fop 20.5

Dirk

[EMAIL PROTECTED] wrote:

 


Hi,

the FOP compliance list describes a partial implementation of the 
attribute baseline-shift.
But regardless of using super or sub, the footnote number gets 
always written on the bottom.


The XML looks like:

td valign=middle
2 237
sup2)/sup
/td

the fo:

xsl:template match=sup
  fo:footnote
fo:inline baseline-shift=super 
font-size=6ptxsl:value-of select=.//fo:inline

   fo:footnote-body
   

So super is not working in the expected way, or is there any 
corresponding property not set in a correct manner ?


Besides, there is another strange effect, since in the PDF something 
like this is written


2 237)2)

with the last two digits written in 6pt at the bottom of the page. But 
regarding the XML, where is the origin of the first opening bracket ?!


Thanks for any helpful hints on this issue.

kind regards
Jens


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Vertical alignment

2005-07-26 Thread Dirk Bromberg

Hi,

display-align=center at the cell works!


fo:table-cell  display-align=center padding-start=1pt  
border-style=solid
   fo:block   color=#38528D 
font-family={$font.family} font-size=14pt 

   Text1
   /fo:block
/fo:table-cell

Dirk


Renan Collin wrote:


Hello,

It seems this functionnality is not implemented yet on fop 0.20.5.

Renan

Samuel Remacle a écrit:


Hello,
 
My problem is the following, I'd like to align vertically a text 
inside a table-cell but after searching the web I couldn't find the 
property to do that. So I would be glad if you could help me, how do 
I put the text in a table-cell, at the middle of that table-cell?
 
Thanks
 
Samuel
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]