srij.4568 Posted January 17, 2018 Share Posted January 17, 2018 I have one issue in JasperStudio. I am having text in Oracle DB stored as clob data with HTML Content. I am showing this text in a textfield with markup language set as "html" by converting that data to string.When I am exporting this data to PDF, some of the text getting truncated and some text is like getting sentence break in the middle of the paragraph and printing on next page.There can be large text even with data more than 10 pages. So not able to use the HTML Component and have to go through the text field. With this problem i can't able to export the HTML Content in the way that need to be exported. Can you please help in achieving solution for this (How to export to PDF without sentence break and truncation in text). Link to comment Share on other sites More sharing options...
vchiem Posted January 18, 2018 Share Posted January 18, 2018 try either of these two settings in the report :net.sf.jasperreports.print.keep.full.text = true or net.sf.jasperreports.export.pdf.size.page.to.content = true Link to comment Share on other sites More sharing options...
srij.4568 Posted January 19, 2018 Author Share Posted January 19, 2018 Hi Vchiem, I tried placing both the properties in jrxml. Still i can observe the sentence break between the paragraph. For example "in the museum. He was here..." is text in the middle of paragraph. "in" word is placed as last line of the page (only in word is present as last line of that page) and remaining text in paragraph "the museum. He was here..." is placed as first line of the next page. This is all happened in the middle of paragraph. Can you please provide solution for this problem Link to comment Share on other sites More sharing options...
srij.4568 Posted January 22, 2018 Author Share Posted January 22, 2018 Hi Vchiem, Thank you. I tried placing both the properties in jrxml. Still i can observe the sentence break between the paragraph. For example "in the museum. He was here..." is text in the middle of paragraph. "in" word is placed as last line of the page (only in word is present as last line of that page) and remaining text in paragraph "the museum. He was here..." is placed as first line of the next page. This is all happened in the middle of paragraph. Can you please provide solution for this problem.Also for some texts last line of the paragraph is not printed. This is more pesky. Can you please provide solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now