mamatha: I am trying to set segment content with html content. Html content has p tag in it. I have two issues:
if content has “P” (Capital P tag) content is loosing it’s case. All are rendered in lower case.
Hi Mamatha,
Thanks for your patience. I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFJAVA-33152. We will investigate this issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.
mamatha: 2. lot of space is getting added before a paragraph.
str="<P style='text-align:justify'>It was a pleasure to see you .</P>"+
"<P style='text-align:justify'>Thank You</P>";
For this particular issue, do you mean the extra Top spacing between two paragraphs i.e. as present between “it was a pleasure to see you” and “thank you” paragraph. Please share further details so that we may further look into this problem. For your reference, I have also attached the resultant PDF that I have generated.
I am pleased to share that the issue reported earlier has PDFJAVA-33152 is resolved in latest release version of Aspose.Pdf for Java 3.3.0. For your reference, I have also attached the resultant PDF which I have generated over my end. Please take a look.
In the event of any further query, please feel free to contact.
I have tested the scenario using Aspose.Pdf for Java 3.3.0 while using the following code snippet and I am unable to notice any problem. For your reference, I have also attached the resultant PDF file.
[Java]
String str = "<P style='text-align:justify'>It was a pleasure to see you .</P>"
+ "<P style='text-align:justify'>Thank You</P>;";
//Instantiate Pdf object by calling its empty constructor
Pdf pdf1 = new Pdf();
//Create a new section in the Pdf object
Section sec1 = pdf1.getSections().add();
//Create a new text paragraph and pass the text to its constructor as argument
Text text1 = new Text(str);
text1.setIsHtmlTagSupported(true);
sec1.getParagraphs().add(text1);
pdf1.save("d:/pdftest/HTML_Text_File_to_PDF.pdf");
I am also getting same amount of spacing. Is there a way to reduce that spacing so that both paragraphs come one below.
Hi Mamatha,
I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFJAVA-33170. We
will investigate this issue in details and will keep you updated on the status
of a correction.