aspose file tools*
The moose likes Servlets and the fly likes Problem while generating PDF report from Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem while generating PDF report from Servlet" Watch "Problem while generating PDF report from Servlet" New topic
Author

Problem while generating PDF report from Servlet

Kumaran Sowrirajan
Ranch Hand

Joined: Oct 15, 2001
Posts: 36
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

Joined: Sep 29, 2000
Posts: 8521
Are you using a tool to generate the PDF report? Or is this home grown code?


"JavaRanch, where the deer and the Certified play" - David O'Meara
Suresh Selvaraj
Ranch Hand

Joined: Nov 14, 2000
Posts: 104
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, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>
Suresh Selvaraj
Ranch Hand

Joined: Nov 14, 2000
Posts: 104
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

Joined: Oct 15, 2001
Posts: 36
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

Joined: Nov 14, 2000
Posts: 104
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

Joined: Oct 15, 2001
Posts: 36
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
 
 
subject: Problem while generating PDF report from Servlet