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 ni...@polaris.co.in on 2006/02/20 12:17:39 UTC

Help needed for allowing spaces in PDF O/P using fop-0.91beta version






Regards,
Nitin Shrivastava
POLARIS SOFTWARE LAB Ltd.
Indiana Business Center
+91-22-56482255
---------------------------------------------------------------------------------------------------------

"LUCK is what happens when PREPARATION meets OPPORTUNITY"


----- Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM -----
                                                                                                                                       
                      nitin.shrivastava                                                                                                
                                               To:      Jeremias Maerki <de...@jeremias-maerki.ch>                                       
                      02/20/2006 03:31         cc:      nitin.shrivastava@polaris.co.in, vikram.gujar@polaris.co.in                    
                      PM                       Subject: Help needed for allowing spaces in PDF O/P using fop-0.91beta version(Document 
                                               link: nitin.shrivastava)                                                                
                                                                                                                                       



Hi,

With FOP  0.91 beta version I was able to overlapp the data over image.
Now the problem I am facing is w.r.t the space in the XML file which is
getting  ignored in PDF output .

My XML data between tags is as shown below

|-----------------------------------------------------------------------------------------------------------------------------------------------|

|      AAAAAA     BBBBB           CCCCCC          DDDDDD
EEEEEE                  |
|                                                                       |
|     AAAAAA      BBBBB              4000000000000000000000041
            |
|                                            00000
                  |
|-----------------------------------------------------------------------------------------------------------------------------------------------|

My XSL is

<fo:simple-page-master master-name="cover" page-height="1090pt"
page-width="714.78pt" margin-top="0cm" margin-bottom="0cm"
margin-left="0cm" margin-right="0cm">
<fo:region-body margin-top="0cm" margin-bottom="0cm" margin-left="0in"
margin-right="0in"/>
<fo:region-after extent="0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="cover" >
<fo:flow flow-name="xsl-region-body" >
<fo:block-container>
<fo:block  font-family="monospace"  linefeed-treatment="preserve"
white-space-treatment="preserve" white-space-collapse="false" >
<xsl:apply-templates/>
</fo:block>
</fo:block-container>
</fo:flow>

The PDF O/P that I get is


|-----------------------------------------------------------------------------------------------------------------------------------------------|

|AAAAAA     BBBBB           CCCCCC          DDDDDD
EEEEEE                        |
|                                                                       |
|AAAAAA      BBBBB             4000000000000000000000041
            |
|00000
|
|-----------------------------------------------------------------------------------------------------------------------------------------------|

Here the sapce inbetween the data "AAAAA" ,"BBBBB" is maintained in the
output but the intial spaces are getting neglected which
we need to display in the PDF O/P.

Can you please suggest me where am I making the mistake / or I need to
specify any addition property in the flow/block-container/or block
level.
Or any other workaround to maintain these initial spaces at every line as
maintianed in the XML file.

One more query the image which I am trying the display in the PDF output is
not kaing the absolute size as maintained .The XSL for the image is as
below
<xsl:template match="img">
  <fo:block-container position="absolute">
  <fo:block>
  <fo:external-graphic  content-height="348%"  src="{@src}"/>
  </fo:block>
  </fo:block-container>
  </xsl:template>

Here if I dont specify the content-height it take its own default value and
displays the image with diminished size.Where as in FOP 0.20.5
the command   <fo:external-graphic   src="{@src}"/>  used to display the
absoluete size of image ... Please suggest me what can I do to dispaly the
abolute
size as content-height="auto" does not work in 0.91 beta version....





Regards,
Nitin Shrivastava
POLARIS SOFTWARE LAB Ltd.
Indiana Business Center
+91-22-56482255





                                                                                                                                       
                      Jeremias Maerki                                                                                                  
                      <dev@jeremias-ma         To:      nitin.shrivastava@polaris.co.in                                                
                      erki.ch>                 cc:                                                                                     
                                               Subject: Re: Help needed !!!                                                            
                      02/10/2006 03:20                                                                                                 
                      PM                                                                                                               
                                                                                                                                       
                                                                                                                                       




I thought you couldn't use a block-container approach. And as I told you
before fo:float isn't implemented, yet. The latest version of Apache FOP
is 0.91beta (http://xmlgraphics.apache.org/fop/download.html). It has
some improvements over 0.20.5 WRT fo:block-container. But fo:float needs
to be implemented, first.

There are no free alternatives available. Apache FOP is the best open
source XSL-FO implementation. You will have to use a commercial tool if
you can't solve it with Apache FOP or look for an alternative to XSL-FO.

On 10.02.2006 10:33:22 nitin.shrivastava wrote:
>
>
>
>
>
> Hi,
>
> Can you please suggest me is there any new FOP version available with the
> implementation
> of block-container or float to meet my requirement.
> Or please suggest me any free ware available to achieve the same.
>
> Regards,
> Nitin Shrivastava
> POLARIS SOFTWARE LAB Ltd.
> Indiana Business Center
> +91-22-56482255
>
---------------------------------------------------------------------------------------------------------

>
> "LUCK is what happens when PREPARATION meets OPPURTUNITY"
>
>
>
>
>                       Jeremias Maerki
>                       <dev@jeremias-ma         To:
nitin.shrivastava@polaris.co.in
>                       erki.ch>                 cc:
>                                                Subject: Re: Help needed
!!!
>                       02/08/2006 12:40
>                       PM
>
>
>
>
>
>
> If my proposed work-arounds don't work, you can't do it with FOP at the
> moment. You're welcome to help us implement support for fo:float, though.
> But since it's not an easy task you will probably have to switch to
> another (commercial) FO implementation.
>
> On 08.02.2006 06:26:06 nitin.shrivastava wrote:
> >
> >
> >
> >
> >
> > Hi ,
> >
> > I can't use both the options (block-container or in an fo:table ) as it
> > does not fit w,r,t my XML and XSL design.
> >
> > Can you please suggest me any way I can place/overlap image on the data
> > line..
> > Or please tell be do I need to use/shift to any new version of FOP
where
> I
> > can overlap image over data
> > as I do in HTML.???
> >
> >
> > Thanks & Regards,
> > Nitin Shrivastava
> > POLARIS SOFTWARE LAB Ltd.
> > Indiana Business Center
> > +91-22-56482255
> >
> >
> >
> >
> >
> >
>
> >                       Jeremias Maerki
>
> >                       <dev@jeremias-ma         To:
> fop-users@xmlgraphics.apache.org
>
> >                       erki.ch>                 cc:      (bcc:
> nitin.shrivastava/Polaris)
> >                                                Subject: Re: Help needed
> !!!
> >                       02/02/2006 06:31
>
> >                       PM
>
> >
>
> >
>
> >
> >
> >
> >
> > As you can see from the log output and on our compliance page [1],
> > fo:float is not available. Work-arounds include putting the image in an
> > absolutely positioned block-container or in an fo:table (lines in the
> > left cell, image in the right cell).
> >
> > [1] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float
> >
> > On 02.02.2006 10:02:05 nitin.shrivastava wrote:
> > >
> > > Hi ,
> > >
> > > I am trying to create a PDF using the FOP converter ver 0.20.5.By
> passing
> > > an XML and XSL to it.
> > > Now in my XML there is Image in the frist line followed by four empty
> > line
> > > and then data
> > > which is coming from the database.
> > > In my XSL i am using the following code to put the image
> > > <fo:inline>
> > > <fo:block>
> > > <fo:external-graphic   src="{@src}"/>
> > > </fo:block>
> > > </fo:inline>
> > >
> > > Here I am using absolute higth and width of image.
> > > In the output of the PDF I am getting the image pasted as it but the
> four
> > > empty
> > > lines are coming after the image .
> > > I want my image to overlap on these empty line since there is no data
,
> > > even if the data is there I want my image to be placed on the side of
> it.
> > >
> > > i.e.
> > > currently my O/P is coming as :
> > >
> > > Line1 |-----------------------|
> > >       |  IMAGE    |
> > >       |           |
> > >       |           |
> > >       |-----------------------|
> > > Line2
> > > Line3
> > > Line4
> > > Line5
> > >
> > > And I want the O/P as
> > >
> > > Line1 |-----------------------|
> > > Line2 |  IMAGE    |
> > > Line3 |           |
> > > Line4 |           |
> > > Line5 |-----------------------|
> > >
> > >
> > >
> > >
> > > I tried using the float option to allow data on the side of  image
but
> > > it gives me ...
> > >
> > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > [INFO] [2]
> > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > [INFO] [3]
> > > [DEBUG] The element 'fo:float' is not yet implemented.
> >
> >
> > Jeremias Maerki
> >
> >
> >
> >
> >
> > This e-Mail may contain proprietary and confidential information and is
> sent for the intended recipient(s) only.
> > If by an addressing or transmission error this mail has been
misdirected
> to you, you are requested to delete this mail immediately.
> > You are also hereby notified that any use, any form of reproduction,
> dissemination, copying, disclosure, modification,
> > distribution and/or publication of this e-mail message, contents or its
> attachment other than by its intended recipient/s is strictly prohibited.
> >
> > Visit Us at http://www.polaris.co.in
>
>
>
> Jeremias Maerki
>
>
>
>
>
> This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only.
> If by an addressing or transmission error this mail has been misdirected
to you, you are requested to delete this mail immediately.
> You are also hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification,
> distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.
>
> Visit Us at http://www.polaris.co.in



Jeremias Maerki





This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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


Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Absolutely, yes. In FOP it's even the same code for both
external-graphic and instream-foreign-object that figures out the image
sizes. Just leave away the height property.

On 22.02.2006 13:59:57 Tracey Zellmann wrote:
> Thanks for the pattern, Jeremias.
> 
> Would the same apply to instream-foreign-object? What I really want is to 
> specify the width, and let the system determine the height, sufficient to 
> preserve the aspect ratio of the original.
> 
> ----- Original Message ----- 
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <fo...@xmlgraphics.apache.org>
> Cc: <ni...@polaris.co.in>
> Sent: Tuesday, February 21, 2006 2:45 AM
> Subject: Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta 
> version
> 
> 
> > Nitin Shrivastava does not appear to be on the list so I put the mail
> > address in the CC.
> >
> > In addition to Manuel's reply I want to add something to the question
> > further down:
> >
> > If you want to have an image appear in a box of a certain size, use this
> > pattern:
> >
> > <fo:external-graphic width="5cm" height="4cm"
> > content-width="scale-to-fit" content-height="scale-to-fit" src="...."/>


Jeremias Maerki


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


Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

Posted by Tracey Zellmann <tr...@comcast.net>.
Thanks for the pattern, Jeremias.

Would the same apply to instream-foreign-object? What I really want is to 
specify the width, and let the system determine the height, sufficient to 
preserve the aspect ratio of the original.

----- Original Message ----- 
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <fo...@xmlgraphics.apache.org>
Cc: <ni...@polaris.co.in>
Sent: Tuesday, February 21, 2006 2:45 AM
Subject: Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta 
version


> Nitin Shrivastava does not appear to be on the list so I put the mail
> address in the CC.
>
> In addition to Manuel's reply I want to add something to the question
> further down:
>
> If you want to have an image appear in a box of a certain size, use this
> pattern:
>
> <fo:external-graphic width="5cm" height="4cm"
> content-width="scale-to-fit" content-height="scale-to-fit" src="...."/>
>
> 


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


Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Nitin Shrivastava does not appear to be on the list so I put the mail
address in the CC.

In addition to Manuel's reply I want to add something to the question
further down:

If you want to have an image appear in a box of a certain size, use this
pattern:

<fo:external-graphic width="5cm" height="4cm"
content-width="scale-to-fit" content-height="scale-to-fit" src="...."/>

On 20.02.2006 12:54:30 Manuel Mall wrote:
> The white space handling for linefeed-treatment="preserve" is currently 
> not correct for fop trunk. Leading spaces are incorrectly deleted.
> 
> Manuel
> 
> On Monday 20 February 2006 19:17, nitin.shrivastava@polaris.co.in wrote:
> > Regards,
> > Nitin Shrivastava
> > POLARIS SOFTWARE LAB Ltd.
> > Indiana Business Center
> > +91-22-56482255
> > ---------------------------------------------------------------------
> >------------------------------------
> >
> > "LUCK is what happens when PREPARATION meets OPPORTUNITY"
> >
> >
> > ----- Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM
> > -----
> >
> >                       nitin.shrivastava
> >                                                To:      Jeremias
> > Maerki <de...@jeremias-maerki.ch> 02/20/2006 03:31         cc:     
> > nitin.shrivastava@polaris.co.in, vikram.gujar@polaris.co.in PM       
> >                Subject: Help needed for allowing spaces in PDF O/P
> > using fop-0.91beta version(Document link: nitin.shrivastava)
> >
> >
> >
> >
> > Hi,
> >
> > With FOP  0.91 beta version I was able to overlapp the data over
> > image. Now the problem I am facing is w.r.t the space in the XML file
> > which is getting  ignored in PDF output .
> >
> > My XML data between tags is as shown below
> >
> > |--------------------------------------------------------------------
> > |--------------------------------------------------------------------
> > |-------|
> > |
> > |      AAAAAA     BBBBB           CCCCCC          DDDDDD
> >
> > EEEEEE                  |
> >
> > |     AAAAAA      BBBBB              4000000000000000000000041
> > |
> > |                                            00000
> > |
> > |--------------------------------------------------------------------
> > |--------------------------------------------------------------------
> > |-------|
> >
> > My XSL is
> >
> > <fo:simple-page-master master-name="cover" page-height="1090pt"
> > page-width="714.78pt" margin-top="0cm" margin-bottom="0cm"
> > margin-left="0cm" margin-right="0cm">
> > <fo:region-body margin-top="0cm" margin-bottom="0cm"
> > margin-left="0in" margin-right="0in"/>
> > <fo:region-after extent="0cm"/>
> > </fo:simple-page-master>
> > </fo:layout-master-set>
> > <fo:page-sequence master-reference="cover" >
> > <fo:flow flow-name="xsl-region-body" >
> > <fo:block-container>
> > <fo:block  font-family="monospace"  linefeed-treatment="preserve"
> > white-space-treatment="preserve" white-space-collapse="false" >
> > <xsl:apply-templates/>
> > </fo:block>
> > </fo:block-container>
> > </fo:flow>
> >
> > The PDF O/P that I get is
> >
> > |--------------------------------------------------------------------
> > |--------------------------------------------------------------------
> > |-------|
> > |
> > |AAAAAA     BBBBB           CCCCCC          DDDDDD
> >
> > EEEEEE                        |
> >
> > |AAAAAA      BBBBB             4000000000000000000000041
> > |
> > |00000
> > |
> > |--------------------------------------------------------------------
> > |--------------------------------------------------------------------
> > |-------|
> >
> > Here the sapce inbetween the data "AAAAA" ,"BBBBB" is maintained in
> > the output but the intial spaces are getting neglected which
> > we need to display in the PDF O/P.
> >
> > Can you please suggest me where am I making the mistake / or I need
> > to specify any addition property in the flow/block-container/or block
> > level.
> > Or any other workaround to maintain these initial spaces at every
> > line as maintianed in the XML file.
> >
> > One more query the image which I am trying the display in the PDF
> > output is not kaing the absolute size as maintained .The XSL for the
> > image is as below
> > <xsl:template match="img">
> >   <fo:block-container position="absolute">
> >   <fo:block>
> >   <fo:external-graphic  content-height="348%"  src="{@src}"/>
> >   </fo:block>
> >   </fo:block-container>
> >   </xsl:template>
> >
> > Here if I dont specify the content-height it take its own default
> > value and displays the image with diminished size.Where as in FOP
> > 0.20.5 the command   <fo:external-graphic   src="{@src}"/>  used to
> > display the absoluete size of image ... Please suggest me what can I
> > do to dispaly the abolute
> > size as content-height="auto" does not work in 0.91 beta version....
> >
> >
> >
> >
> >
> > Regards,
> > Nitin Shrivastava
> > POLARIS SOFTWARE LAB Ltd.
> > Indiana Business Center
> > +91-22-56482255
> >
> >
> >
> >
> >
> >
> >                       Jeremias Maerki
> >                       <dev@jeremias-ma         To:     
> > nitin.shrivastava@polaris.co.in erki.ch>                 cc:
> >                                                Subject: Re: Help
> > needed !!! 02/10/2006 03:20
> >                       PM
> >
> >
> >
> >
> >
> >
> > I thought you couldn't use a block-container approach. And as I told
> > you before fo:float isn't implemented, yet. The latest version of
> > Apache FOP is 0.91beta
> > (http://xmlgraphics.apache.org/fop/download.html). It has some
> > improvements over 0.20.5 WRT fo:block-container. But fo:float needs
> > to be implemented, first.
> >
> > There are no free alternatives available. Apache FOP is the best open
> > source XSL-FO implementation. You will have to use a commercial tool
> > if you can't solve it with Apache FOP or look for an alternative to
> > XSL-FO.
> >
> > On 10.02.2006 10:33:22 nitin.shrivastava wrote:
> > > Hi,
> > >
> > > Can you please suggest me is there any new FOP version available
> > > with the implementation
> > > of block-container or float to meet my requirement.
> > > Or please suggest me any free ware available to achieve the same.
> > >
> > > Regards,
> > > Nitin Shrivastava
> > > POLARIS SOFTWARE LAB Ltd.
> > > Indiana Business Center
> > > +91-22-56482255
> >
> > ---------------------------------------------------------------------
> >------------------------------------
> >
> > > "LUCK is what happens when PREPARATION meets OPPURTUNITY"
> > >
> > >
> > >
> > >
> > >                       Jeremias Maerki
> > >                       <dev@jeremias-ma         To:
> >
> > nitin.shrivastava@polaris.co.in
> >
> > >                       erki.ch>                 cc:
> > >                                                Subject: Re: Help
> > > needed
> >
> > !!!
> >
> > >                       02/08/2006 12:40
> > >                       PM
> > >
> > >
> > >
> > >
> > >
> > >
> > > If my proposed work-arounds don't work, you can't do it with FOP at
> > > the moment. You're welcome to help us implement support for
> > > fo:float, though. But since it's not an easy task you will probably
> > > have to switch to another (commercial) FO implementation.
> > >
> > > On 08.02.2006 06:26:06 nitin.shrivastava wrote:
> > > > Hi ,
> > > >
> > > > I can't use both the options (block-container or in an fo:table )
> > > > as it does not fit w,r,t my XML and XSL design.
> > > >
> > > > Can you please suggest me any way I can place/overlap image on
> > > > the data line..
> > > > Or please tell be do I need to use/shift to any new version of
> > > > FOP
> >
> > where
> >
> > > I
> > >
> > > > can overlap image over data
> > > > as I do in HTML.???
> > > >
> > > >
> > > > Thanks & Regards,
> > > > Nitin Shrivastava
> > > > POLARIS SOFTWARE LAB Ltd.
> > > > Indiana Business Center
> > > > +91-22-56482255
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >                       Jeremias Maerki
> > > >
> > > >                       <dev@jeremias-ma         To:
> > >
> > > fop-users@xmlgraphics.apache.org
> > >
> > > >                       erki.ch>                 cc:      (bcc:
> > >
> > > nitin.shrivastava/Polaris)
> > >
> > > >                                                Subject: Re: Help
> > > > needed
> > >
> > > !!!
> > >
> > > >                       02/02/2006 06:31
> > > >
> > > >                       PM
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > As you can see from the log output and on our compliance page
> > > > [1], fo:float is not available. Work-arounds include putting the
> > > > image in an absolutely positioned block-container or in an
> > > > fo:table (lines in the left cell, image in the right cell).
> > > >
> > > > [1]
> > > > http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float
> > > >
> > > > On 02.02.2006 10:02:05 nitin.shrivastava wrote:
> > > > > Hi ,
> > > > >
> > > > > I am trying to create a PDF using the FOP converter ver
> > > > > 0.20.5.By
> > >
> > > passing
> > >
> > > > > an XML and XSL to it.
> > > > > Now in my XML there is Image in the frist line followed by four
> > > > > empty
> > > >
> > > > line
> > > >
> > > > > and then data
> > > > > which is coming from the database.
> > > > > In my XSL i am using the following code to put the image
> > > > > <fo:inline>
> > > > > <fo:block>
> > > > > <fo:external-graphic   src="{@src}"/>
> > > > > </fo:block>
> > > > > </fo:inline>
> > > > >
> > > > > Here I am using absolute higth and width of image.
> > > > > In the output of the PDF I am getting the image pasted as it
> > > > > but the
> > >
> > > four
> > >
> > > > > empty
> > > > > lines are coming after the image .
> > > > > I want my image to overlap on these empty line since there is
> > > > > no data
> >
> > ,
> >
> > > > > even if the data is there I want my image to be placed on the
> > > > > side of
> > >
> > > it.
> > >
> > > > > i.e.
> > > > > currently my O/P is coming as :
> > > > >
> > > > > Line1 |-----------------------|
> > > > >
> > > > >       |  IMAGE    |
> > > > >       |
> > > > >       |
> > > > >       |-----------------------|
> > > > >
> > > > > Line2
> > > > > Line3
> > > > > Line4
> > > > > Line5
> > > > >
> > > > > And I want the O/P as
> > > > >
> > > > > Line1 |-----------------------|
> > > > > Line2 |  IMAGE    |
> > > > > Line3 |           |
> > > > > Line4 |           |
> > > > > Line5 |-----------------------|
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > I tried using the float option to allow data on the side of 
> > > > > image
> >
> > but
> >
> > > > > it gives me ...
> > > > >
> > > > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > > > [INFO] [2]
> > > > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > > > [INFO] [3]
> > > > > [DEBUG] The element 'fo:float' is not yet implemented.


Jeremias Maerki


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


Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

Posted by Manuel Mall <mm...@arcus.com.au>.
The white space handling for linefeed-treatment="preserve" is currently 
not correct for fop trunk. Leading spaces are incorrectly deleted.

Manuel

On Monday 20 February 2006 19:17, nitin.shrivastava@polaris.co.in wrote:
> Regards,
> Nitin Shrivastava
> POLARIS SOFTWARE LAB Ltd.
> Indiana Business Center
> +91-22-56482255
> ---------------------------------------------------------------------
>------------------------------------
>
> "LUCK is what happens when PREPARATION meets OPPORTUNITY"
>
>
> ----- Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM
> -----
>
>                       nitin.shrivastava
>                                                To:      Jeremias
> Maerki <de...@jeremias-maerki.ch> 02/20/2006 03:31         cc:     
> nitin.shrivastava@polaris.co.in, vikram.gujar@polaris.co.in PM       
>                Subject: Help needed for allowing spaces in PDF O/P
> using fop-0.91beta version(Document link: nitin.shrivastava)
>
>
>
>
> Hi,
>
> With FOP  0.91 beta version I was able to overlapp the data over
> image. Now the problem I am facing is w.r.t the space in the XML file
> which is getting  ignored in PDF output .
>
> My XML data between tags is as shown below
>
> |--------------------------------------------------------------------
> |--------------------------------------------------------------------
> |-------|
> |
> |      AAAAAA     BBBBB           CCCCCC          DDDDDD
>
> EEEEEE                  |
>
> |     AAAAAA      BBBBB              4000000000000000000000041
> |
> |                                            00000
> |
> |--------------------------------------------------------------------
> |--------------------------------------------------------------------
> |-------|
>
> My XSL is
>
> <fo:simple-page-master master-name="cover" page-height="1090pt"
> page-width="714.78pt" margin-top="0cm" margin-bottom="0cm"
> margin-left="0cm" margin-right="0cm">
> <fo:region-body margin-top="0cm" margin-bottom="0cm"
> margin-left="0in" margin-right="0in"/>
> <fo:region-after extent="0cm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="cover" >
> <fo:flow flow-name="xsl-region-body" >
> <fo:block-container>
> <fo:block  font-family="monospace"  linefeed-treatment="preserve"
> white-space-treatment="preserve" white-space-collapse="false" >
> <xsl:apply-templates/>
> </fo:block>
> </fo:block-container>
> </fo:flow>
>
> The PDF O/P that I get is
>
> |--------------------------------------------------------------------
> |--------------------------------------------------------------------
> |-------|
> |
> |AAAAAA     BBBBB           CCCCCC          DDDDDD
>
> EEEEEE                        |
>
> |AAAAAA      BBBBB             4000000000000000000000041
> |
> |00000
> |
> |--------------------------------------------------------------------
> |--------------------------------------------------------------------
> |-------|
>
> Here the sapce inbetween the data "AAAAA" ,"BBBBB" is maintained in
> the output but the intial spaces are getting neglected which
> we need to display in the PDF O/P.
>
> Can you please suggest me where am I making the mistake / or I need
> to specify any addition property in the flow/block-container/or block
> level.
> Or any other workaround to maintain these initial spaces at every
> line as maintianed in the XML file.
>
> One more query the image which I am trying the display in the PDF
> output is not kaing the absolute size as maintained .The XSL for the
> image is as below
> <xsl:template match="img">
>   <fo:block-container position="absolute">
>   <fo:block>
>   <fo:external-graphic  content-height="348%"  src="{@src}"/>
>   </fo:block>
>   </fo:block-container>
>   </xsl:template>
>
> Here if I dont specify the content-height it take its own default
> value and displays the image with diminished size.Where as in FOP
> 0.20.5 the command   <fo:external-graphic   src="{@src}"/>  used to
> display the absoluete size of image ... Please suggest me what can I
> do to dispaly the abolute
> size as content-height="auto" does not work in 0.91 beta version....
>
>
>
>
>
> Regards,
> Nitin Shrivastava
> POLARIS SOFTWARE LAB Ltd.
> Indiana Business Center
> +91-22-56482255
>
>
>
>
>
>
>                       Jeremias Maerki
>                       <dev@jeremias-ma         To:     
> nitin.shrivastava@polaris.co.in erki.ch>                 cc:
>                                                Subject: Re: Help
> needed !!! 02/10/2006 03:20
>                       PM
>
>
>
>
>
>
> I thought you couldn't use a block-container approach. And as I told
> you before fo:float isn't implemented, yet. The latest version of
> Apache FOP is 0.91beta
> (http://xmlgraphics.apache.org/fop/download.html). It has some
> improvements over 0.20.5 WRT fo:block-container. But fo:float needs
> to be implemented, first.
>
> There are no free alternatives available. Apache FOP is the best open
> source XSL-FO implementation. You will have to use a commercial tool
> if you can't solve it with Apache FOP or look for an alternative to
> XSL-FO.
>
> On 10.02.2006 10:33:22 nitin.shrivastava wrote:
> > Hi,
> >
> > Can you please suggest me is there any new FOP version available
> > with the implementation
> > of block-container or float to meet my requirement.
> > Or please suggest me any free ware available to achieve the same.
> >
> > Regards,
> > Nitin Shrivastava
> > POLARIS SOFTWARE LAB Ltd.
> > Indiana Business Center
> > +91-22-56482255
>
> ---------------------------------------------------------------------
>------------------------------------
>
> > "LUCK is what happens when PREPARATION meets OPPURTUNITY"
> >
> >
> >
> >
> >                       Jeremias Maerki
> >                       <dev@jeremias-ma         To:
>
> nitin.shrivastava@polaris.co.in
>
> >                       erki.ch>                 cc:
> >                                                Subject: Re: Help
> > needed
>
> !!!
>
> >                       02/08/2006 12:40
> >                       PM
> >
> >
> >
> >
> >
> >
> > If my proposed work-arounds don't work, you can't do it with FOP at
> > the moment. You're welcome to help us implement support for
> > fo:float, though. But since it's not an easy task you will probably
> > have to switch to another (commercial) FO implementation.
> >
> > On 08.02.2006 06:26:06 nitin.shrivastava wrote:
> > > Hi ,
> > >
> > > I can't use both the options (block-container or in an fo:table )
> > > as it does not fit w,r,t my XML and XSL design.
> > >
> > > Can you please suggest me any way I can place/overlap image on
> > > the data line..
> > > Or please tell be do I need to use/shift to any new version of
> > > FOP
>
> where
>
> > I
> >
> > > can overlap image over data
> > > as I do in HTML.???
> > >
> > >
> > > Thanks & Regards,
> > > Nitin Shrivastava
> > > POLARIS SOFTWARE LAB Ltd.
> > > Indiana Business Center
> > > +91-22-56482255
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >                       Jeremias Maerki
> > >
> > >                       <dev@jeremias-ma         To:
> >
> > fop-users@xmlgraphics.apache.org
> >
> > >                       erki.ch>                 cc:      (bcc:
> >
> > nitin.shrivastava/Polaris)
> >
> > >                                                Subject: Re: Help
> > > needed
> >
> > !!!
> >
> > >                       02/02/2006 06:31
> > >
> > >                       PM
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > As you can see from the log output and on our compliance page
> > > [1], fo:float is not available. Work-arounds include putting the
> > > image in an absolutely positioned block-container or in an
> > > fo:table (lines in the left cell, image in the right cell).
> > >
> > > [1]
> > > http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float
> > >
> > > On 02.02.2006 10:02:05 nitin.shrivastava wrote:
> > > > Hi ,
> > > >
> > > > I am trying to create a PDF using the FOP converter ver
> > > > 0.20.5.By
> >
> > passing
> >
> > > > an XML and XSL to it.
> > > > Now in my XML there is Image in the frist line followed by four
> > > > empty
> > >
> > > line
> > >
> > > > and then data
> > > > which is coming from the database.
> > > > In my XSL i am using the following code to put the image
> > > > <fo:inline>
> > > > <fo:block>
> > > > <fo:external-graphic   src="{@src}"/>
> > > > </fo:block>
> > > > </fo:inline>
> > > >
> > > > Here I am using absolute higth and width of image.
> > > > In the output of the PDF I am getting the image pasted as it
> > > > but the
> >
> > four
> >
> > > > empty
> > > > lines are coming after the image .
> > > > I want my image to overlap on these empty line since there is
> > > > no data
>
> ,
>
> > > > even if the data is there I want my image to be placed on the
> > > > side of
> >
> > it.
> >
> > > > i.e.
> > > > currently my O/P is coming as :
> > > >
> > > > Line1 |-----------------------|
> > > >
> > > >       |  IMAGE    |
> > > >       |
> > > >       |
> > > >       |-----------------------|
> > > >
> > > > Line2
> > > > Line3
> > > > Line4
> > > > Line5
> > > >
> > > > And I want the O/P as
> > > >
> > > > Line1 |-----------------------|
> > > > Line2 |  IMAGE    |
> > > > Line3 |           |
> > > > Line4 |           |
> > > > Line5 |-----------------------|
> > > >
> > > >
> > > >
> > > >
> > > > I tried using the float option to allow data on the side of 
> > > > image
>
> but
>
> > > > it gives me ...
> > > >
> > > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > > [INFO] [2]
> > > > [DEBUG] The element 'fo:float' is not yet implemented.
> > > > [INFO] [3]
> > > > [DEBUG] The element 'fo:float' is not yet implemented.
> > >
> > > Jeremias Maerki
> > >
> > >
> > >
> > >
> > >
> > > This e-Mail may contain proprietary and confidential information
> > > and is
> >
> > sent for the intended recipient(s) only.
> >
> > > If by an addressing or transmission error this mail has been
>
> misdirected
>
> > to you, you are requested to delete this mail immediately.
> >
> > > You are also hereby notified that any use, any form of
> > > reproduction,
> >
> > dissemination, copying, disclosure, modification,
> >
> > > distribution and/or publication of this e-mail message, contents
> > > or its
> >
> > attachment other than by its intended recipient/s is strictly
> > prohibited.
> >
> > > Visit Us at http://www.polaris.co.in
> >
> > Jeremias Maerki
> >
> >
> >
> >
> >
> > This e-Mail may contain proprietary and confidential information
> > and is
>
> sent for the intended recipient(s) only.
>
> > If by an addressing or transmission error this mail has been
> > misdirected
>
> to you, you are requested to delete this mail immediately.
>
> > You are also hereby notified that any use, any form of
> > reproduction,
>
> dissemination, copying, disclosure, modification,
>
> > distribution and/or publication of this e-mail message, contents or
> > its
>
> attachment other than by its intended recipient/s is strictly
> prohibited.
>
> > Visit Us at http://www.polaris.co.in
>
> Jeremias Maerki
>
>
>
>
>
> This e-Mail may contain proprietary and confidential information and
> is sent for the intended recipient(s) only. If by an addressing or
> transmission error this mail has been misdirected to you, you are
> requested to delete this mail immediately. You are also hereby
> notified that any use, any form of reproduction, dissemination,
> copying, disclosure, modification, distribution and/or publication of
> this e-mail message, contents or its attachment other than by its
> intended recipient/s is strictly prohibited.
>
> Visit Us at http://www.polaris.co.in
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail:
> fop-users-help@xmlgraphics.apache.org

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