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

2006-02-21 Thread nitin . shrivastava





content-width=scale-to-fit content-height=scale-to-fit
for fo:external-graphic does not allow be to put the absolute size of image
...

Can you suggest any workaround to allow Leading spaces in my case ???




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






   
  Jeremias Maerki   
   
  [EMAIL PROTECTED] To:  
fop-users@xmlgraphics.apache.org   
  erki.ch cc:  [EMAIL PROTECTED]   
 
   Subject: Re: Help needed for 
allowing spaces in PDF O/P using fop-0.91beta  
  02/21/2006 01:15 version  
   
  PM
   

   

   




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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 02/20/2006 03:31 cc:
  [EMAIL PROTECTED], [EMAIL PROTECTED] 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
 
  |
  |
  |---|
  |
  |  AA B   CC  DD
 
  EE  |
 
  | AA  B  40041
  |
  |0
  |
  |
  |
  |---|
 
  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
 
  |
  |
  |---|
  |
  |AA B   CC  DD
 
  EE|
 
  |AA  B 40041
  |
  |0
  |
  |
  |
  |---|
 
  Here the sapce inbetween the data A ,B 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

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

2006-02-21 Thread Jeremias Maerki

On 21.02.2006 09:35:22 nitin.shrivastava wrote:
 content-width=scale-to-fit content-height=scale-to-fit
 for fo:external-graphic does not allow be to put the absolute size of image
 ...

Why do you think so? Have a look at the specification at 
http://www.w3.org/TR/xsl/slice6.html#fo_external-graphic
and you'll see that this works. There are examples in
examples/fo/basic/images.fo which demonstrate all the different property
combinations. scale-to-fit causes the image to be scaled so it fits into
the viewport box defined by the width and height properties.

 Can you suggest any workaround to allow Leading spaces in my case ???

If there was one, we would have given it. The only solution is to fix
the problem in the source code. Sorry. You can try to work with
start-indent or margin-left. It's not the same but maybe it helps in
your case.

 
 
 
 Thanks  Regards,
 Nitin Shrivastava
 POLARIS SOFTWARE LAB Ltd.
 Indiana Business Center
 +91-22-56482255
 
 
 
 
 
   
  
   Jeremias Maerki 
  
   [EMAIL PROTECTED] To:  
 fop-users@xmlgraphics.apache.org  
  
   erki.ch cc:  [EMAIL PROTECTED] 

Subject: Re: Help needed for 
 allowing spaces in PDF O/P using fop-0.91beta  
   02/21/2006 01:15 version
  
   PM  
  
   
  
   
  
 
 
 
 
 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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 02/20/2006 03:31 cc:
   [EMAIL PROTECTED], [EMAIL PROTECTED] 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
  
   |
   |
   |---|
   |
   |  AA B   CC  DD
  
   EE  |
  
   | AA  B  40041
   |
   |0
   |
   |
   |
   |---|
  
   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

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

2006-02-20 Thread nitin . shrivastava






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 [EMAIL 
PROTECTED]   
  02/20/2006 03:31 cc:  [EMAIL PROTECTED], 
[EMAIL PROTECTED]
  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

|---|

|  AA B   CC  DD
EE  |
|   |
| AA  B  40041
|
|0
  |
|---|

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


|---|

|AA B   CC  DD
EE|
|   |
|AA  B 40041
|
|0
|
|---|

Here the sapce inbetween the data A ,B 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=[EMAIL PROTECTED]/
  /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=[EMAIL PROTECTED]/  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   
   
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
   
  erki.ch cc

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

2006-02-20 Thread Manuel Mall
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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 02/20/2006 03:31 cc: 
 [EMAIL PROTECTED], [EMAIL PROTECTED] 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

 |
 |
 |---|
 |
 |  AA B   CC  DD

 EE  |

 | AA  B  40041
 |
 |0
 |
 |
 |
 |---|

 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

 |
 |
 |---|
 |
 |AA B   CC  DD

 EE|

 |AA  B 40041
 |
 |0
 |
 |
 |
 |---|

 Here the sapce inbetween the data A ,B 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=[EMAIL PROTECTED]/
   /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=[EMAIL PROTECTED]/  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
   [EMAIL PROTECTED] To: 
 [EMAIL PROTECTED] 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

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

2006-02-20 Thread Jeremias Maerki
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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 02/20/2006 03:31 cc: 
  [EMAIL PROTECTED], [EMAIL PROTECTED] 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
 
  |
  |
  |---|
  |
  |  AA B   CC  DD
 
  EE  |
 
  | AA  B  40041
  |
  |0
  |
  |
  |
  |---|
 
  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
 
  |
  |
  |---|
  |
  |AA B   CC  DD
 
  EE|
 
  |AA  B 40041
  |
  |0
  |
  |
  |
  |---|
 
  Here the sapce inbetween the data A ,B 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=[EMAIL PROTECTED]/
/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=[EMAIL PROTECTED]/  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
[EMAIL PROTECTED] To: 
  [EMAIL PROTECTED] 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