Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while generating PDF report from Servlet

 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
we are generating PDF report from the Servlet if the client enters data through their forms.But if client enters any data except & and < characters the report is generating fine.but if the client enters & or < characters then the report is not generated.also if the client enters space between then paragrapgh if client entered the data as paragraph then in report the space will be collapsed and the report is showing as single paragrapgh text.
Can you please tell me what is the problem here or how can i solve the problem?
Thanks,
Kumaran.S
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a tool to generate the PDF report? Or is this home grown code?
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try parsing & and < to & and <
Reg. space bet. paragraphs: You need to take care of splitting the line in your program by using proper line breaks.
Suresh Selvaraj
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about my previous post:
Try parsing & and < to "&" and "<".
Are you using com.lowagie API or XSL-FO?
Suresh Selvaraj
 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suresh
Can you explain me detail regarding how to manage the space between the paragraphs?
we are using XSL-FOP.
Thanks,
Kumaran.S
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Based on your application/reporting needs, you need to decide on how many words to be allowed in a single line.
Use as many rows( <fo:column-cell...<fo:block) as possible.

Suresh Selvaraj
 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suresh
Regarding the blank page in PDF reports , We found that if the data is copied ad pasted to "note window" in application, the data is
converted with some special character as "". Even though this character is allowed to save in database, the XML/XSL has the limitation to display this character which is not even in the list of key board buttons.
Can you please tell me why this is happened and what is the solution for this?
Thanks,
Kumaran.S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic