[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001456#comment-14001456
 ] 

MOHD commented on FOP-1863:
---

source code was clear. Please find below source code for the same.

// if (!parentList.getHasTableParent()) {   // removed

//writeControlWord("pard");   // removed

parent.parent.inListItem=true;

parent.parent.ListItem=false;

//} // removed

> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001456#comment-14001456
 ] 

MOHD commented on FOP-1863:
---

source code was clear. Please find below source code for the same.

// if (!parentList.getHasTableParent()) {   // removed

//writeControlWord("pard");   // removed

parent.parent.inListItem=true;

parent.parent.ListItem=false;

//} // removed

> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001452#comment-14001452
 ] 

MOHD commented on FOP-1863:
---

I have commented if condition from RtfListItem.java for the below 
writeRtfPrefix() method.. 
Now it is working fine inside the table also. 

protected void writeRtfPrefix() throws IOException {
-
+writeGroupMark(true);
+//To ensure that the listitem ends with '}' if the list is nested in a 
table.
+parent.parent.ListItem=true;
 // pard causes word97 (and sometimes 2000 too) to crash if the list is 
nested in a table
//  if (!parentList.getHasTableParent()) {
//writeControlWord("pard");
+parent.parent.inListItem=true;
+parent.parent.ListItem=false;
//   }

Please let me know if anyone else has any suggestions

> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001452#comment-14001452
 ] 

MOHD commented on FOP-1863:
---

I have commented if condition from RtfListItem.java for the below 
writeRtfPrefix() method.. 
Now it is working fine inside the table also. 

protected void writeRtfPrefix() throws IOException {
-
+writeGroupMark(true);
+//To ensure that the listitem ends with '}' if the list is nested in a 
table.
+parent.parent.ListItem=true;
 // pard causes word97 (and sometimes 2000 too) to crash if the list is 
nested in a table
//  if (!parentList.getHasTableParent()) {
//writeControlWord("pard");
+parent.parent.inListItem=true;
+parent.parent.ListItem=false;
//   }

Please let me know if anyone else has any suggestions

> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-15 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996787#comment-13996787
 ] 

MOHD commented on FOP-1863:
---

this patch solves the issue outside the table not inside. if list block is 
inside the table it is taking default labels.
I have created below issue for the same.

https://issues.apache.org/jira/browse/FOP-2373

Please give me some suggestion for this issue..


> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-15 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996787#comment-13996787
 ] 

MOHD commented on FOP-1863:
---

this patch solves the issue outside the table not inside. if list block is 
inside the table it is taking default labels.
I have created below issue for the same.

https://issues.apache.org/jira/browse/FOP-2373

Please give me some suggestion for this issue..


> Problem with list containing multi-line items in RTF
> 
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
>Reporter: dmitro
>Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf, 
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo as
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> It renders to PDF correctly as
> * Item 1 Line 1
>   Item 1 Line 2
>   Item 1 Line 3
> * Item 2 Line 1
>   Item 2 Line 2
>   Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (FOP-2373) list-item-body with multi-line items

2014-05-13 Thread MOHD (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

MOHD updated FOP-2373:
--

Description: 
I got some issue in list-block, when FO file contains list-block and 
list-item-body with multi-line items. Issue in RTF format where labels are 
repeating. Please find below the scenario.

FO syntax:


  

  
•
  


  
Item 1 Line 1
  
  
Item 1 Line 2
  
  
Item 1 Line 3
  

  
  

  
•
  


  
Item 2 Line 1
  
  
Item 2 Line 2
  
  
Item 2 Line 3
  

  


RTF output it appears as

* Item 1 Line 1
* Item 1 Line 2
* Item 1 Line 3
* Item 2 Line 1
* Item 2 Line 2
* Item 2 Line 3

I got the below patch and it solves the issue outside the table not inside.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50163

Please suggest me if someone has solution..

  was:
I got some issue in list-block, when FO file contains list-block and 
list-item-body with multi-line items. Issue in RTF format where labels are 
repeating. Please find below the scenario.

FO syntax:


  

  
•
  


  
Item 1 Line 1
  
  
Item 1 Line 2
  
  
Item 1 Line 3
  

  
  

  
•
  


  
Item 2 Line 1
  
  
Item 2 Line 2
  
  
Item 2 Line 3
  

  


RTF output it appears as

* Item 1 Line 1
* Item 1 Line 2
* Item 1 Line 3
* Item 2 Line 1
* Item 2 Line 2
* Item 2 Line 3

I got the below patch and it solves the issue outside the table not inside.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50163

Please suggest me where I have to put this issue.


> list-item-body with multi-line items
> 
>
> Key: FOP-2373
> URL: https://issues.apache.org/jira/browse/FOP-2373
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 1.0
>Reporter: MOHD
>  Labels: lisitem, listblock, rtf
>
> I got some issue in list-block, when FO file contains list-block and 
> list-item-body with multi-line items. Issue in RTF format where labels are 
> repeating. Please find below the scenario.
> FO syntax:
> 
>   
> 
>   
> •
>   
> 
> 
>   
> Item 1 Line 1
>   
>   
> Item 1 Line 2
>   
>   
> Item 1 Line 3
>   
> 
>   
>   
> 
>   
> •
>   
> 
> 
>   
> Item 2 Line 1
>   
>   
> Item 2 Line 2
>   
>   
> Item 2 Line 3
>   
> 
>   
> 
> RTF output it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3
> I got the below patch and it solves the issue outside the table not inside.
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50163
> Please suggest me if someone has solution..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (FOP-2373) list-item-body with multi-line items

2014-05-13 Thread MOHD (JIRA)
MOHD created FOP-2373:
-

 Summary: list-item-body with multi-line items
 Key: FOP-2373
 URL: https://issues.apache.org/jira/browse/FOP-2373
 Project: Fop
  Issue Type: Bug
  Components: rtf
Affects Versions: 1.0
Reporter: MOHD


I got some issue in list-block, when FO file contains list-block and 
list-item-body with multi-line items. Issue in RTF format where labels are 
repeating. Please find below the scenario.

FO syntax:


  

  
•
  


  
Item 1 Line 1
  
  
Item 1 Line 2
  
  
Item 1 Line 3
  

  
  

  
•
  


  
Item 2 Line 1
  
  
Item 2 Line 2
  
  
Item 2 Line 3
  

  


RTF output it appears as

* Item 1 Line 1
* Item 1 Line 2
* Item 1 Line 3
* Item 2 Line 1
* Item 2 Line 2
* Item 2 Line 3

I got the below patch and it solves the issue outside the table not inside.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50163

Please suggest me where I have to put this issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (FOP-2341) Infinite loop when "smaller" used after error on inherited font-size

2014-02-11 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897705#comment-13897705
 ] 

MOHD edited comment on FOP-2341 at 2/11/14 10:24 AM:
-

font-size value will be zero when units are not in INCH, CM, MM, POINT, PICA 
and MPT.

Class file: FixedLength.java
…}else if (!FixedLength.MPT.equals(unit)) {
dvalue = 0;
log.error("Unknown length unit '" + unit + "'");
}
}
return (int)dvalue;

I have added mmpt also in supported values and it is not going in infinite loop.
Please let me know if anyone has generic solution for this.



was (Author: mohd.mohsincse):
font-size value will be zero when units are not in INCH, CM, MM, POINT, PICA 
and MPT.

Class file: FixedLength.java
…}else if (!FixedLength.MPT.equals(unit)) {
dvalue = 0;
log.error("Unknown length unit '" + unit + "'");
}
}
return (int)dvalue;

I have added mmpt also in supported values that time it is not going in 
infinite loop.
Please let me know if anyone has generic solution for this.


> Infinite loop when "smaller" used after error on inherited font-size
> 
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: general
>Affects Versions: 0.95, trunk
>Reporter: MOHD
>Priority: Critical
>  Labels: font-size, infinite-loop, smaller
> Attachments: _test.fo
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (FOP-2341) Infinite loop when "smaller" used after error on inherited font-size

2014-02-11 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897705#comment-13897705
 ] 

MOHD commented on FOP-2341:
---

font-size value will be zero when units are not in INCH, CM, MM, POINT, PICA 
and MPT.

Class file: FixedLength.java
…}else if (!FixedLength.MPT.equals(unit)) {
dvalue = 0;
log.error("Unknown length unit '" + unit + "'");
}
}
return (int)dvalue;

I have added mmpt also in supported values that time it is not going in 
infinite loop.
Please let me know if anyone has generic solution for this.


> Infinite loop when "smaller" used after error on inherited font-size
> 
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: general
>Affects Versions: 0.95, trunk
>Reporter: MOHD
>Priority: Critical
>  Labels: font-size, infinite-loop, smaller
> Attachments: _test.fo
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896794#comment-13896794
 ] 

MOHD edited comment on FOP-2341 at 2/10/14 5:52 PM:


Looks like issue with font-size. Due to that code are going in infinite loop.
Find below code where infinite loop.occur.
File Name: FontSizePropertyMaker.java


 while (scale < 1 && nextStepFontSize > baseFontSize  || scale > 1 && 
nextStepFontSize < baseFontSize) {
// baseFontSize is still bigger (if we grow) or smaller (if we 
shrink)
// than the last caculated step
lastStepFontSize = nextStepFontSize;
nextStepFontSize = (int)Math.round(lastStepFontSize * scale);
}

Test scenario: 

 
  
   Text  
 



was (Author: mohd.mohsincse):
Looks like issue with font-size. Due to that code are going in infinite loop.
Find below code where infinite loop.occur.
File Name: FontSizePropertyMaker.java


 while (scale < 1 && nextStepFontSize > baseFontSize
|| scale > 1 && nextStepFontSize < baseFontSize) {
// baseFontSize is still bigger (if we grow) or smaller (if we 
shrink)
// than the last caculated step
lastStepFontSize = nextStepFontSize;
nextStepFontSize = (int)Math.round(lastStepFontSize * scale);
}

Test scenario: 

 
  
   Text  
 


>  FOP is hang and not able to generate RTF file
> --
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896794#comment-13896794
 ] 

MOHD commented on FOP-2341:
---

Looks like issue with font-size. Due to that code are going in infinite loop.
Find below code where infinite loop.occur.
File Name: FontSizePropertyMaker.java


 while (scale < 1 && nextStepFontSize > baseFontSize
|| scale > 1 && nextStepFontSize < baseFontSize) {
// baseFontSize is still bigger (if we grow) or smaller (if we 
shrink)
// than the last caculated step
lastStepFontSize = nextStepFontSize;
nextStepFontSize = (int)Math.round(lastStepFontSize * scale);
}

Test scenario: 

 
  
   Text  
 


>  FOP is hang and not able to generate RTF file
> --
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896373#comment-13896373
 ] 

MOHD commented on FOP-2341:
---

Thanks Pascal,

It should throw exception but why it is taking time to render the file.

Suppose you have big FO and it has same scenario at many places.
It is not able to generate file.


>  FOP is hang and not able to generate RTF file
> --
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-09 Thread MOHD (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

MOHD updated FOP-2341:
--

Description: 
My local FOP engine is hang when below scenario was occur.

 
thof each month. 
  


Please give some suggestion if any one has solution for this issue.

  was:
My local FOP engine is hang when below scenario was occur.

 
thof each month. 
  


Please let me know if any one has solution for this issue.


>  FOP is hang and not able to generate RTF file
> --
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
> Fix For: 0.95
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-09 Thread MOHD (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

MOHD updated FOP-2341:
--

Summary:  FOP is hang and not able to generate RTF file  (was:  FOP engine 
is hang)

>  FOP is hang and not able to generate RTF file
> --
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
> Fix For: 0.95
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please let me know if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (FOP-2341) FOP engine is hang

2014-02-09 Thread MOHD (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

MOHD updated FOP-2341:
--

Description: 
My local FOP engine is hang when below scenario was occur.

 
thof each month. 
  


Please let me know if any one has solution for this issue.

  was:
My local FOP engine is hang when below scenario was occur.

 
thof each month. 
  


>  FOP engine is hang
> ---
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
>  Issue Type: Bug
>  Components: rtf
>Affects Versions: 0.95
>Reporter: MOHD
>Priority: Critical
>  Labels: newbie
> Fix For: 0.95
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  
>  role="html:sup">thof each month. 
>   
> Please let me know if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (FOP-2341) FOP engine is hang

2014-02-09 Thread MOHD (JIRA)
MOHD created FOP-2341:
-

 Summary:  FOP engine is hang
 Key: FOP-2341
 URL: https://issues.apache.org/jira/browse/FOP-2341
 Project: Fop
  Issue Type: Bug
  Components: rtf
Affects Versions: 0.95
Reporter: MOHD
Priority: Critical
 Fix For: 0.95


My local FOP engine is hang when below scenario was occur.

 
thof each month. 
  



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)