Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-08 Thread J.Pietschmann
Eldho George wrote:
I would like to know *how can I create template for manipulating 
embedded and external style sheet present in the html page? Is it possible?*
Google for html2fo and/or xhtml2fo. First hit
 http://html2fo.sourceforge.net/
In general, they don't bother to emulate the full pattern
matching process. And please stop posting mails from MS Word.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-08 Thread Eldho George
Hai all
Thanks clay Leeds.
Thank you for your nice reply. I got your idea.But again some
problem.Actually my problem is to create a pdf converter.It is able to
convert  any  web page into pdf.Whenever an external stylesheet present in
the html file I want to read that css file and read each value from css and
use it with corresponding template.

According to your suggestion, I have to create different attribute set
depending upon the css.I would like to know how can i dynamically insert
these attribute set into corresponding template.Classes are also present in
the css.How can i solve this problem



Thanks and Regards

Eldho George
Junior Software Engineer
Ocwen Financial Solution Pvt.Ltd.
Ph:56671234-1050


-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 07, 2004 11:09 PM
To: [EMAIL PROTECTED]
Subject: Re: how can I create template for manipulating embedded and
external style sheet present in the html page? Is it possible?

On Sep 6, 2004, at 7:06 AM, Eldho George wrote:
 Hi,

 I would like to know how can I create template for manipulating 
 embedded and external style sheet present in the html page? Is it 
 possible?

 Please help meplease tell me is it possible with 
 xslt+xsl-fo? I already created template for processing inline style 
 attribute.

Is it possible for you to create an attribute-set and use that to 
modify your pages/tables, etc. document-wide? Here's a link which might 
help[1].

BTW, this isn't a tool for 'converting' a CSS file to XSL/XSLT. You 
would have to set up an attribute-set, and then implement it for the 
document using the use-attribute-set attribute.

Hope this helps!

Web Maestro Clay

[1]
http://www.xml.com/lpt/a/2003/06/11/short-xslt.html


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



Re: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-08 Thread Clay Leeds
On Sep 7, 2004, at 10:13 PM, Eldho George wrote:
Hai all
Thanks clay Leeds.
Thank you for your nice reply. I got your idea.But again some
problem.Actually my problem is to create a pdf converter.It is able to
convert  any  web page into pdf.Whenever an external stylesheet 
present in
the html file I want to read that css file and read each value from 
css and
use it with corresponding template.

According to your suggestion, I have to create different attribute set
depending upon the css.I would like to know how can i dynamically 
insert
these attribute set into corresponding template.Classes are also 
present in
the css.How can i solve this problem
I don't know the answer to these questions. I would suspect you would 
want to create one attribute set which holds your 'defaults' 
(font-family, font-size, color, background-color, etc.) and then a 
different attribute-set for each 'class'. You (or someone you hire) can 
probably write something fairly quickly, which will take a CSS file, 
and output an attribute-set. If you do, it would be great if you could 
post it back for others to use.

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


RE: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-07 Thread Eldho George
Hi mike

Thank you for your reply. Thank you..

Actually my problem is i want to convert a web page into PDF. What is my
logic is i created one servlet.In that servlet
i am reading the content of url(html content).I apply W3C tidy to make it as
xhtml.I created an xsl file using xslt and xsl-fo.
I created template for all the html 4.0 tags and its working properly.(Some
problem with table).Then applying xhtml and xsl to 
XSLTInputHandler of fop and render it to PDF.

My problem is with table only

table width=.I created template for width attribute.

xsl:attribute-set name=table-structure
xsl:attribute name=table-layoutauto/xsl:attribute
xsl:attribute name=space-before10pt/xsl:attribute
xsl:attribute name=space-after10pt/xsl:attribute
/xsl:attribute-set


fo:table xsl:use-attribute-sets=table-structure
xsl:when test=@width
xsl:attribute name=width
xsl:call-template name=createwidth/
/xsl:attribute
/xsl:when
/fo:table

But all the time the table will be displayed on the entire page width.
suppose we are creating a table with 2 column.
In html this will be displayed as a small table (depending upon the table
content).But my problem is in PDF it will be displayed 
in entire page width. How can i solve this problem..Please help
me.

Following is the overview of my table layout

xsl:attribute-set name=table-structure
xsl:attribute name=table-layoutauto/xsl:attribute
xsl:attribute name=space-before10pt/xsl:attribute
xsl:attribute name=space-after10pt/xsl:attribute
xsl:attribute name=border-styleoutset/xsl:attribute
xsl:attribute name=border-collapseseparate/xsl:attribute
xsl:attribute name=border-spacing2px/xsl:attribute
/xsl:attribute-set

fo:table xsl:use-attribute-sets=table-structure

xsl:for-each
select=tr[1]/th|tr[1]/td|thead/tr[1]/th|thead/tr[1]/td|tbody/tr[1]/th|tbody
/tr[1]/td
fo:table-column
column-width=proportional-column-width(1)/
/xsl:for-each

!--==handle tbody element =--
!--==handle thead element =--
!--==handle tfoot element =--

/fo:table

Thanks in advance
Cheers
george





-Original Message-
From: Mike Trotman [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 06, 2004 9:21 PM
To: [EMAIL PROTECTED]
Subject: Re: how can I create template for manipulating embedded and
external style sheet present in the html page? Is it possible?



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
A quick response as I'm not sure I understand your question - but I
think you're saying you can process all the 'inline' style + other
attributes in an HTML document - but that you want ot be able to
implement CSS class styles in FO-PDF?

If so - that is not easy - particularly as CSS - XSL-FO attributes
don't always map straightforwardly and some have different names,
and detecting precedence, context and dealing with multiple CSS
stylesheets is difficult.

A useful utility from RenderX  which may help you to map equivalent
attributes is at http://www.renderx.com/~renderx/portal/fo2html.html.
This maps XSLFO - HTML - and does a pretty good job.

The way I deal with this problem is to turn the CSS stylesheets into XML
documents - and then add attributes for the XSLFO equivalents.
The structure of this XML depends on how much of the complexity of CSS
you want to capture.)
(this document can the be used to produce the CSS stylesheets as well.)
I then load this document as a parameter when processing and lookup any
formatting for the element / class I am dealing with.
(I find this easier than trying to define fixed attribute sets.)

With XSL / XML based output formatting it is nearly always easier to
have a core XML document from which all other output (including HTML) is
generated.
If your HTML is well formed XML /  XHTML then your task is easier.

FOP 0.20.5 does not suppor table-with-caption - and many other
processors also do not.
FOP 0.20.5 does not support table-layout='auto' (only 'fixed') - and
this is also true of many other processors - so I don't know how you are
getting the table to fit the width of the page.
unless you are specifying that the inline-progression dimension='100%'.

Eldho George wrote:

|  
|
| Hi,
|
|  
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page

Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-07 Thread Clay Leeds
On Sep 6, 2004, at 7:06 AM, Eldho George wrote:
Hi,
I would like to know how can I create template for manipulating 
embedded and external style sheet present in the html page? Is it 
possible?

Please help meplease tell me is it possible with 
xslt+xsl-fo? I already created template for processing inline style 
attribute.
Is it possible for you to create an attribute-set and use that to 
modify your pages/tables, etc. document-wide? Here's a link which might 
help[1].

BTW, this isn't a tool for 'converting' a CSS file to XSL/XSLT. You 
would have to set up an attribute-set, and then implement it for the 
document using the use-attribute-set attribute.

Hope this helps!
Web Maestro Clay
[1]
http://www.xml.com/lpt/a/2003/06/11/short-xslt.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George




















Hi,

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create
template for most of the html 4.0 tags and everything this working
perfectly.But I have problem with table .It showing the table with entire page
width. That means suppose I have created only one column, it will occupy the
entire page width. Suppose I am using width in table, it is not shrinking
according to that width. I used table attribute as







xsl:attribute
name=table-layoutauto/xsl:attribute

xsl:attribute
name=space-before10pt/xsl:attribute

xsl:attribute
name=space-after10pt/xsl:attribute

xsl:attribute
name=border-styleoutset/xsl:attribute

xsl:attribute
name=border-collapseseparate/xsl:attribute

xsl:attribute
name=border-spacing2px/xsl:attribute





Another problem is - outset is not working.fo:table-and-caption
is not working with fop.So I am not use fo:table-and-caption.This will
create any problem?

I would like to know whether fop will support
fo:table-and-caption



I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is
it possible?



Please help meplease



Thanks in advance

George









**
This email and any files transmitted with it are
confidential and
intended solely for the use of the individual or
entity to whom they
are addressed. If you have received this email in
error please notify
the system manager.

This footnote also confirms that this email message
has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George








I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?



Please help meplease



Thanks in advance

George











**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George










Hi,





I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?



Please help meplease tell me is it possible with xslt+xsl-fo? I
already created template for processing inline style attribute.





I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create template
for most of the html 4.0 tags and everything this working perfectly.But I have
problem with table .It showing the table with entire page width. That means
suppose I have created only one column, it will occupy the entire page width.
Suppose I am using width in table, it is not shrinking according to that width.
I used table attribute as







xsl:attribute
name=table-layoutauto/xsl:attribute

xsl:attribute
name=space-before10pt/xsl:attribute

xsl:attribute name=space-after10pt/xsl:attribute

xsl:attribute
name=border-styleoutset/xsl:attribute

xsl:attribute
name=border-collapseseparate/xsl:attribute

xsl:attribute
name=border-spacing2px/xsl:attribute





Another problem is - outset is not working.fo:table-and-caption
is not working with fop.So I am not use fo:table-and-caption.This will
create any problem?

I would like to know whether fop will support
fo:table-and-caption



I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is
it possible?



Please help meplease tell me is it possible with xslt? I
already created template for processing inline style attribute.



Thanks in advance

George











**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Mike Trotman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
A quick response as I'm not sure I understand your question - but I
think you're saying you can process all the 'inline' style + other
attributes in an HTML document - but that you want ot be able to
implement CSS class styles in FO-PDF?
If so - that is not easy - particularly as CSS - XSL-FO attributes
don't always map straightforwardly and some have different names,
and detecting precedence, context and dealing with multiple CSS
stylesheets is difficult.
A useful utility from RenderX  which may help you to map equivalent
attributes is at http://www.renderx.com/~renderx/portal/fo2html.html.
This maps XSLFO - HTML - and does a pretty good job.
The way I deal with this problem is to turn the CSS stylesheets into XML
documents - and then add attributes for the XSLFO equivalents.
The structure of this XML depends on how much of the complexity of CSS
you want to capture.)
(this document can the be used to produce the CSS stylesheets as well.)
I then load this document as a parameter when processing and lookup any
formatting for the element / class I am dealing with.
(I find this easier than trying to define fixed attribute sets.)
With XSL / XML based output formatting it is nearly always easier to
have a core XML document from which all other output (including HTML) is
generated.
If your HTML is well formed XML /  XHTML then your task is easier.
FOP 0.20.5 does not suppor table-with-caption - and many other
processors also do not.
FOP 0.20.5 does not support table-layout='auto' (only 'fixed') - and
this is also true of many other processors - so I don't know how you are
getting the table to fit the width of the page.
unless you are specifying that the inline-progression dimension='100%'.
Eldho George wrote:
|  
|
| Hi,
|
|  
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page? Is it
| possible?*
|
|  
|
| *Please help meplease tell me is it possible with
| xslt+xsl-fo? I already created template for processing inline style
| attribute.*
|
|  
|
|  
|
| I am working with the project of converting a web Page into PDF.I am
| using FOP.I am creating the formatting object tree using xslt.I
| already create template for most of the html 4.0 tags and everything
| this working perfectly.But I have problem with table .It showing the
| table with entire page width. That means suppose I have created only
| one column, it will occupy the entire page width. Suppose I am using
| width in table, it is not shrinking according to that width. I used
| table attribute as
|
|  
|
|  
|
|  
|
| xsl:attribute name=table-layoutauto/xsl:attribute
|
| xsl:attribute name=space-before10pt/xsl:attribute
|
| xsl:attribute name=space-after10pt/xsl:attribute
|
| xsl:attribute name=border-styleoutset/xsl:attribute
|
| xsl:attribute name=border-collapseseparate/xsl:attribute
|
| xsl:attribute name=border-spacing2px/xsl:attribute
|
|  
|
|  
|
| Another problem is - outset is not working.fo:table-and-caption is
| not working with fop.So I am not use fo:table-and-caption.This will
| create any problem?
|
| I would like to know whether fop will support
| fo:table-and-caption
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page? Is it
| possible?*
|
|  
|
| *Please help meplease tell me is it possible with
| xslt? I already created template for processing inline style attribute.*
|
|  
|
| Thanks in advance
|
| George
|
|  
|
|  
|
|  
|
| |
|
| **
| This email and any files transmitted with it are confidential and
| intended solely for the use of the individual or entity to whom they
| are addressed. If you have received this email in error please notify
| the system manager.
|
| This footnote also confirms that this email message has been swept by
| MIMEsweeper for the presence of computer viruses.
|
| www.mimesweeper.com
| **
| |

- --
Datalucid Limited
8 Eileen Road
South Norwood
London SE25 5EJ
United Kingdom
/
tel :0208-239-6810
mob: 0794-725-9760
email: [EMAIL PROTECTED]
UK Co. Reg:   4383635
VAT Reg.:   798 7531 60
/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBPIdPe72ghYHWur4RAgrhAJ41r8srH60skFbrzntb4hDUaneQsACdGERP
/AscqsnlmD5I6NbUhaJYKdI=
=hmNf
-END PGP SIGNATURE-

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


how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-03 Thread Eldho George














Hi,

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create
template for most of the html 4.0 tags and everything this working perfectly.But
I have problem with table .It showing the table with entire page width. That
means suppose I have created only one column, it will occupy the entire page
width. Suppose I am using width in table, it is not shrinking according to that
width. I used table attribute as







xsl:attribute
name=table-layoutauto/xsl:attribute

xsl:attribute
name=space-before10pt/xsl:attribute

xsl:attribute
name=space-after10pt/xsl:attribute

xsl:attribute
name=border-styleoutset/xsl:attribute

xsl:attribute
name=border-collapseseparate/xsl:attribute

xsl:attribute
name=border-spacing2px/xsl:attribute





Another problem is - outset is not working.fo:table-and-caption is not working with fop.So I am not use fo:table-and-caption.This
will create any problem?

I would like to know whether fop will support fo:table-and-caption



I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?



Please help meplease



Thanks in advance

George











**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






RE: image in table header overlapping table body -- possible ? [additional info]

2003-11-16 Thread Roland Neilands
  Use nested tables:
 
 That is what i tried yesterday, too. Thanks anyway.
 It's a solution to get the image in the first header of the table. But i
 still end up with the problem having it repeated after a page break.
 The text header will be repeated as there is data in its table-body being
 continued after the page break. But there is no data in the table-body that
 belongs to the image header so there is no reason for FOP to repeat the
 header (the image) on the next page.

So put a single cell in the body beneath the image.
Put a blank image or a non-breaking space(#160;) in it to force it to appear.

Cheers,
Roland 

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



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Roland,

Use nested tables:

fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-header
fo:table-row
  fo:table-cell
fo:block !-- Your image here -- /fo:block
  /fo:table-cell
  fo:table-cell /
/fo:table-row
  /fo:table-header
  fo:table-body
fo:table-row
  fo:table-cell /
  fo:table-cell
  
!-- Your current table (text only) -- 
fo:table table-omit-header-at-break=false
   ...
/fo:table
  
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 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 header overlapping table body -- possible ?

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:


Cool! There goes my attempt ... :)

Only problem I still see is how's he going to make the contents of the
table-body flow alongside the image in the header.


Greetz,

Andreas


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



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
  Use nested tables:
 Only problem I still see is how's he going to make the contents of the
 table-body flow alongside the image in the header.

It's a separate table with a separate header. Try it  see ;)

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



FW: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Apologies, code should have been:

fo:table
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-body
fo:table-row
  fo:table-cell
fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-header
  fo:table-row
fo:table-cell
  fo:block !-- Your image here -- /fo:block
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
  fo:table-cell
fo:table-column column-width=17cm/
fo:table-header
  fo:table-row
fo:table-cell
!-- Your current table (text only) -- 
  fo:table table-omit-header-at-break=false
...
  /fo:table
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 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 header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:

That is what i tried yesterday, too. Thanks anyway.
It's a solution to get the image in the first header of the table. But i
still end up with the problem having it repeated after a page break.
The text header will be repeated as there is data in its table-body being
continued after the page break. But there is no data in the table-body that
belongs to the image header so there is no reason for FOP to repeat the
header (the image) on the next page.
And with this problem in mind i come to the idea of Andreas.

 - Original Message - 
 From: Andreas L. Delmelle [EMAIL PROTECTED]


 I see a remote possiblity in performing some XSL trickery (resting on the
 assumption that the rows in the table body are generated by XML elements).
 If you define a row height globally in your stylesheet, as well as the
 region-body height... You know in advance how many rows will fit on a
 page... ( $regbh div $rowh ).

And here we have my next problem ...
There occur line breaks in the rows (mostly generated within FOP caused by
hyphenation), that i cannot calculate that easy. Therefore i cannot set a
fixed row height and i do not know how many rows there will be on a page. I
tried to calculate these linebreaks according to the amount of text in the
fields but that's quite dirty (and not completely functioning at all ...)

 For the moment, however, it's the closest thing to a solution I can come
up
 with...

I agree.

I think i will try to get some other things working first and come back to
this one next week. Sometimes a weekend of doing nothing helps more than
days of thinking ;-)

Thanks to both of you and have a nice weekend,
Roland



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



RE: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Schroth [mailto:[EMAIL PROTECTED]


  -Original Message-
  From: Roland Neilands [mailto:[EMAIL PROTECTED]
 
  Roland,
 
  Use nested tables:

 That is what i tried yesterday, too. Thanks anyway.
 It's a solution to get the image in the first header of the table. But i
 still end up with the problem having it repeated after a page break.

Aaah... you *don't* need the image repeated across pages.

 The text header will be repeated as there is data in its table-body being
 continued after the page break. But there is no data in the
 table-body that

So, the image would actually belong to the table-body, and only the text
belongs to table-header (? correct?).
In that case my proposal could work, if it were not for the complication
described below.

 There occur line breaks in the rows (mostly generated within FOP caused by
 hyphenation), that i cannot calculate that easy. Therefore i cannot set a
 fixed row height and i do not know how many rows there will be on
 a page. I
 tried to calculate these linebreaks according to the amount of text in the
 fields but that's quite dirty (and not completely functioning at all ...)


Very dirty indeed... Imagine having to deal with a situation like this and
having to base your calculations on the metrics of the particular font being
used. (for fixed-width fonts this would be a bit less complicated since you
can just take the number of chars and multiply that by the charwidth).

 I think i will try to get some other things working first and come back to
 this one next week. Sometimes a weekend of doing nothing helps more than
 days of thinking ;-)


Very wise indeed!

Cheerz,

Andreas


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



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
   -Original Message-
   From: Roland Neilands [mailto:[EMAIL PROTECTED]
  
   Roland,
  
   Use nested tables:
 
  That is what i tried yesterday, too. Thanks anyway.
  It's a solution to get the image in the first header of the table. But i
  still end up with the problem having it repeated after a page break.

 Aaah... you *don't* need the image repeated across pages.

Ooops ... no sorry. One of these situations, my lack of practice with the
english language shows up.

I  *absolutely need*  it to be repeated.

Thanks again,
Roland



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



image in table header overlapping table body -- possible ?

2003-11-13 Thread Roland Schroth
Hello, out there ;-)

I need to build a table with a header line containing an image and a single
line of text. The problem is the image beeing to high to fit into the header
line which causes the header line to be resized vertically to match the
height of the image.

But i need the image to overflow the bottom of the header line (leaving its
height unchanged) so that it flows right into the body area. The problem is
that the overflow property isn't supported yet and a number-rows-spanned
does not seem to work here because header and body rows obviously cannot be
mixed.


I try to draw what i want to get (view with fixed-width font):



xsl-fo-area   /  in PDF it should look like that
__/
  /
  /
  /  +-+
table-header  /  | |   Some header text ...
  /  | header- |
  /  |  image  |   first row of table-body
  /  | |   second row of table-body
table-body/  +-+   third row of table-body
  /  .
  /  .
  /  .
  /  .
  /


(i hope that makes my problem clear)


As i generate the fo code and the PDF at runtime from different data in a
database, there may occur page breaks cutting the table into several pieces
and the header absolutely has to appear above each piece.
I also tried to use position=relative with the top and left properties set
but did not get it working although i am sure this should work with the
actual version. Mabe i just don't see the forest for the trees ...

Does anyone have an idea of how to achieve this?
I would really appreciate any hint.

Thanks in advance,
Roland



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



RE: image in table header overlapping table body -- possible ?

2003-11-13 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Schroth

 But i need the image to overflow the bottom of the header line
 (leaving its
 height unchanged) so that it flows right into the body area. The
 problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously
 cannot be
 mixed.


Try the following (for example):

in the simple-page-master, set the margin-top for the region body to the
height of the one line containing 'Some Header Text' --depending on the
font-size of the text, of course.
Then set the height of the region-before to be greater than the margin-top
just defined (roughly equivalent to the height of the image).

This way your region-before will actually overlap the region-body by
(region-body-margin-top - region-before-height).

(This trick has often been advised as a workaround for adding watermarks, so
I guess the result would be that the header-image actually ends up being
overwritten by the content of the region-body --if any... So if you make
sure the first rows have no content at all in the first columns, this should
actually work.)


Hope this helps!

Greetz,

Andreas


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



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-13 Thread Roland Schroth
I think your idea could work if i had only one table starting at the top of
the page.

   But (sorry that i did not mention that) i have a sequence of tables of
   different lengths that therefore also may start in the middle of a page.
   There are tables being only a few rows long an others spanning 2 or 3
   pages. So i need something that will work for that case too.

Anyway, thanks for your quick response.

Roland

  But i need the image to overflow the bottom of the header line
  (leaving its
  height unchanged) so that it flows right into the body area. The
  problem is
  that the overflow property isn't supported yet and a number-rows-spanned
  does not seem to work here because header and body rows obviously
  cannot be
  mixed.
 

 Try the following (for example):

 in the simple-page-master, set the margin-top for the region body to the
 height of the one line containing 'Some Header Text' --depending on the
 font-size of the text, of course.
 Then set the height of the region-before to be greater than the margin-top
 just defined (roughly equivalent to the height of the image).

 This way your region-before will actually overlap the region-body by
 (region-body-margin-top - region-before-height).

 (This trick has often been advised as a workaround for adding watermarks,
so
 I guess the result would be that the header-image actually ends up being
 overwritten by the content of the region-body --if any... So if you make
 sure the first rows have no content at all in the first columns, this
should
 actually work.)



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



Suppress rendering of page numbers possible ?

2002-06-17 Thread Norbert Schoepke
Hi FOPers !

If only printing very few pages it can be annoying to have the pages
numbered at the bottom.
Can I suppress this ? Maybe by setting some  XSL parameter ( I print
DocBooks using Norman Walsh's Stylesheet Distribution ) ?

thanks
Norbert Schöpke
Developer

Critical Reach AG
- optimizing the manufacturing aftermarket -
Garmischer Straße 19/21
81377 München

Fon:  +49 (89) / 54 26 21 - 54
Fax:  +49 (89) / 54 26 21 - 15
mailto:[EMAIL PROTECTED]
http://www.criticalreach.com




Re: Suppress rendering of page numbers possible ?

2002-06-17 Thread Oleg Tkachenko
Norbert Schoepke wrote:
If only printing very few pages it can be annoying to have the pages
numbered at the bottom.
Can I suppress this ? Maybe by setting some  XSL parameter ( I print
DocBooks using Norman Walsh's Stylesheet Distribution ) ?
That's depends on xsl stylesheet. AFAIK at least in docbook-xsl-1.49 you 
cannot change it.
But anyway you can override particular docbook xsl template and removes 
page-number or introduce some new logic, they call it docbook customization.

PS. You'd better ask on docbook-apps mail list.
--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: Is it possible to maintain kerning in FO?

2002-06-16 Thread Jeremias Maerki
Actually, in 0.20.4rc letter-spacing should work now, but only for the
PDF and PS renderers.

On 14.06.2002 21:13:09 Oleg Tkachenko wrote:
 Max Dcosta wrote:
 
  Is it possible to maintain kerning in FO?
 In FO yes, it's possible by letter-spacing property:
 fo:inline
   letter-spacing=2mmThis is a text with 2mm letter-spacing/fo:inline
 
 But afaik letter-spacing is not implemented in fop yet, fop only able to 
 keep font built-in kerning.
 
 -- 
 Oleg Tkachenko
 Multiconn International Ltd


Cheers,
Jeremias Maerki



RE: docbook link and ulink to real links in PDF possible ?

2002-06-14 Thread Max Dcosta
dear guys,

can you pls tell me what is this DocBook concept.

And also when i give a link in my pdf, how can i get it to open into a
browser window when someone clicks on it.
Or even how to get internal hyperlinks from one page to another page within
my pdf document.

Pls guide me.

max :)

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Friday, June 14, 2002 1:50 AM
To: [EMAIL PROTECTED]
Subject: Re: docbook link and ulink to real links in PDF possible ?


Norbert Schoepke wrote:
 As I've seen working links in a PDF (to other websites) I wonder if it's
 possible to generate internal and external links from my DocBook into PDF
?
 I already gave the archives a try but couldn't find anything useful...
 The DocBook tag link doesn't get interpreted at all and ulink writes
 the whole URL in [ ] behind the link text, which can be very annoying !

FOP can generate links in PDF. There are some serious bugs, though,
use links with care in tables and lists as the hot spot could be off
the intended place.
However, the effects you describe are produced by the DocBook style
sheet, you have to delve into it for fixing them.


J.Pietschmann


Is it possible to maintain kerning in FO?

2002-06-14 Thread Max Dcosta
Dear Fop Users,

Is it possible to maintain kerning in FO?

Is it necessary to put text-align=left/ in fo:table element


please guide me on this my friends.

waiting for your reply on this one

max

Max William D'costa | Interactive Designer | netdecisions
6th Floor, MET Building, Gen. A K Vaidya Chowk, 
Bandra Reclamation, Mumbai 400050, India
t +91 (0)22 644  Ext: 165  f +91 (0)22 655 8048
http://www.netdecisions.com
[EMAIL PROTECTED]



Re: docbook link and ulink to real links in PDF possible ?

2002-06-14 Thread Oleg Tkachenko
Max Dcosta wrote:
can you pls tell me what is this DocBook concept.
DocBook is not a concept, but a very popular set of tags for describing 
books, articles, and other prose documents, particularly technical 
documentation. DocBook is defined using the native DTD syntax of SGML 
and XML. Like HTML, DocBook is an example of a markup language defined 
in SGML/XML. See docbook.sf.net, www.docbook.org for more info.

And also when i give a link in my pdf, how can i get it to open into a
browser window when someone clicks on it.
Or even how to get internal hyperlinks from one page to another page within
my pdf document.
Pls guide me.
Take a look at Dave Pawson's An introduction to XSL Formatting 
Objects, chapter about links is at 
http://www.dpawson.co.uk/xsl/sect3/bk/ch11.html#d0e8382.

--
Oleg Tkachenko
Multiconn International Ltd


Re: Is it possible to maintain kerning in FO?

2002-06-14 Thread Oleg Tkachenko
Max Dcosta wrote:
Is it possible to maintain kerning in FO?
In FO yes, it's possible by letter-spacing property:
fo:inline
 letter-spacing=2mmThis is a text with 2mm letter-spacing/fo:inline
But afaik letter-spacing is not implemented in fop yet, fop only able to 
keep font built-in kerning.

--
Oleg Tkachenko
Multiconn International Ltd


RE: docbook link and ulink to real links in PDF possible ?

2002-06-13 Thread Rob Smith
 From: Norbert Schoepke [mailto:[EMAIL PROTECTED]
 btw.: When I use these FOP extensions with my Stylesheets,
 the TOC's and
 LOT's all don't get proper leader dots to right-align the
 pagenumbers...
 Why is this ? If I don't use them, I get the leader dot all fine lined
 up...

The TOC style with leaders didn't work with earlier FOP versions. Norman
Walsh modified his XSL stylesheets to switch to a simpler TOC style when FOP
extensions are turned on, about the same time that the FOP team fixed
leaders...

--
Rob Smith



docbook link and ulink to real links in PDF possible ?

2002-06-12 Thread Norbert Schoepke
Hello FOP community

As I've seen working links in a PDF (to other websites) I wonder if it's
possible to generate internal and external links from my DocBook into PDF ?
I already gave the archives a try but couldn't find anything useful...
The DocBook tag link doesn't get interpreted at all and ulink writes
the whole URL in [ ] behind the link text, which can be very annoying !

If I use the FOP extensions I can produce bookmarks that work, so I guess
there could be a solution for this...

btw.: When I use these FOP extensions with my Stylesheets, the TOC's and
LOT's all don't get proper leader dots to right-align the pagenumbers...
Why is this ? If I don't use them, I get the leader dot all fine lined
up...

any help would be very appreciated...

Norbert Schöpke
Developer

Critical Reach AG
- optimizing the manufacturing aftermarket -
Garmischer Straße 19/21
81377 München

Fon:  +49 (89) / 54 26 21 - 54
Fax:  +49 (89) / 54 26 21 - 15
mailto:[EMAIL PROTECTED]
http://www.criticalreach.com




Is it possible ?

2002-05-30 Thread Xavier DAMAY
hello,
Is it possible with fop to get a 300 dpi resolution for a Pdf File ?
Is it possible to write protect, print protect, read protect with a 
password a Pdf File.

If it is, please give me clues.
Xavier



Re: Is it possible ?

2002-05-30 Thread Cyril Rognon
Hi Xavier,
as for the 300 dpi I cannot say but you might search the archive of the 
list about this.

In order to Write/Print/Read/select protect your document, FOP does not do 
this, simply because it is not part of XSL FO. Yet, you may use another 
Java tool combined with FOP to do this : the iText library.

You can use it to create a copy of your FOP generated PDF wich you can read 
protect and  print protect and write protect and so on. iText tutorial 
shows you how to do this.

I think someone on the dev-list has done some work to propose a FOP 
extension that uses iText to do this kind of stuff. Once again, you may 
look for it in the achive. Even if you don't use FOP extension, you may use 
iText explicitly after FOP has generated your PDF.

Cyril
At 09:03 30/05/2002 +0200, you wrote:
hello,
Is it possible with fop to get a 300 dpi resolution for a Pdf File ?
Is it possible to write protect, print protect, read protect with a 
password a Pdf File.

If it is, please give me clues.
Xavier



Re: Is it possible ?

2002-05-30 Thread J.Pietschmann
Cyril Rognon wrote:
In order to Write/Print/Read/select protect your document, FOP does not 
do this, simply because it is not part of XSL FO. Yet, you may use 
another Java tool combined with FOP to do this : the iText library.
Sample code:
 http://marc.theaimsgroup.com/?l=fop-devm=102002975028427w=2
J.Pietschmann



AW: PDF table of contents - possible with FOP?

2002-05-27 Thread Jens Posingies
Title: PDF table of contents - possible with FOP?



Here 
an xsl example, takenfrom my current project:

 
xsl:template match="chapter" mode="content" 
fox:outline internal-destination="[EMAIL PROTECTED]}" 
fox:label xsl:number 
count="chapter" 
level="multiple"/ 
xsl:text./xsl:textxsl:value-of 
select="title"/ 
/fox:label xsl:apply-templates 
select="chapter" mode="content"/ 
/fox:outline /xsl:template
Don't 
forget the name space:
xmlns:fox="http://xml.apache.org/fop/extensions" 
version="1.0"

This 
works with all FOP version I have useduntil now (0.18.1 - 
0.20.3).

  -Ursprüngliche Nachricht-Von: Schweigl, Johann 
  [mailto:[EMAIL PROTECTED]Gesendet: Montag, 27. Mai 
  2002 14:48An: '[EMAIL PROTECTED]'Betreff: PDF 
  table of contents - possible with FOP?
  Hi all, 
  is it possible to have Apache FOP generate a table 
  of contents and maybe thumbnails for a PDF file? Is there any other FOP that 
  can do that?
  Best Regards, Johann 


AW: PDF table of contents - possible with FOP?

2002-05-27 Thread Schweigl, Johann
Title: PDF table of contents - possible with FOP?



thanks 
a lot, that saved my day ...

  -Ursprüngliche Nachricht-Von: Jens Posingies 
  [mailto:[EMAIL PROTECTED]Gesendet: Montag, 27. Mai 2002 
  14:58An: [EMAIL PROTECTED]Betreff: AW: PDF table 
  of contents - possible with FOP?
  Here 
  an xsl example, takenfrom my current project:
  
   xsl:template match="chapter" 
  mode="content" fox:outline 
  internal-destination="[EMAIL PROTECTED]}" 
  fox:label xsl:number 
  count="chapter" 
  level="multiple"/ 
  xsl:text./xsl:textxsl:value-of 
  select="title"/ 
  /fox:label xsl:apply-templates 
  select="chapter" mode="content"/ 
  /fox:outline /xsl:template
  Don't forget the name space:
  xmlns:fox="http://xml.apache.org/fop/extensions" 
  version="1.0"
  
  This 
  works with all FOP version I have useduntil now (0.18.1 - 
  0.20.3).
  
-Ursprüngliche Nachricht-Von: Schweigl, Johann 
[mailto:[EMAIL PROTECTED]Gesendet: Montag, 27. Mai 
2002 14:48An: '[EMAIL PROTECTED]'Betreff: PDF 
table of contents - possible with FOP?
Hi all, 
is it possible to have Apache FOP generate a 
table of contents and maybe thumbnails for a PDF file? Is there any other 
FOP that can do that?
Best Regards, Johann 


RE: Possible thread-safe issue with fonts

2002-04-30 Thread Chris Warr

It'll do, I just load tested it overnight, no problems for 250,000 hits.
I'm running through cocoon, I don't want to be playing with cocoon's source
as well.

Chris.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 30 April 2002 6:44
To: [EMAIL PROTECTED]
Subject: Re: Possible thread-safe issue with fonts


Chris Warr wrote:
 OK, it was a threading issue, I downloaded the source and had a play.  It
 comes about because the static configuration is updated for every
 translation I do.  FontSetup.addConfiguredFonts() can read from the font
 list at the same time as ConfigurationParser.store() updates it.  I just
put
 a line in ConfigurationParser.endElement() to only add fonts if there are
 none in the list.  Was easier for me than mucking around with
 'synchronized', I'm only a java beginner.
 
 
 } else if (localName.equals(fonts)) {
 --if (Configuration.getFonts() != null 
 Configuration.getFonts().size() != 0)
 --{
 --// Don't update the fonts
 --}
 --else
{
this.store(standard, fonts, fontList);
}

That's not a good idea.
If you have only one servlet and set the configuration
only once, do so in the servlet's init() method.
If you have several servlets, create a singleton class
wrapping the instantiation of the configuration,
roughly
  final class ConfigSingleton {
   private static Options options;
   public final void synchronized init() {
 if( options==null ) {
   options=new Options(userconfig.xml);
 }
   }

(Beware! Untested!)
And call ConfigSingleton.init() in each of the servlet's
init method.

J.Pietschmann



RE: Possible thread-safe issue with fonts

2002-04-29 Thread Chris Warr
I don't get that error, just the one 'unknown font dynamo...'

Is this more appropriate for fop-dev?

Chris.

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 April 2002 17:26
To: [EMAIL PROTECTED]
Subject: Re: Possible thread-safe issue with fonts



It sounds like it is a threading problem.

Do you get any messages like:
Failed to read font metrics file ... 

It would appear that two threads could be reading the font metrics file at 
the same time.
Accessing the file is done through the parser so we don't know what it is 
actually doing and it depends on the parser.
I think each time it is a new data set in memory so it probably is not 
that.



On 2002.04.26 08:17 Chris Warr wrote:
 
 Hi, I'm running cocoon 2.1dev under tomcat 4.04b2 with JDK 1.3 and FOP
 0.20.3.  My cocoon app is generating a PDF using FOP.  I use and embed a
 font in my generated PDF file with the following in my userconfig file:
 
   font metrics-file=d:/fonts/font_dynamo.xml
 kerning=yes
 embed-file=d:/fonts/dynamo.pfb
   font-triplet name=dynamo style=normal
 weight=normal/
   font-triplet name=dynamo style=normal
 weight=bold/
   /font
 
 This all works fine and dandy under normal usage, I get the dynamo font
 embedded in my PDF and all is well.  However if I run a load test (20
 concurrent processes) on the same app. I get the following error appear
 in
 my tomcat log files:
 
 2002-04-26 15:25:20 ERROR   (2002-04-26) 15:25.20:375   [fop ]
 (/cocoon/invoice.pdf) HttpProcessor[80][11]/MessageHandler: unknown font
 dynamo,normal,normal so defaulted font to any
 
 Not for every hit, but for some.  So I'm guessing that there is some sort
 of
 problem with resource sharing.  That is, could FOP not be thread safe as
 far
 as accessing this file?  Or if the file is loaded into memory once, could
 there be multi-threading issues with reading from wherever it is stored
 in
 memory?
 
 Anyone got any ideas?
 
 Chris.
 


Possible thread-safe issue with fonts

2002-04-26 Thread Chris Warr

Hi, I'm running cocoon 2.1dev under tomcat 4.04b2 with JDK 1.3 and FOP
0.20.3.  My cocoon app is generating a PDF using FOP.  I use and embed a
font in my generated PDF file with the following in my userconfig file:

font metrics-file=d:/fonts/font_dynamo.xml kerning=yes
embed-file=d:/fonts/dynamo.pfb
font-triplet name=dynamo style=normal
weight=normal/
font-triplet name=dynamo style=normal
weight=bold/
/font

This all works fine and dandy under normal usage, I get the dynamo font
embedded in my PDF and all is well.  However if I run a load test (20
concurrent processes) on the same app. I get the following error appear in
my tomcat log files:

2002-04-26 15:25:20 ERROR   (2002-04-26) 15:25.20:375   [fop ]
(/cocoon/invoice.pdf) HttpProcessor[80][11]/MessageHandler: unknown font
dynamo,normal,normal so defaulted font to any

Not for every hit, but for some.  So I'm guessing that there is some sort of
problem with resource sharing.  That is, could FOP not be thread safe as far
as accessing this file?  Or if the file is loaded into memory once, could
there be multi-threading issues with reading from wherever it is stored in
memory?

Anyone got any ideas?

Chris.


Re: Possible thread-safe issue with fonts

2002-04-26 Thread Keiron Liddle
It sounds like it is a threading problem.
Do you get any messages like:
Failed to read font metrics file ... 
It would appear that two threads could be reading the font metrics file at 
the same time.
Accessing the file is done through the parser so we don't know what it is 
actually doing and it depends on the parser.
I think each time it is a new data set in memory so it probably is not 
that.


On 2002.04.26 08:17 Chris Warr wrote:
Hi, I'm running cocoon 2.1dev under tomcat 4.04b2 with JDK 1.3 and FOP
0.20.3.  My cocoon app is generating a PDF using FOP.  I use and embed a
font in my generated PDF file with the following in my userconfig file:
font metrics-file=d:/fonts/font_dynamo.xml
kerning=yes
embed-file=d:/fonts/dynamo.pfb
font-triplet name=dynamo style=normal
weight=normal/
font-triplet name=dynamo style=normal
weight=bold/
/font
This all works fine and dandy under normal usage, I get the dynamo font
embedded in my PDF and all is well.  However if I run a load test (20
concurrent processes) on the same app. I get the following error appear
in
my tomcat log files:
2002-04-26 15:25:20 ERROR   (2002-04-26) 15:25.20:375   [fop ]
(/cocoon/invoice.pdf) HttpProcessor[80][11]/MessageHandler: unknown font
dynamo,normal,normal so defaulted font to any
Not for every hit, but for some.  So I'm guessing that there is some sort
of
problem with resource sharing.  That is, could FOP not be thread safe as
far
as accessing this file?  Or if the file is loaded into memory once, could
there be multi-threading issues with reading from wherever it is stored
in
memory?
Anyone got any ideas?
Chris.


RE: possible to specify required spaces?

2002-04-01 Thread Buonincontri, Steve (CAP, MMF, ITSS)

This is a great subject. I recently struggled quite a bit with this problem.

RTF2FO and FO to FOP gave me loads of problems with whitespaces. I am ready to 
give up.

- sb

-Original Message-
From: Craeg K Strong [mailto:[EMAIL PROTECTED]
Sent: Friday, March 22, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: possible to specify required spaces?


Can you use fo:leader?

Check out  http://www.renderx.com/Tests/leader.fo

HTH,

--Craeg

[EMAIL PROTECTED] wrote:

Does anyone know a way to pass required spaces through FOP from XML to a
PDF?

The normal processing of x'20' spaces collapses adjacent spaces to
eliminate extra white space, which is normally good but not in all cases,
and 'white-space-treatment=pre' (which would preserve these) isn't
implemented yet.

Does anyone know, for example, of another way to preserve these or else
another blank non-printing character that we could use in the  XML file for
spaces we want to preserve?

Thanks for any advice!




-- 
Craeg K Strong, General Partner
Ariel Partners LLC
http://www.arielpartners.com
voice 781-647-2425
fax   781-647-9690

NOTICE: This message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies -- including electronic copies -- of the original message.




RE: possible to specify required spaces?

2002-04-01 Thread Scott Moore
I use fo:block white-space-collapse=false which preserves spaces and
works great with FOP.

Scott


-Original Message-
From: Buonincontri, Steve (CAP, MMF, ITSS)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 01, 2002 5:51 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: possible to specify required spaces?



This is a great subject. I recently struggled quite a bit with this problem.

RTF2FO and FO to FOP gave me loads of problems with whitespaces. I am ready
to give up.

- sb

-Original Message-
From: Craeg K Strong [mailto:[EMAIL PROTECTED]
Sent: Friday, March 22, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: possible to specify required spaces?


Can you use fo:leader?

Check out  http://www.renderx.com/Tests/leader.fo

HTH,

--Craeg

[EMAIL PROTECTED] wrote:

Does anyone know a way to pass required spaces through FOP from XML to a
PDF?

The normal processing of x'20' spaces collapses adjacent spaces to
eliminate extra white space, which is normally good but not in all cases,
and 'white-space-treatment=pre' (which would preserve these) isn't
implemented yet.

Does anyone know, for example, of another way to preserve these or else
another blank non-printing character that we could use in the  XML file for
spaces we want to preserve?

Thanks for any advice!




-- 
Craeg K Strong, General Partner
Ariel Partners LLC
http://www.arielpartners.com
voice 781-647-2425
fax   781-647-9690

NOTICE: This message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies -- including electronic copies -- of the original message.



Re: possible to specify required spaces?

2002-03-26 Thread Craeg K Strong
Can you use fo:leader?
Check out  http://www.renderx.com/Tests/leader.fo
HTH,
--Craeg
[EMAIL PROTECTED] wrote:
Does anyone know a way to pass required spaces through FOP from XML to a
PDF?
The normal processing of x'20' spaces collapses adjacent spaces to
eliminate extra white space, which is normally good but not in all cases,
and 'white-space-treatment=pre' (which would preserve these) isn't
implemented yet.
Does anyone know, for example, of another way to preserve these or else
another blank non-printing character that we could use in the  XML file for
spaces we want to preserve?
Thanks for any advice!

--
Craeg K Strong, General Partner
Ariel Partners LLC
http://www.arielpartners.com
voice 781-647-2425
fax   781-647-9690
NOTICE: This message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies -- including electronic copies -- of the original message.



possible to specify required spaces?

2002-03-22 Thread peter . dykstra

Does anyone know a way to pass required spaces through FOP from XML to a
PDF?

The normal processing of x'20' spaces collapses adjacent spaces to
eliminate extra white space, which is normally good but not in all cases,
and 'white-space-treatment=pre' (which would preserve these) isn't
implemented yet.

Does anyone know, for example, of another way to preserve these or else
another blank non-printing character that we could use in the  XML file for
spaces we want to preserve?

Thanks for any advice!




Re: AW: possible to specify required spaces?

2002-03-22 Thread peter . dykstra

This works great -- thanks!




  
S. 
  
Jayaraman   To: [EMAIL PROTECTED]

[EMAIL PROTECTED]cc:   
   
onsor.chSubject: AW: possible to specify 
required
 spaces?
  
03/22/2002  
  
01:33 PM
  
Please  
  
respond to  
  
fop-user
  

  

  



Try #160;
In most fonts, this appears as a space.
In some fonts, it gives some funny symbols.
Cheers
Jay


**
[EMAIL PROTECTED] wrote:

Does anyone know a way to pass required spaces through FOP from XML to a
PDF?

The normal processing of x'20' spaces collapses adjacent spaces to
eliminate extra white space, which is normally good but not in all cases,
and 'white-space-treatment=pre' (which would preserve these) isn't
implemented yet.

Does anyone know, for example, of another way to preserve these or else
another blank non-printing character that we could use in the  XML file for
spaces we want to preserve?

Thanks for any advice!








Is it possible?

2002-02-28 Thread andrbozz
I'm looking to use fop to render this document.
I would like to know if is possible to render this document with fop.
Thanks in advance and i'm sorry for my bad english.

730cmod.pdf
Description: Adobe PDF document