Re: page-position=last vs. conditional blocks

2002-12-01 Thread J.Pietschmann
Nwilan Glirt wrote:
Now that I discovered that page-position=last is not implemented in 
FOP, I am looking for alternative ways to produce first, middle and 
last specific pages. Is there any way to do some conditional stuff on 
blocks such as testing if we are currently writing the last page?
Askinig for page-position=last seems to be thequestion of
the week.
If creation time is uncritical, a two pass solution can provide
this. The generated FO uses a repeatable--page-master-reference
or a repeatable-page-master-alternatives for the main document body,
in the first pass the maximum-repeats is unbounded (very large),
in the second pass it is restricted to the relevant page count so
that the next page master can kick in for the last page.
In the XSLT, declare a parameter for the page count and something
like this:
  xsl:param name=page-count/
  xsl:template name=generate-page-master
fo:page-sequence-master master-name=all
  !-- page master for first page --
  fo:single-page-master-reference master-reference=first/
  !-- page master for rest --
  fo:repeatable--page-master-reference master-reference=rest
maximum-repeats={$page-count}/
  !-- page master for last, unused in first pass (no harm) --
  fo:repeatable--page-master-reference master-reference=last/
/fo:page-sequence-master
  /xsl:template
There has been sample Java code published on this list for automating
the whole process:
  http://marc.theaimsgroup.com/?l=fop-userm=102002702026609w=2
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table footers and headers

2002-12-01 Thread J.Pietschmann
Nwilan Glirt wrote:
That is bad news for me... I am beginning to loose faith in FO being a 
practical solution for build business forms like invoices from XML. Has 
anyone actually succeeded doing this?
Yes.
What I really needed would be something like table-ONLY-footer-at-break 
and table-ONLY-header-at-break, but I know that this kind of request is 
beyond the scope of this mailing list.
The usual trick is to use markers instead of headers+footers.
Roughly for the footers: every table first cell of a row except
in the last row has a tab-footer marker with the desired text.
The first cell in the last row has an empty tab-footer marker.
The static content for the region-after retrieves the last.
tab-footer marker in a way that looks like is was part of the
table (means preciese measurements). The disadvantage is a bit
of additional space between the page body text and the footer
on pages where no conditional pseudo-table-footer is printed.
Working demo FO code
 http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PDF Encryption and Access rights

2002-12-01 Thread J.Pietschmann
Trevor Vaughan wrote:
Are there any tips on how to encrypt and/or add access rights to the pdf 
generated by fop?
See
 http://marc.theaimsgroup.com/?l=fop-devm=102002975028427w=2
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Odd, Even Last-odd Problem

2002-12-01 Thread J.Pietschmann
Clay Leeds wrote:
Actually, the new problem (referenced in a newer e-mail) is that I have 
my system set to end-on-even but rather than using the EVEN page 
simple-page-master stuff for the LAST page, FOP outputs another page 
using the ODD simple-page-master, and numbers it page 6 of 5 in the 
region-before.
Known bug, should be fixed in CVS.
J.Pietschmann

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


Re[2]: error caused by double.sided=1

2002-12-01 Thread Tobias Grimm
Hi Togan,

Sunday, December 01, 2002, 6:40:02 PM, you wrote:

TM Which version of the Docbook XSL stylesheets as with 1.58.1 is the
TM latest and it does not do that

I'm using 1.58.1 too... the problem seems to appear only, when a
chapter spans more than one page. I've done some stylesheet
customization (see at the end of this mail). But I don't think this
causes the trouble.

TM try to get the  fop-0_20_2-maintain release which is 0.20.5

This works. Thanks a lot!

But there's still a small bug. Empty pages (i.e. inserted to make
chapters start on odd page numbers) have the wrong margins. The
binding side should always have a larger margin. Although, the page
numbers are printed always on the correct side.

I'm not sure... is this a problem with the xsl stylesheets or is this
done by FOP?

bye,

Tobias


xsl:param name=double.sided1/xsl:param

xsl:param name=generate.toc
book  toc,title
book/chapter  toc,title
/xsl:param

xsl:template match=chapter/*[1]
  xsl:call-template name=toc.separator/
  xsl:apply-imports/
/xsl:template

xsl:template name=toc.separator
  fo:block break-before=odd-page/
/xsl:template


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



RE: Visuaal Basic

2002-12-01 Thread Calero, Roberto
Title: RE: Visuaal Basic





VBScript and Visual Basic are two separate things and for executing a process from VB you do not need Windows Scripting whatsoever. VB gives you the ability to execute a process thru a shell as any other programming language does.

The code would look as the following:


 h = Shell(COMMAND.COM /C pathname)


Where pathname is the full path to the file you want to execute (in your case it might be a batch file)




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 30 November 2002 5:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Visuaal Basic



Hi Matthew


Using the Windows Scripting Host 5.6 and VBScript you are able to
call any program through the shell (WScript.Shell).


Refer to http://msdn.microsoft.com/scripting especially
http://msdn.microsoft.com/library/default.asp?url="">
t56/html/wslrfexecmethod.asp for further information.


Drop a message to the list if you have any problems to implement it
or further questions.


Regards, 


Chris


 Original Message 
Von: [EMAIL PROTECTED]
An: [EMAIL PROTECTED], 
Betreff: Re: Visuaal Basic
Datum: Fri, 29 Nov 2002 17:37:01 -


Can I embed the FOP java class in a VB/VB Script program
Matthew Lancashire
IT Project Manager
Initial Electronic Security Ltd
Tel.: 01254 688555
FAX: 01254 267552



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





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



Re: AWTRenderer/progressListener

2002-12-01 Thread Oleg Tkachenko
Alexander Koppelhuber wrote:
Q1:
AWTRenderer does not call its progressListeners methods. 
So I guess that this feature is no implemented yet.
Will it be included in the next release, or do I
have to rely on the logging messages (because its not 
part of the Renderer interface anyway)? Are the logging
messages the only way to get information about the
progress?
Yes, you are right. Progress listener will probably be imlemented only in FOP 
1.0dev. And for a while logger is the only way.

Q2:
I'm using AWTRenderer to produce a preview image
before rendering to a pdf file, because I could not
find a good (and cheap) java pdf viewer. And both,
adobe pdf and jpedal, were not able to load and
display all pdf files correctly. Is there some
other solution to produce preview images?
Opening pdf in a browser?
 I'm not
very satisfied with the rendering quality of the
fonts when using AWTRenderer.
AWT Font-measuring/rendering was improved in cvs, see 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14657.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]