RE: page-number-citation and formatting
We had the same problem you had, Phil. I admit, the output is not too representable due to this (among other) problems of FOP. Another problem would be that, if you use a filler of type ., it assumes a fix width. It does not seem to be able to fill out the variable space between the text of a TOC heading and the corresponding page number, like is shown in the following example: Long text long text . 12 Short text .. 18 Matthias -Original Message- From: Philip Harling [mailto:[EMAIL PROTECTED]]On Behalf Of Phillip Harling Sent: Friday, December 07, 2001 6:11 PM To: [EMAIL PROTECTED] Subject: page-number-citation and formatting I'm having a small problem when using fo:page-number-citation/ and formatting. I am generating a table of contents using a table, and wish to right align the page numbers. If the table of contents appears at the beginning of the document, the numbers don't get right-aligned, but if the table of contents appears at the end of the document then they get aligned correctly. What appears to be happening is that if a forward reference is made to a page citation then fop doesn't know how big the page number will be and doesn't allocate any area for it. If the page number is known, then the space it allocates is known and correct alignment can occur. I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems to bear up to the analysis. Has anyone else experienced this problem and if so, do you have a work-around? Phil. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
page-number-citation and formatting
I'm having a small problem when using fo:page-number-citation/ and formatting. I am generating a table of contents using a table, and wish to right align the page numbers. If the table of contents appears at the beginning of the document, the numbers don't get right-aligned, but if the table of contents appears at the end of the document then they get aligned correctly. What appears to be happening is that if a forward reference is made to a page citation then fop doesn't know how big the page number will be and doesn't allocate any area for it. If the page number is known, then the space it allocates is known and correct alignment can occur. I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems to bear up to the analysis. Has anyone else experienced this problem and if so, do you have a work-around? Phil. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: page-number-citation and formatting
Hi Phillip, I'm trying to generate a contents page myself, but since I'm quite new to FOP I have no idea as to how to make a reference to page numbers of pages in the document. It seams like you've solved this problem and I was wondering if you would be willing to share this information, or point me in the direction of a web page (or some other resource) that discusses this kind of thing. Here's what I'm trying to do in a bit more detail. I'm creating a PDF document from a FOP template which is dynamically modified with the data from the database. The reason why I can't just create a static content page is because of the dynamic content (which needs a variable number of pages). What's the best way to handle this kind of a problem? Thanks in advance, Vladimir -Original Message- From: Phillip Harling [mailto:[EMAIL PROTECTED]] Sent: Saturday, 8 December 2001 6:11 a.m. To: [EMAIL PROTECTED] Subject:page-number-citation and formatting I'm having a small problem when using fo:page-number-citation/ and formatting. I am generating a table of contents using a table, and wish to right align the page numbers. If the table of contents appears at the beginning of the document, the numbers don't get right-aligned, but if the table of contents appears at the end of the document then they get aligned correctly. What appears to be happening is that if a forward reference is made to a page citation then fop doesn't know how big the page number will be and doesn't allocate any area for it. If the page number is known, then the space it allocates is known and correct alignment can occur. I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems to bear up to the analysis. Has anyone else experienced this problem and if so, do you have a work-around? Phil. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]