vertical alignment of fo:block

2003-04-24 Thread Todtenhaupt, Susann
Hello!

I've tried to align fo:blocks in a fo:block-container vertically. But I
failed... Is it possible at all?

Thanx in advance!

suse

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



Re: vertical alignment of fo:block

2003-04-24 Thread Roberto Calanca
Hi Susann,

I'm new with fo:, but for vertical alignment of fo:block had good results
using table and inserting each block in a cell.

 have a nice day

Roberto

==
RC Software di Roberto Calanca
Consulenza informatica e Sviluppo Software
Via della Vite, 7
41041 Casinalbo (Mo)
e-mail [EMAIL PROTECTED]
www.rc-software.it



- Original Message -
From: Todtenhaupt, Susann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 24, 2003 8:58 AM
Subject: vertical alignment of fo:block


 Hello!

 I've tried to align fo:blocks in a fo:block-container vertically. But I
 failed... Is it possible at all?

 Thanx in advance!

 suse

 -
 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]



A logo for FOP

2003-04-24 Thread SOULLARD Clement
I did this Image for FOP.

Hope this will please.

bye,

FOP1.png
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

accessing attributes in xml

2003-04-24 Thread Torsten Erler




Hi 
all,

I've an xml 
like:

...
defaultContactPerson 
type="PROOF"/defaultContactPerson 
type="BILL"/defaultContactPerson type="SALES"Hans Friedrich 
Mueller/defaultContactPersondefaultContactPerson 
type="MAIL"/defaultContactPerson type="KEY"/


Now I've to check 
inside the xsl this:

xsl:if test="??? 
//[EMAIL PROTECTED] != '' ???"

!--do 
something here if the sales contact isn't empty--
xsl:value-of 
select="??? //[EMAIL PROTECTED] 
???"/

/xsl

Can anyone help me 
how to check the valuefor the tagwhere the attribute is 'SALES' and 
how to access this value.

ThanX in 
Advance

cu Torsten



AW: accessing attributes in xml

2003-04-24 Thread Mirko Sertic



I'd 
guess

xsl:value of select="[EMAIL PROTECTED] = 
'SALES']"/

Hope 
this helps

Cheers

Mirko

  -Ursprüngliche Nachricht-Von: Torsten Erler 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 
  2003 15:03An: Fop-User (E-mail)Betreff: accessing 
  attributes in xml
  
  Hi 
  all,
  
  I've an xml 
  like:
  
  ...
  defaultContactPerson 
  type="PROOF"/defaultContactPerson 
  type="BILL"/defaultContactPerson type="SALES"Hans Friedrich 
  Mueller/defaultContactPersondefaultContactPerson 
  type="MAIL"/defaultContactPerson 
  type="KEY"/
  
  
  Now I've to check 
  inside the xsl this:
  
  xsl:if 
  test="??? //[EMAIL PROTECTED] != '' ???"
  
  !--do 
  something here if the sales contact isn't empty--
  xsl:value-of 
  select="??? //[EMAIL PROTECTED] 
  ???"/
  
  /xsl
  
  Can anyone help me 
  how to check the valuefor the tagwhere the attribute is 'SALES' 
  and how to access this value.
  
  ThanX in 
  Advance
  
  cu Torsten
  


AW: accessing attributes in xml

2003-04-24 Thread Mirko Sertic



Sorry, 
i mean


xsl:value-of 
select="[EMAIL PROTECTED] = 'SALES']"/

Cheers

Mirko

  -Ursprüngliche Nachricht-Von: Mirko Sertic 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 
  2003 15:06An: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Betreff: AW: accessing attributes in 
  xml
  I'd 
  guess
  
  xsl:value of select="[EMAIL PROTECTED] = 
  'SALES']"/
  
  Hope 
  this helps
  
  Cheers
  
  Mirko
  
-Ursprüngliche Nachricht-Von: Torsten Erler 
[mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. 
April 2003 15:03An: Fop-User (E-mail)Betreff: 
accessing attributes in xml

Hi 
all,

I've an xml 
like:

...
defaultContactPerson 
type="PROOF"/defaultContactPerson 
type="BILL"/defaultContactPerson type="SALES"Hans Friedrich 
Mueller/defaultContactPersondefaultContactPerson 
type="MAIL"/defaultContactPerson 
type="KEY"/


Now I've to 
check inside the xsl this:

xsl:if 
test="??? //[EMAIL PROTECTED] != '' ???"

!--do 
something here if the sales contact isn't empty--
xsl:value-of 
select="??? //[EMAIL PROTECTED] 
???"/

/xsl

Can anyone help 
me how to check the valuefor the tagwhere the attribute is 
'SALES' and how to access this value.

ThanX in 
Advance

cu Torsten



Re: accessing attributes in xml

2003-04-24 Thread Louis . Masters

How about (loop):

xsl:for-each select=[EMAIL PROTECTED]'SALES']
 xsl:call-template name=processIt/
/xsl:for-each

-Lou





Torsten Erler [EMAIL PROTECTED] on 04/24/2003 09:03:20

Please respond to [EMAIL PROTECTED]

To:   Fop-User \(E-mail\) [EMAIL PROTECTED]
cc:

Subject:  accessing attributes in xml

Hi all,

I've an xml like:

...
defaultContactPerson type=PROOF/
defaultContactPerson type=BILL/
defaultContactPerson type=SALESHans Friedrich
Mueller/defaultContactPerson
defaultContactPerson type=MAIL/
defaultContactPerson type=KEY/


Now I've to check inside the xsl this:

xsl:if test=??? //[EMAIL PROTECTED] != '' ???

!-- do something here if the sales contact isn't empty--
xsl:value-of select=??? //[EMAIL PROTECTED] ???/

/xsl

Can anyone help me how to check the value for the tag where the attribute
is 'SALES' and how to access this value.

ThanX in Advance

cu Torsten








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



RE: accessing attributes in xml

2003-04-24 Thread Torsten Erler



Thanx 
- [EMAIL PROTECTED] = 'SALES'] was the pointer I'm looking for - it works 
well.

I 
tought @ goes directly to the attribute value, but wherefrom should the parser 
know which attributewas meant ;(

{ 
Thinking is hard, if you've turned off your brain ;) }

cu 
Torsten

  -Original Message-From: Mirko Sertic 
  [mailto:[EMAIL PROTECTED]Sent: Donnerstag, 24. April 2003 
  15:09To: [EMAIL PROTECTED]Subject: AW: accessing 
  attributes in xml
  Sorry, i mean
  
  
  xsl:value-of 
  select="[EMAIL PROTECTED] = 'SALES']"/
  
  Cheers
  
  Mirko
  
-Ursprüngliche Nachricht-Von: Mirko Sertic 
[mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 
2003 15:06An: [EMAIL PROTECTED]; 
[EMAIL PROTECTED]Betreff: AW: accessing attributes in 
xml
I'd guess

xsl:value of select="[EMAIL PROTECTED] = 
'SALES']"/

Hope this helps

Cheers

Mirko

  -Ursprüngliche Nachricht-Von: Torsten Erler 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. 
  April 2003 15:03An: Fop-User (E-mail)Betreff: 
  accessing attributes in xml
  
  Hi 
  all,
  
  I've an xml 
  like:
  
  ...
  defaultContactPerson 
  type="PROOF"/defaultContactPerson 
  type="BILL"/defaultContactPerson type="SALES"Hans 
  Friedrich Mueller/defaultContactPersondefaultContactPerson 
  type="MAIL"/defaultContactPerson 
  type="KEY"/
  
  
  Now I've to 
  check inside the xsl this:
  
  xsl:if 
  test="??? //[EMAIL PROTECTED] != '' ???"
  
  !--do something here if the sales 
  contact isn't empty--
  xsl:value-of select="??? //[EMAIL PROTECTED] 
  ???"/
  
  /xsl
  
  Can anyone 
  help me how to check the valuefor the tagwhere the attribute 
  is 'SALES' and how to access this value.
  
  ThanX in 
  Advance
  
  cu Torsten
  


A logo for FOP (without mistake!)

2003-04-24 Thread SOULLARD Clement

Woops,
Shame on me ! :-)
Sorry for the this second  email, but last image was mistaken. 



I did this Image for FOP.

Hope this will please.

bye,


FOP1.png
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

PDF Conversion

2003-04-24 Thread amit kaushik



Hi All,

I have to make a conversionof HTML - 
PDF. I am taking this route. First converting HTML to XML (test.xml - 
attachment) through HTMLTIDY then using the FOP toolkit i am converting this XML 
file to pdf with the help of XSL(test.xsl - attachment) . here is the command 
line which i am using.

$FOP_HOME/fop.sh -xsl test.xsl -xml test.xml -pdf 
test.pdf -d

after doing this i am getting this strange error. 
Unable to understand where is exactly the problem.

ERROR -
[DEBUG] Input mode: [DEBUG] xslt 
transformation[DEBUG] xml input file: test.xml[DEBUG] xslt stylesheet: 
test.xsl[DEBUG] Output mode: [DEBUG] pdf[DEBUG] output file: 
test.pdf[DEBUG] OPTIONS[DEBUG] no user configuration file is used 
[default][DEBUG] debug mode on[DEBUG] dump configuration[DEBUG] 
quiet mode on[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 
Parser[INFO] base directory: 
file:/home/akaushik/project/pdf/xhtml/

[INFO] FOP 0.20.5rc2[INFO] Using 
org.apache.xerces.parsers.SAXParser as SAX2 Parser[INFO] building formatting 
object tree[INFO] setting up fonts[INFO] [1][INFO] [1][ERROR] 
java.lang.ArrayIndexOutOfBoundsExceptionorg.apache.fop.apps.FOPException: 
java.lang.ArrayIndexOutOfBoundsException 
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:74) 
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.RuntimeException: 
java.lang.ArrayIndexOutOfBoundsException 
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) 
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433) 
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source) at 
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source) at 
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source) at 
org.apache.xerces.parsers.XMLParser.parse(Unknown 
Source) at 
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source) at 
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) 
at 
org.apache.fop.apps.Driver.render(Driver.java:457) 
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69) 
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.RuntimeException: 
java.lang.ArrayIndexOutOfBoundsException 
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) 
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433) 
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source) at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source) at 
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source) at 
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source) at 
org.apache.xerces.parsers.XMLParser.parse(Unknown 
Source) at 
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source) at 
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) 
at 
org.apache.fop.apps.Driver.render(Driver.java:457) 
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69) 
at org.apache.fop.apps.Fop.main(Fop.java:19)
Please suggest cause i am clueless on this, any 
help would be appreciated.

thanks,
Amit Kaushik


?xml version=1.0?
?xml-stylesheet type=text/xsl href=C:\PROJECT\pdf\test.xsl?
html
	head
		titleMusically - Index/title
	/head
	body bgcolor=#FF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0
		table width=660 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FF
			tr
td colspan=4 height=30/
			/tr
			tr
td width=30/
td rowspan=2 width=380/
td width=220
	img src=grfx/logo-index.gif width=215 height=53/
/td
td width=30/
			/tr
			tr
td/
td
	b
		font style=font-family: Futura Md BT, Verdana, Arial; font-size: 16px; color:#BCBEC0
mcps / prs technology report/font
	/b
/td
td/
			/tr
			tr
td colspan=4 height=30/
			/tr
		/table
		table width=660 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FF
			tr
td 

RE: Alternate flows on odd and even pages

2003-04-24 Thread Arved Sandstrom
 -Original Message-
 From: Roxana Constandes [mailto:[EMAIL PROTECTED]
 Sent: April 24, 2003 11:37 AM
 To: [EMAIL PROTECTED]
 Subject: Alternate flows on odd and even pages


 Hi All!

 I need to to alternate two different flows on odd and even pages.
 I know that is possible to alternate the static-content regions.
 But can I do it for region-body? I have to create two flows, one
 for odd pages and another one for even pages. Is it possible?

 Thanks in advance,
 Roxana

No, you cannot do this directly with XSL-FO. What is your scenario? It may
be possible to accomplish the task with a few extra steps.

AHS


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



Re: PDF Conversion

2003-04-24 Thread Clay Leeds
I think you have your arguments in the wrong order. I'm not sure if it
matters, but my command line looks like this:

$FOP_HOME/fop.sh -d -xml test.xml -xsl test.xsl -pdf test.pdf

Hope this helps!

Web Maestro Clay

amit kaushik wrote:
 Hi All,   I have to make a conversion of  HTML - PDF. I am taking this
 route. First converting HTML to XML (test.xml - attachment) through
 HTMLTIDY then using the FOP toolkit i am converting this XML file to pdf
 with the help of XSL(test.xsl - attachment) . here is the command line
 which i am using.   $FOP_HOME/fop.sh -xsl test.xsl -xml test.xml -pdf
 test.pdf -d   after doing this i am getting this strange error. Unable
 to understand where is exactly the problem.   ERROR - [DEBUG] Input mode:


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



squere instead of bullet in lists?

2003-04-24 Thread anton
Hi!

I wish to use square insteed of bullet. In the Norms Stylesheet they are
commentde out, 'cause they not shown in PDF correct:

!-- why do these symbols not work? --
  !--
  xsl:when test=$itemsymbol='circle'#x2218;/xsl:when
  xsl:when test=$itemsymbol='round'#x2218;/xsl:when
  xsl:when test=$itemsymbol='square'#x2610;/xsl:when
  xsl:when test=$itemsymbol='box'#x2610;/xsl:when
  --

Have somebody solved this Problem or have another solution for it?


Best wishes
Anton


smime.p7s
Description: S/MIME cryptographic signature


RE: Alternate flows on odd and even pages

2003-04-24 Thread Roxana Constandes
Hi Arved!

I have to generate one PDF file that contains 2 different reports(different 
data and layout): report 1 has to be on pages 1,3,5,7, and report 2 has to 
be on pages 2,4,6,8

I succeded in creating different static-content for odd and even pages. But it 
doesn't allow me to create two flows. Do you have another solution for this? 
Here is a very simplified exemple of what I've tried to do:
 
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

!-- Define the Page Master  --
fo:layout-master-set
fo:simple-page-master page-height=297mm 
page-width=210mm
margin-top=5mm
margin-bottom=5mm
margin-left=12mm
margin-right=2mm
master-name=OddPageMaster
fo:region-body region-name=odd-region-body 
margin-top=1cm margin-bottom=2cm/
fo:region-before 
region-name=odd-region-before extent=1cm/
fo:region-after extent=2cm/
/fo:simple-page-master

fo:simple-page-master page-height=297mm 
page-width=210mm
margin-top=5mm
margin-bottom=5mm
margin-left=12mm
margin-right=2mm
master-name=EvenPageMaster
fo:region-body region-name=even-region-body 
margin-top=20cm margin-bottom=2cm/
fo:region-before 
region-name=even-region-before extent=20cm/
fo:region-after extent=2cm/
/fo:simple-page-master

fo:page-sequence-master master-name=PageMaster
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference 
master-reference=OddPageMaster

page-position=any odd-or-even=odd /
fo:conditional-page-master-reference 
master-reference=EvenPageMaster

page-position=any odd-or-even=even /
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-master-set


fo:page-sequence master-reference=PageMaster

fo:static-content flow-name=odd-region-before
fo:block odd page /fo:block
/fo:static-content

fo:static-content flow-name=even-region-before
fo:block even page/fo:block 
/fo:static-content

fo:flow flow-name=odd-region-body
xsl:for-each select=...
fo:blockodd/fo:block
/xsl:for-each
/fo:flow
/fo:page-sequence
When I try to give distinct names for the region-bodies in simple-page-master, 
I get error when I run Apache FOP. 

The two reports are very different and complex.

Thanks again,
Roxana

-Original Message-
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 24, 2003 10:43 AM
To: [EMAIL PROTECTED]
Subject: RE: Alternate flows on odd and even pages


 -Original Message-
 From: Roxana Constandes [mailto:[EMAIL PROTECTED]
 Sent: April 24, 2003 11:37 AM
 To: [EMAIL PROTECTED]
 Subject: Alternate flows on odd and even pages


 Hi All!

 I need to to alternate two different flows on odd and even pages.
 I know that is possible to alternate the static-content regions.
 But can I do it for region-body? I have to create two flows, one
 for odd pages and another one for even pages. Is it possible?

 Thanks in advance,
 Roxana

No, you cannot do this directly with XSL-FO. What is your scenario? It may
be possible to accomplish the task with a few extra steps.

AHS


-
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]



block-containers and absolute positioning

2003-04-24 Thread David Neary
Hi,

I have a feeling this is probably very easy, but I have had 
some trouble doing it. I'm pretty hopeful that one of ye can 
point out the obvious mistake I'm making :)

I'm using fop 0.20.4 on Win32. I would like to lay out a 
letterhead type thing which looks something like this...

++
|| Name
|| Address 1
|  Logo  | Address 2
|| Phone
|| Fax
++


I think that this should be a block container with two blocks 
in it - one containing the external-graphic and one 
containing the rest of the letterhead (I guess I could do it 
with a table too). Then the right-hand block would contain 
one block each for each of the different data items in the letterhead.

So what I ended up with is 

fo:static-content flow-name=xsl-region-before
  fo:block-container font-size=20pt text-align-last=center
fo:block left=0pt top=0pt width=20mm height=20mm 
  position=absolute
fo:external-graphic width=20mm height=20mm 
  src=url(http://www.linux.ie/images/tux.gif)/
/fo:block
fo:block left=20mm top=0pt width=180mm 
  height=20mm position=absolute
  fo:blockTom Jones/fo:block
  fo:block17 Rugby Street/fo:block
  fo:blockCardiff CA12 14GC/fo:block
/fo:block
  /fo:block-container
/fo:static-content

The only problem is it doesn't work :) Either I put the two 
blocks in a block, and I get classic block behaviour (logo 
first, then text beneath) or I put them in a block-container, 
and noting gets displayed.

For information, in the page-master, the extent of the before 
is set to 4cm (for testing purposes).

Can anyone help me lay out the header?

Cheers, and thanks for the help,
Dave.

--
David Neary
Phenix Engineering
110 ave Jean Jaures, 69007 Lyon 

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



table--row background

2003-04-24 Thread Torsten Erler
Hi all,

I need help again with FOPing. I've a table with many rows. Each second row
has a gray colored background.
Now it appears that the gray backgound overlaps the table border
(approximately for a half point) and between the column borders are breaks
(also 1/2 point) on every top of a colored row.

I've set the border on the fo:table around and on the last column at the
left side

++---+
||   |
||===|
||   |
||===|
++---+


What's going wrong?

ThanX
cu Torsten


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



Re: PDF Conversion

2003-04-24 Thread J.Pietschmann
Clay Leeds wrote:
I think you have your arguments in the wrong order. I'm not sure if it
matters,
Option order on the command line *doesn't* matter. Order is only
significant if the defaults -fo and -pdf are omitted:
This works
  fop foo.fo foo.pdf
This won't work
  fop foo.pdf foo.fo
Any option can be placed anywhere, all of the following is ok:
  fop -d foo.fo foo.pdf
  fop foo.fo -d foo.pdf
  fop foo.fo foo.pdf -d
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Alternate flows on odd and even pages

2003-04-24 Thread J.Pietschmann
Roxana Constandes wrote:
I have to generate one PDF file that contains 2 different reports(different
data and layout): report 1 has to be on pages 1,3,5,7, and report 2 has
to be on pages 2,4,6,8
Use FOP to create two PDF documents, or one PDF document with
the two reports successively, then use another tool like
iText to merge the PDFs or reshuffle the pages. Getting the
right page numbers is still a bit of a problem, it can be solved
with generated page-sequence-masters containing lots of single
page master references with hard coded page numbers or by adding
them in the merge/reshuffle routine.
See also
 http://xml.apache.org/fop/faq.html#pdf-postprocess
J.Pietschmann

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


Re: squere instead of bullet in lists?

2003-04-24 Thread J.Pietschmann
anton wrote:
I wish to use square insteed of bullet. In the Norms Stylesheet they are
commentde out, 'cause they not shown in PDF correct:
Typical symptoms of NGITF. See
 http://xml.apache.org/fop/faq.html#pdf-characters
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: block-containers and absolute positioning

2003-04-24 Thread J.Pietschmann
David Neary wrote:
I'm using fop 0.20.4 on Win32. I would like to lay out a 
letterhead type thing which looks something like this...

++
|| Name
|| Address 1
|  Logo  | Address 2
|| Phone
|| Fax
++
I think that this should be a block container with two blocks 
in it - one containing the external-graphic and one 
containing the rest of the letterhead (I guess I could do it 
with a table too).
A table would indeed be the more recommended solution.
  fo:block-container font-size=20pt text-align-last=center
fo:block left=0pt top=0pt width=20mm height=20mm 
  position=absolute
Specifying position on fo:block has no effect in FOP, it only works on
fo:block-container. You have to use two containers:
 fo:static-content flow-name=xsl-region-before
   fo:block-container left=0pt top=0pt width=20mm height=20mm
 position=absolute font-size=20pt text-align-last=center
 fo:external-graphic width=20mm height=20mm
   src=url(http://www.linux.ie/images/tux.gif)/
   /fo:block-container
   fo:block-container left=20mm top=0pt width=180mm height=20mm
   position=absolute font-size=20pt text-align-last=center
 fo:blockTom Jones/fo:block
 fo:block17 Rugby Street/fo:block
 fo:blockCardiff CA12 14GC/fo:block
   /fo:block-container
 /fo:static-content
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table--row background

2003-04-24 Thread J.Pietschmann
Torsten Erler wrote:
I need help again with FOPing. I've a table with many rows. Each second row
has a gray colored background.
Now it appears that the gray backgound overlaps the table border
(approximately for a half point) and between the column borders are breaks
(also 1/2 point) on every top of a colored row.
I've set the border on the fo:table around and on the last column at the
left side
++---+
||   |
||===|
||   |
||===|
++---+
What's going wrong?
The implementation for borders on table cells has quite a few drawbacks.
It should help a bit to use one color as the background color of the
table and the other color as background for the cells in every other cell.
Gaps between columns can be filled with appropriate borders of the
background color.
J.Pietschmann

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


Re: vertical alignment of fo:block

2003-04-24 Thread J.Pietschmann
Todtenhaupt, Susann wrote:
I've tried to align fo:blocks in a fo:block-container vertically. But I
failed... Is it possible at all?
See
 http://xml.apache.org/fop/faq.html#fo-center
J.Pietschmann

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


Number alignment in TOC

2003-04-24 Thread anton
Hi!

see the Screenshot. The alignment of the numbers is not exact. What should
i do to fix it?

I use DocBook with Norm's stelysheet version 1.60.1

Here is a part from the toc.line template.

!-- Unterkapitel sect2 normal --
xsl:when test=local-name(.)='sect2'
 fo:block  text-align-last=justify
end-indent={$toc.indent.width}pt
last-line-end-indent=-{$toc.indent.width}pt
fo:inline keep-with-next.within-line=always
  fo:basic-link internal-destination={$id}
xsl:if test=$label != ''
  xsl:copy-of select=$label/
  xsl:value-of select=$autotoc.label.separator/
/xsl:if
  xsl:apply-templates select=. mode=title.markup/
  /fo:basic-link
/fo:inline

fo:inline keep-together.within-line=always
  xsl:text /xsl:text
  fo:leaderleader-pattern=dots
leader-pattern-width=3pt
leader-alignment=reference-area
keep-with-next.within-line=always/
  xsl:text /xsl:text
  fo:basic-link internal-destination={$id}
fo:page-number-citation ref-id={$id}/
  /fo:basic-link
/fo:inline
  /fo:block
/xsl:when

CU
Anton

P.S.

Pietschman, thanks for answering my question about list marks. I'll try it
tomorow.
attachment: pdf-toc-pagenumbers2.gif

smime.p7s
Description: S/MIME cryptographic signature


Re: Number alignment in TOC

2003-04-24 Thread J.Pietschmann
anton wrote:
see the Screenshot. The alignment of the numbers is not exact. What should
i do to fix it?
See
 http://xml.apache.org/fop/faq.html#page-number-align
The problem is already fixed, but the code is not yet released.
You can get it from CVS, see
 http://xml.apache.org/fop/download.html
Be sure to get the code from the maintenance branch:
 http://xml.apache.org/fop/dev/index.html#lines
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Searchable text in PDF out of FOP

2003-04-24 Thread Dudley, Mark
Hello,

Is there a way to generate a PDF with searchable text out of FOP? Maybe I am
doing something wrong, but when I go to search for text in a PDF generated
from FOP I always come up with 0 hits. Thanks!

Mark Dudley
Xerox Corporation 

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



RE: Searchable text in PDF out of FOP

2003-04-24 Thread Adam Shelley
I seem to be able to search text in my PDF's output with FOP.  Maybe post a
document and its fo as an example?

-Adam

-Original Message-
From: Dudley, Mark [mailto:[EMAIL PROTECTED]
Sent: April 24, 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: Searchable text in PDF out of FOP


Hello,

Is there a way to generate a PDF with searchable text out of FOP? Maybe I am
doing something wrong, but when I go to search for text in a PDF generated
from FOP I always come up with 0 hits. Thanks!

Mark Dudley
Xerox Corporation

-
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 character mapping problems

2003-04-24 Thread Mike Ferrando
Friends,
I am converting documents from XML using XSL into FO files then
using FOP to convert these into PDF.

The problem I am having is that some of my NCR are not transforming
(Numeric Character Reference). My FO file is correct. The
Character NCR is retained # 299; (space added so that you can see
what the NCR is without the space it could appear correctly or
incorrectly) in the FO file. 
Unicode 012B in Latin Extended A (0100--017F)
http://www.eki.ee/letter/chardata.cgi?ucode=012B

I succefully created metric xml files for my userconfig.xml file.
Using only the font-family Arial (arial.xml), all characters are
displayed correctly when the -c userconfig.xml is given as an option
in the command line.

  fop -c conf\userconfig.xml -fo file.fo -pdf file.pdf

When the document is open in Acrobat 5, I try to search words that
appear in the Arial font. I get no results. Nothing is found by the
Acrobat search tool. However, if I transform all text in the Base
font (Times), and only the one character (# 299;) in the Arial
font, I can find the whole word up to that character.

I have even looked through the cid-fonts.fo file as well. Basically
all characters that are not in the Base 14 font sets are
unsearchable. The Apache site even confirms this being the result of
using metric fonts for these characters. (quote)

When embedding TrueType fonts, a new font, containing only the glyphs
used, is created from the original font and embedded in the pdf.
Currently, this embedded font contains only the minimum data needed
to be embedded in a pdf document, and does not contain any codepage
information. The PDF document contains indexes to the glyphs in the
font instead of to encoded characters. While the document will be
displayed correctly, the net effect of this is that searching,
indexing, and cut-and-paste will not work properly.
http://xml.apache.org/fop/fonts.html#embedding

I thought that this paragraph was directed to ttf files only. So I
tried the ttc files. But the results were still the same. Any
characters that are not part of the Base 14 fonts (transformed from
embedded fonts) will not be able to be searched in the pdf output
file.

I know my XML XSL transformation is no problem, since I regularly
transform XML into HTML or SGML. So, I am trying to fix the problem
that occurs between the FO file and the PDF output file.

I am using Windows 2000.

Any suggestions?
Sincerely,
Mike Ferrando
Washington, DC


XML:
elementSolov# 299;/element (space added)


S  R '#' with ' amp;#_'


FO:
fo:inlineSolov amp;#_299;/fo:inline (space added)


S  R ' amp;#_' with '#'


PDF:
Solov#


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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



Re: FOP character mapping problems

2003-04-24 Thread J.Pietschmann
Mike Ferrando wrote:
I thought that this paragraph was directed to ttf files only. So I
tried the ttc files.
TTC files are basically a bunch of TTF fonts lumped together in one
file.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP character mapping problems

2003-04-24 Thread Clay Leeds
FMI: Is that like regular, Bold, Italic, and Bold Italic?

(FMI = For My Information ;-p)

J.Pietschmann wrote:
 TTC files are basically a bunch of TTF fonts lumped together in one
 file.
 
 J.Pietschmann


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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