Hi,
HI Rajeev,
Hi Tilal,
HI Rajeev,
- The setCharacterSpacing(…) method is used to set the value of spacing between characters inside TextFragment.
- The setLineSpacing(…) method is used to set the value of spacing between lines within TextFragment instance.
as PDFNEWJAVA-35025 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.
com.aspose.pdf.Document pdfDocument = new
com.aspose.pdf.Document();<o:p></o:p>
pdfDocument.getPages().add();
com.aspose.pdf.TextFragment textFragment = new com.aspose.pdf.TextFragment("Sample TextFragment over multiple lines to check Line Spacing behavior and this is very large line of text to check the line spacing behavior");
// set spacing for characters inside TextFragment
textFragment.getTextState().setCharacterSpacing(5);
// set spacing for lines of TextFragment instance
textFragment.getTextState().setLineSpacing(15);
// add text fragment to paragraphs collection of first page of PDF file
pdfDocument.getPages().get_Item(1).getParagraphs().add(textFragment);
// save PDF document
pdfDocument.save(“c:/pdftest/Line_Character_SpacingTest.pdf”);
The issues you have found earlier (filed as PDFNEWJAVA-35025) have been fixed in Aspose.Pdf for Java 10.9.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)