You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Michal Kwiatek <mi...@BiznesPartner.pl> on 2002/04/11 15:01:27 UTC

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


Re: external-graphic SVG problem ...

Posted by "J.Pietschmann" <j3...@yahoo.de>.
RAYMOND Romain wrote:
> Is there a problem to fix a SVG heigth in an external-graphic ????
> I cannot dot it.

Can you post a shoret, self contained sample which
demonstrates the problem?

J.Pietschmann





Re: Viewing generated PDF without the toolbar

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Marco Fabbri wrote:
> 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?

Am i right you want to produce a PDF which can't be
printed, i.e. with printing disabled?

There is currently no possibility to do this with
FOP directly. You can postprocess the result from
FOP with some other software. There are several
possibilities, a pure Java, on-the-fly in-memory
solutiont should be possible with iText:
   http://www.lowagie.com/iText
For further hint, look here:
  http://www.lowagie.com/iText/tutorial/ch01.html#readingPDF

J.Pietschmann





Viewing generated PDF without the toolbar

Posted by Marco Fabbri <mf...@racine.ra.it>.
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


Re: HELP! grahics - scalling down, not up

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Michal Kwiatek wrote:
> How do you prevent fop from scaling graphics up? Some of my picture are too
> big and I need them scaled down, but others are alright and I want fop to
> leave them alone.

Can you post a shoret, self contained sample which
demonstrates the problem?

J.Pietschmann




HELP! grahics - scalling down, not up

Posted by Michal Kwiatek <mi...@BiznesPartner.pl>.
Hi!

How do you prevent fop from scaling graphics up? Some of my picture are too
big and I need them scaled down, but others are alright and I want fop to
leave them alone.
Any ideas?


Michal Kwiatek


external-graphic SVG problem ...

Posted by RAYMOND Romain <ro...@c-s.fr>.
Is there a problem to fix a SVG heigth in an external-graphic ????
I cannot dot it.


thanks.

Re: how to hide page numbers on empty pages

Posted by Rodolphe VAGNER <ro...@eurodoc-sofilog.com>.
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" <mi...@BiznesPartner.pl>
To: <fo...@xml.apache.org>
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
>