RE: Where I am on the page?

2002-11-01 Thread Henriksen Niels Kristoffer
Hi,

I experimented with your code, and have to confess that my proposal wasn't
perfectly right: fo:table-omit-footer-at-break seems to apply to a table
like this: The table is always given the fooeter at its end. If is is
nescessary to break the table, this property decides if the footer should
appear also before the break. So, if there is one individual table for each
person, that table would always end with a footer.

I've tried some other things, including having one large table for all
persons, containing small one-person-tables in its table-cell blocks, and
trying to inherit the table-omit-footer-at-break property, but that one
wasn't accepted. None of my experimentation was successful :-(

I also got the "[WARNING] footer could not fit on page, moving last body row
to next page". I interpret this as a signal that fop runs into a conflict of
areas of the sort I imagined on oct. 25th. So I'm afraid we're really
stuck...

- Niels.

-Original Message-
From: Karena Schroven [mailto:[EMAIL PROTECTED]
Sent: 31. oktober 2002 11:20
To: '[EMAIL PROTECTED]'
Subject: AW: Where I am on the page?


Hi Niels,

I tried your idea. But it didn't work :-(
If a table with an address and the footer fit on the page (and it's the last
address on that page), the footer with the rule appears. The next table with
the next address appears on the next page. Because the first table has no
page-break, the footer appears.
If the last item of an address would be the last thing on the page, I get
this message: [WARNING] footer could not fit on page, moving last body row
to next page
But the last row did not move to the next page, only the footer will appear
as the first thing on the page. But the message tells something different.
Is this a bug? Or did I something wrong?

If this all will not work, I was thinking about playing around with
keep-togethers, so that it will never happen that a rule will be the first
or last thing on a page.

Thanks, Karena

Here is my code:

















































    
    




-Ursprüngliche Nachricht-
Von: Henriksen Niels Kristoffer [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 31. Oktober 2002 09:41
An: '[EMAIL PROTECTED]'
Betreff: RE: Where I am on the page?


Hi Karena and all,

after my lengthy theoretical reply last week, I've realized, that of course
we need to be able to allocate areas in a conditional way. We just cannot do
it by ourselves, but have to do with the features of the XSL-Recommendation
(or with what FOP can do), which after all is pretty rich.

This is my idea: Put your persons into tables with one column. Use one
fo:table cell for name, one for street &c. Use the fo:table-footer or
fo:table-header element with this table. fo:table has a
table-omit-header-at-break and a table-omit-footer-at-break property, the
function of which is almost explained by their names. The header or footer
could then contain your rule and be controlled by upcoming page-breaks.

I'll be happy to know if you succeed.

- Niels.

-Original Message-
From: Karena Schroven [mailto:[EMAIL PROTECTED]
Sent: 16. oktober 2002 10:52
To: '[EMAIL PROTECTED]'
Subject: AW: Where I am on the page?


Guess I haven't explained my problem the right way. It doesn't matter if the
addresses are splitted. The example shows how it looks correct (no line
after the seco

Can FOP tell Acrobat Reader about wanted orientation?

2002-06-20 Thread Henriksen Niels Kristoffer
Hi foppers!

I'm using reports in the PDF format using an XSL-stylesheet on an XML-souce,
using FOP-0.20.3.

I will need to control the orientation of the output - for some reports I
need portrait orientation, for others I need landscape. My current problem
is with landscape.

In my style sheet, I try to control this by setting page-width="297mm"
page-height="210mm". FOP runs fine from a command line and my Adobe Acrobat
Reader 5.0 displays the result in landscape. The 
tag is include below.

However, to get the thing printed right, I currently have to MANUALLY set
"Copies and Adjustment" radio buttons in the Adobe Acrobat Reader 5.0 print
pop-up as follows

"Shrink oversized pages to paper size" CHECKED
"Expand small pages to paper size" NOT CHECKED
"Auto-rotate and center pages" NOT CHECKED

Thsi is higly inconvenient for our end useres.

(Also I must set paper orientation to landscape in the printer properties,
but I recognize that this has nothing to do with FOP).

My question: assuming, that "Copies and Adjustment" settings are part of the
Acrobat Reader's settings for that document, is there any way to set these
settings in the style sheet and getting FOP to tell Acrobat Reader about it?

Or, more general, what are the possibilities with FOP to control page
orientation in the resulting PDF?

Any suggestions are warmly welcomed

Kind regards

Niels K. Henriksen.































RE: Learning needeed

2002-05-28 Thread Henriksen Niels Kristoffer



Ramon,
 
you 
should also consider spending a while with http://www.ibiblio.org/xml/books/bible2 
This site offers to sample chapters which I - just another beginner - found 
quite useful. They cover XSL transformations and XSL Formatting Objects in 
turn.
 
Kind 
regards - Niels.

  -Original Message-From: Ramon Maria Gallart 
  [mailto:[EMAIL PROTECTED]Sent: 27. maj 2002 
  17:03To: [EMAIL PROTECTED]Subject: Learning 
  needeed
      
  Hi all! I want to learn how to use FOP well and all the relatied technology 
  behind it (from xml to xsl to fo, etc...). Does anyone of you know where can i 
  find practical examples on how to create documents using xml, transform'em 
  with xsl and then create pdfs from them? I've been looking in the apache's web 
  but the examples i've found there where not clear for me.
   
      Lots of thanks.
   
      Ramon.