Balancing columns in a 2 column region

2003-06-06 Thread Illiano, Vincent
Hi All,

The main flow of my xsl:fo document has a column-count=2.  By using the
attribute span="none" or span="all" on fo:block's in my document, I can make
the block area use or not use the 2 columns.  So by toggling that span
attribute, I can get output that looks either like:

(span="all")
xxx
xxx
xxx
xxx
xxx

or:

(span="none")
xxx xxx
xxx xxx
xxx

The question I have concerns the balancing of the columns in the span="none"
case.  I've noticed that fop always puts about 2x as much data into the
first column as the second.  I'd like the balancing to be closer to 1-1.  Is
that possible?  Is there an attribute that can be set on the flow?  Any
guidance on this would be greatly appreciated!  Thanks, -V

Vincent Illiano
Senior Programmer/Analyst
Duke University Heart Center


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



RE: last page, full page

2003-03-28 Thread Illiano, Vincent
Hi Clay,

My watermark appears on every page.  On the last page of output it gets
chopped off at the point where there is no more underlying text.  I saw
someone suggest using markers as a solution.  Does anyone know how I would
use markers to solve this problem?  -V

Vincent Illiano
Senior Programmer/Analyst
Duke University Heart Center

> --
> From: Clay Leeds[SMTP:[EMAIL PROTECTED]
> Reply To: [EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 4:07 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: last page, full page
> 
> I required a full-page for my last page, however it did not have any of 
> the "flow" from my main document. Instead, it was a disclaimer page I 
> needed to have on its own page. My solution was to create another 
> simple-page-master. I don't know how you would go about making your flow 
> go to this page, though. If I recall, there was a FAQ item that relates 
> somewhat to this, although I don't know if it resolves your issue:
> 
> http://xml.apache.org/fop/faq.html#pdf_watermark
> 
> Hope this helps!
> 
> Illiano, Vincent wrote:
> > Hi Derrick,
> > 
> > I've been plowing through the fop-user mailing list to see what
> > tricks/issues I can learn.  I have the same problem you described in
> this
> > email.  Did you ever find a suitable solution to it?  If so, would you
> be so
> > kind as to tell me how you did it?
> > 
> > My background image is a "draft" watermark.  But on the last page if the
> > page isn't complete full, the "draft" gets chopped off.
> > 
> > Thanks!  -V
> > 
> > Vincent Illiano
> > Senior Programmer/Analyst
> > Duke University Heart Center
> > 
> > 
> >>--
> >>From:   Koes, Derrick[SMTP:[EMAIL PROTECTED]
> >>Reply To:   [EMAIL PROTECTED]
> >>Sent:   Friday, March 07, 2003 3:37 PM
> >>To: '[EMAIL PROTECTED]'
> >>Subject:last page, full page
> >>
> >>
> >>1.  Is there anyway to ensure the last page of my rendered PDF document
> is
> >>a
> >>"full" page so that my background-image is seen in its entirety?
> >>
> >>2.  Is there anyway I can guarantee a block is the next item, moving up
> >>the
> >>page, from the footer, even if it means it will be on a page by itself?
> >>
> >>Thanks,
> >>Derrick
> 
> 
> -- 
> 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]
> 

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



RE: last page, full page

2003-03-28 Thread Illiano, Vincent
Hi Derrick,

I've been plowing through the fop-user mailing list to see what
tricks/issues I can learn.  I have the same problem you described in this
email.  Did you ever find a suitable solution to it?  If so, would you be so
kind as to tell me how you did it?

My background image is a "draft" watermark.  But on the last page if the
page isn't complete full, the "draft" gets chopped off.

Thanks!  -V

Vincent Illiano
Senior Programmer/Analyst
Duke University Heart Center

> --
> From: Koes, Derrick[SMTP:[EMAIL PROTECTED]
> Reply To: [EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 3:37 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  last page, full page
> 
> 
> 1.  Is there anyway to ensure the last page of my rendered PDF document is
> a
> "full" page so that my background-image is seen in its entirety?
> 
> 2.  Is there anyway I can guarantee a block is the next item, moving up
> the
> page, from the footer, even if it means it will be on a page by itself?
> 
> Thanks,
> Derrick
> 
> 
> This electronic transmission is strictly confidential to Smith & Nephew
> and
> intended solely for the addressee.  It may contain information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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: Generating ASCII output

2003-02-07 Thread Illiano, Vincent
Thanks for the tip.  I may indeed end up doing what you suggest - use Xalan
directly to get text output.  But before I take that plunge, some have
mentioned tweaking textCPI and textLPI.  How is this done?  In the
stylesheet?  If it requires modifying the FOP Java code, I'd rather not ;)

Thanks again, -Vincent


> --
> From: Chris Bowditch[SMTP:[EMAIL PROTECTED]
> Reply To: [EMAIL PROTECTED]
> Sent: Friday, February 07, 2003 12:16 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Generating ASCII output
> 
> Hi Vincent,
> 
> in general terms an XSL Formatting engine is the wrong tool for generating
> 
> Character Text output.
> 
> A XSL Formatting engine works with precise coordinates for formatting 
> objects, i.e. the text and when this is translated by a Text Renderer, the
> 
> coordinates must be rounded to the nearest line or character offset. Hence
> 
> why some lines sit ontop of one another and spacing between characters is 
> not right.
> 
> I recommend you write an XSL stylesheet that processes your XML directly
> to 
> Text. Theres no need for an XSL Formatter to work out pre-cise coordinates
> 
> for your text, only to convert these coordinates back to a character
> driven 
> textual output.
> 
> 
> >From: "Illiano, Vincent" <[EMAIL PROTECTED]>
> >
> >Hi List,
> >
> >I've built a document-generation system around FOP to create both PDF and
> >ASCII text documents.  To create the ASCII text output file, I use the
> -txt
> >command line argument to FOP.  I have a couple of small problems with the
> >ASCII text output.  Every 30 lines or so in the generated output file, a
> >line of output is written over the previous output line. The next line,
> >instead of being written on a new line, is written again over the
> previous
> >line.  Visually, the 2nd line overlays the previous line.  Characters on 
> >the
> >previous line will show in the output if the next line contains a space
> at
> >that character position.
> >
> >Another problem I'm seeing is that every so often, there is no space 
> >between
> >words in the text output.
> >
> >So I'm wondering if I've defined my document correctly for ASCII output.
> 
> >Am
> >I using the wrong font-family, font-size, line-height?  There is are my
> >current settings:
> >
> > >line-height="10.4pt">
> >
> >
> >Thanks for any information on this.  -Vincent
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
> 
> 
> -
> 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]



Generating ASCII output

2003-02-07 Thread Illiano, Vincent
Hi List,

I've built a document-generation system around FOP to create both PDF and
ASCII text documents.  To create the ASCII text output file, I use the -txt
command line argument to FOP.  I have a couple of small problems with the
ASCII text output.  Every 30 lines or so in the generated output file, a
line of output is written over the previous output line. The next line,
instead of being written on a new line, is written again over the previous
line.  Visually, the 2nd line overlays the previous line.  Characters on the
previous line will show in the output if the next line contains a space at
that character position.

Another problem I'm seeing is that every so often, there is no space between
words in the text output.

So I'm wondering if I've defined my document correctly for ASCII output.  Am
I using the wrong font-family, font-size, line-height?  There is are my
current settings:
 
 


Thanks for any information on this.  -Vincent

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



RE: Writing to a file already open in another application

2002-11-27 Thread Illiano, Vincent
Is Acrobat OLE-Automatable?  My controlling application is an MFC app, so I
could easily establish an OLE connection to Acrobat if that's possible.
Thank, -Vincent

> --
> From: Jeremias Maerki[SMTP:[EMAIL PROTECTED]
> Reply To: [EMAIL PROTECTED]
> Sent: Wednesday, November 27, 2002 9:25 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Writing to a file already open in another application
> 
> You can't because Acrobat has an exclusive lock on the file. There's no
> way to release that lock other than to tell Acrobat to close the file
> either by closing the window with the mouse or by closing the file over
> OLE automation (not an easy task in Java).
> 
> By the way, GhostScript doesn't lock the file when viewing it. It even
> reloads the file automatically when it's regenerated.
> 
> On 27.11.2002 15:14:11 Illiano, Vincent wrote:
> > Hi Fellow FOPers,
> > 
> > I've run into a problem when generating pdf's with FOP.  When the target
> pdf
> > file is already open in Acrobat, or any other application for that
> matter,
> > FOP cannot regenerate the pdf file.  I see the following message in the
> FOP
> > console window (running fop.bat):
> > 
> > java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
> > access the file because it is being used by another process)
> > at java.io.FileOutputStream.open(Native Method)
> > ...
> > 
> > Does anybody know of a way to get FOP and Java to rewrite the file even
> > though it's open in another app?  Thanks, -Vincent
> 
> 
> 
> Jeremias Maerki
> 
> 
> -
> 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]



Writing to a file already open in another application

2002-11-27 Thread Illiano, Vincent
Hi Fellow FOPers,

I've run into a problem when generating pdf's with FOP.  When the target pdf
file is already open in Acrobat, or any other application for that matter,
FOP cannot regenerate the pdf file.  I see the following message in the FOP
console window (running fop.bat):

java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
access the file because it is being used by another process)
at java.io.FileOutputStream.open(Native Method)
...

Does anybody know of a way to get FOP and Java to rewrite the file even
though it's open in another app?  Thanks, -Vincent

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