RE: Change page size

2004-02-02 Thread Forest, Sebastien
Title: RE: Change page size





Forest, Sebastien wrote:
 Hi
 I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two 
 differents page size. The document is in 8.5 X 11 inch but when I 
 encounter a special tag in the xml file I need to switch to 11 X 17 
 inch. Is there a way to switch page-master depending on the tag in the xml.


Create a new page-sequence when you encounter the tag thats orders a 
change in page dimensions. Of course, this will cause text after the tag 
to be moved to a new page.


When I encounter the tag I create a new page-sequence but FOP give me an error because the page-sequence must be in the fo:root and not in a fo:block. I'am able to change page-sequence, but only if the tag I'm looking for is at the root. If this tag (graphic in my example) is a child of another tag I didn't find a way to control it.

Exemple:
?xml version=1.0 encoding=UTF-8?
wp
 parapara 1
 parapara 1.1/para
 /para
 parapara 2/para
 parapara 3/para
 graphicgraphic 1/graphic
 parapara 4/para
 graphicgraphic 2/graphic
 graphicgraphic 3/graphic
 parapara 5
 parapara 5.1
 graphicgraphic 4/graphic
 /para
 /para
/wp


Can anyone help me?





Change page size

2004-01-30 Thread Forest, Sebastien
Title: Change page size 





Hi
I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two differents page size. The document is in 8.5 X 11 inch but when I encounter a special tag in the xml file I need to switch to 11 X 17 inch. Is there a way to switch page-master depending on the tag in the xml.

Thanks


Sébastien Forest
Spécialiste, Applications logicielles / Software Application Specialist
Publications techniques / Technical Publications
L-3 MAS (Canada)
J (450) 476-4850
e-mail: [EMAIL PROTECTED]












Last page

2004-01-27 Thread Forest, Sebastien
Title: Last page





Hi!


I want to use the page-position=last in fo:conditional-page-master-reference but it is not implemented yet. Is there a workaround?

Here is my problem:
Suppose I have a document of 6 pages. The last page (page 6) is blank because I have to keep the document even.
On the last not-blank page (page 5) I need to write 5 of 6 in the footer (because the document end with a blank page).

Because I can't use last I thinking about a way to know the current page number and use a xsl:choose in the footer to know if I have to write x of n or just x but I still can't find a way to get the current page number.

I use fop0.20.5rc3a


Thanks


Sébastien Forest
Spécialiste, Applications logicielles / Software Application Specialist
Publications techniques / Technical Publications
L-3 MAS (Canada)
J (450) 476-4850
e-mail: [EMAIL PROTECTED]












Change-bar with FOP

2004-01-14 Thread Forest, Sebastien
Title: Change-bar with FOP





Hi,
Is there a way to add change-bar in XSL-FO.
For now, I did'nt found anything about that on the web
I use FOP 0.20.5rc3a


Can anybody have a solution or the same problem.


thanks


Sébastien Forest
Spécialiste, Applications logicielles / Software Application Specialist
Publications techniques / Technical Publications
L-3 MAS (Canada)
J (450) 476-4850
e-mail: [EMAIL PROTECTED]












RE: Change-bar with FOP

2004-01-14 Thread Forest, Sebastien
Title: RE: Change-bar with FOP





Forest, Sebastien wrote:


 Hi,
 Is there a way to add change-bar in XSL-FO.


I'm sorry but your question is not clear. Can you provide more 
information/rephrase the question?


Chris


Sorry!
I need to add change-bar in a pdf document create with FOP 0.20.5rc3a.
The change-bar is a vertical line in the right, left or both margin to indicate a modification in the document.
The height of this vertical line reflect the number of lines of the modification in the document and this line appear exactly at the level where the modification is in the document. 

It's like the track change functionnality in MS Word or other text processing.


Thanks






RE: Change-bar with FOP

2004-01-14 Thread Forest, Sebastien
Title: RE: Change-bar with FOP





 -Original Message-
 From: Forest, Sebastien [mailto:[EMAIL PROTECTED]]


snip /
 Sorry! I need to add change-bar in a pdf document create with FOP
0.20.5rc3a.
 The change-bar is a vertical line in the right, left or both margin to
indicate
 a modification in the document.
snip /
 It's like the track change functionnality in MS Word or other text
processing.


A modification of the file compared to what exactly? I mean on basis of what
are you going to make the comparison? 


Everytime I found a tag named change in the xml I have to print the change-bar.
The tag change indicate the modification.





RE: Change-bar with FOP

2004-01-14 Thread Forest, Sebastien
Title: RE: Change-bar with FOP





Forest, Sebastien wrote:
 Is there a way to add change-bar in XSL-FO.
 For now, I did'nt found anything about that on the web


The spec doesn't support this out-of-the-box.
A common solution is to use a block border or a table cell
border for this. Unfortunately, there are a few problems
left:
- You can't easily have the bar on the outer side of the page.
 Basically, you have to stick with left or right.
- While it's easy to mark whole paragraphs as changed, marking
 parts of paragraphs is quite complicated, and will result in
 an ugly layout often enough to be an annoyance.
- Overlapping changes in tables or lists are a real challenge.


J.Pietschmann


Thank you all for your help, I really appreciate. 
For now, I think that the only way to do this is with border-left or border-right for block or table-cell but this solution is not flexible enough to do what I need.