Re: force-page-count, blank page and text in this blank page

2002-04-11 Thread John Austin
On Wednesday 10 April 2002 05:00, you wrote:
 Hy

 I'm on a document composed with diferent page sequences.
 Those sequences are put together to realise a final document.
 So I have to generate sequences with a force-count-page to have an
 even number of pages in each sequence.
 The problem is that when a page is forced it appears without text in,
 and I would like this page to contain a text like :
 normal blank page .

 How can I do such a thing ?

This is discussed in The XSL Companion by Neil Bradley; 
http://www.awl.com/cseng pup 2000. Chapter 17: XSL.

You can also get the gist of this from Elliot rusty Harold's XML book
or from the tutorials on the www.renderx.com, antennahouse.com or from 
IBM.com's developerworks or alphaworks sites.

Specifically see pp 150-155. 

root ...
  layout-master-set
simple-page-master master-name=first-page
  !-- TEMPLATE 1 --
/simple-page-master
  ... more s-p-m's for right-page, left-page and blank-page 
  ...

page-sequence-master master-name=ChapterSequence
  repeatable-page-master-alternatives
conditional-page-master-reference
page-position=first 
master-reference='first-page
   ... blank, odd and even pages omitted

  /repeatable- ...
/page-seq...
  /layout-master-set


  page-sequence master-reference=ChapterSequence

... repeat static content blocks and a single flow/ object


  /page-sequence
root


Help! Problem with Fop in Tomcat

2002-04-11 Thread Marina PĂ©rel




Hi!

I developped a Fop service via a service web (with 
Apache SOAP) in Windows Nt : it works good. 
But, now i'm trying to set the Fop Service in Linux 
machine (RedHat7.2).
I have this error :

 Genarated fault :
 Fault Code = 
SOAP-ENV:Server
  Fault String 
= Exception from service object :
  
  
org/apache/avalon/framework/loggable/Loggable

A Hello's service works, so my web service is 
fine and it's a Fop problem.
My Tomcat's classpath is : 
/tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/avalon-framework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/logkit-1.0.1.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib/soap.jar:/tools/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.0.1/activation.jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WEB-INF/classes/:/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/bin/bootstrap.jar
(my .jar files are in the Tomcat lib 
directory)

Mycodefor the logger 
: Logger log = null; if(log == null) 
{ Hierarchy hierarchy = 
Hierarchy.getDefaultHierarchy(); log = 
hierarchy.getLoggerFor("fop"); 
log.setPriority(Priority.WARN); 
}driver.setLogger(log);

Does anybody know what's wrong? All ideas are 
welcome!


Thanks to all who can help me.
Marina


print dialog

2002-04-11 Thread Henrik Holle
hi,

at the moment i am printing directly from my application using fop
printrenderer, but now i need a printdialog
to select a specific printer ? i looked at PreviewDialog.java, but without
any idea howto solve my problem?

any ideas?


thx

henrik



subscript and symbol font

2002-04-11 Thread Henrik Holle
why is this not possible?


fo:inline  vertical-align=sub font-size=4pt
fo:inline  font-family=Symbol  font-size=7pt#x03A9;/fo:inline
/fo:inline

this character ist not subscript : #x03A9; 


thx


henrik


RE: subscript and symbol font

2002-04-11 Thread Tony McNicholl
henrik

Why are you using two different font-size attibutes on the same object? Try 
deleting the second one (font-size=7pt).

Tony

-Original Message-
From:   Henrik Holle [SMTP:[EMAIL PROTECTED]
Sent:   11 April 2002 10:44
To: [EMAIL PROTECTED]
Subject:subscript and symbol font

why is this not possible?


fo:inline  vertical-align=sub font-size=4pt
fo:inline  font-family=Symbol  font-size=7pt#x03A9;/fo:inline
/fo:inline

this character ist not subscript : #x03A9; 


thx


henrik

application/ms-tnef

Re: how to hide page numbers on empty pages

2002-04-11 Thread Rodolphe VAGNER
I can't really remember if it was that but I succed in doing such a thing ;
you may try this ( a beat complex) :
use a page-sequence-master with a simple-page-master for blank pages
referenced in a conditionnal-page-master-reference.(so you have to define a
simple-page-master !).
In your page sequence use force-count-page=end-on-even;
put your first static-content the stactic-countent of your blank
simple-page-master ;

fo:simple-page-master master-name=right
...
  fo:region-body  margin-top=15.4mm
margin-bottom=25mm /
  fo:region-before  extent=20mm/
  fo:region-after  extent=25mm/
/fo:simple-page-master

fo:simple-page-master  master-name=left
...
  fo:region-body  margin-top=15.4mm
margin-bottom=25mm/
  fo:region-before  extent=20mm/
  fo:region-after  extent=25mm/
/fo:simple-page-master

fo:simple-page-master  master-name=blank
...
 fo:region-body  region-name=blank-body
   margin-top=15.4mm
   margin-bottom=25mm/
 fo:region-before region-name=blank-before
   extent=170mm/
 fo:region-after region-name=blank-after
   extent=25mm/
/fo:simple-page-master

...
fo:page-sequence-master master-name=seq1
 fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference master-name=blank
blank-or-not-blank=blank/
fo:conditional-page-master-reference master-name=right
odd-or-even=odd/
  fo:conditional-page-master-reference master-name=left
odd-or-even=even/
 /fo:repeatable-page-master-alternatives
/fo:page-sequence-master
...


 fo:page-sequence master-name=seq1
   force-page-count=end-on-even
...

  !--static--
  fo:static-content flow-name=blank-before
  /fo:static-content

fo:static-content flow-name=blank-after
  /fo:static-content


- Original Message -
From: Michal Kwiatek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 3:01 PM
Subject: HELP: how to hide page numbers on empty pages


 Hi there!

 I print my document on both sides of a page.  However, I want chapters to
 start on even pages. I achieved this by using break-before=odd-page
 attribute.
 Fop simply adds an empty page where necessary. Buthow can I make fop hide
 page numbers on those autatically generated empty pages?

 Thanks in advance,
 Michal Kwiatek




external-graphic SVG problem ...

2002-04-11 Thread RAYMOND Romain

Is there a problem to fix a SVG heigth in an external-graphic 
I cannot dot it.


thanks.


Viewing generated PDF without the toolbar

2002-04-11 Thread Marco Fabbri
Hi all,
FOP is great and finally we find a solution to produce PDF reports from
Lotus Domino.
But...
Now I need to disable the PDF print for browser and I found an idea about it
on a adobe forum.
Using Javascript I can disable the toolbar I see on Explorer if in Acrobat I
use a JavaScript folder with some commands.
But this can be done only in the production phase.
How can I produce a PDF file with this capability on FOP environment?

Thanks a lot in advance

Marco Fabbri



document properties

2002-04-11 Thread Chris Faulkner
Hello

Is there anyway to set document author, creation date and so on with FOP in the 
production of the documents ? I can't see it anything in the spec and FO is all 
about formatting objects so I suppose not. But f 
anyone knows of a way to do it or other software (hopefully open source) which 
will do it after the event, that would be very useful.

In Acrobat 4 reader (File-Document Info-Security), there are other 
document-wide properties that it would be nice to be able to set, for setting 
passwords and so on.  Can these be set ?

Thanks

Chris