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 Equatech / Toufic DIAB <t....@equa-tech.com> on 2008/12/19 07:33:07 UTC

XSL -> FOP DOC (Word) - Zoom

Hello,

 

I am generating a RTF Document (.doc) by using FOP and an XSL.

 

The generated  document has a default zoom of 100%.



 

Can I change this zoom, and make the document always open with a 150% zoom ?

If yes, please tell me what I have to add to my code.

Here is a piece of the XSL used to generate the .doc :

 

 

<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

            <xsl:output method="xml" indent="yes"/>

            <xsl:template match="/">

                        <fo:root>

                                    <fo:layout-master-set>

                                                <fo:simple-page-master
master-name="A4-portrait" page-height="29.7cm" page-width="21.0cm"
margin="2cm">

 
<fo:region-body/>

                                                </fo:simple-page-master>

                                    </fo:layout-master-set>

                                    <fo:page-sequence
master-reference="A4-portrait">

                                                <xsl:for-each
select="//Produit">

                                                            <fo:flow
flow-name="xsl-region-body">

 

 

 

Toufic DIAB

Equatech (Filiale IT d'Equadis SA)

* :  +41228190746

* : t.diab@equa-tech.com

 

 


Re: XSL -> FOP DOC (Word) - Zoom

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This is not currently possible. First, we'd have to figure out whether
that's possible in RTF at all (I haven't checked) and then it would have
to be implemented (with a FO extension).

On 19.12.2008 07:33:07 Equatech / Toufic DIAB wrote:
> Hello,
> 
>  
> 
> I am generating a RTF Document (.doc) by using FOP and an XSL.
> 
>  
> 
> The generated  document has a default zoom of 100%.
> 
> 
> 
>  
> 
> Can I change this zoom, and make the document always open with a 150% zoom ?
> 
> If yes, please tell me what I have to add to my code.
> 
> Here is a piece of the XSL used to generate the .doc :
> 
>  
> 
>  
> 
> <?xml version="1.0" encoding="utf-8"?>
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 
>             <xsl:output method="xml" indent="yes"/>
> 
>             <xsl:template match="/">
> 
>                         <fo:root>
> 
>                                     <fo:layout-master-set>
> 
>                                                 <fo:simple-page-master
> master-name="A4-portrait" page-height="29.7cm" page-width="21.0cm"
> margin="2cm">
> 
>  
> <fo:region-body/>
> 
>                                                 </fo:simple-page-master>
> 
>                                     </fo:layout-master-set>
> 
>                                     <fo:page-sequence
> master-reference="A4-portrait">
> 
>                                                 <xsl:for-each
> select="//Produit">
> 
>                                                             <fo:flow
> flow-name="xsl-region-body">
> 
>  
> 
>  
> 
>  
> 
> Toufic DIAB
> 
> Equatech (Filiale IT d'Equadis SA)
> 
> * :  +41228190746
> 
> * : t.diab@equa-tech.com
> 
>  
> 
>  
> 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org