Hey!
Hi Brijen,
Hi Tilal,
Thanks for your reply.
I have doanloaded Aspose.Pdf for .Net 7.9, but still could not find bold and italic together.
Here is the code:
//Create text fragment
TextFragment textFragment = new TextFragment("Brijen Patel");
textFragment.Position = new Position(50, 700);
//Set text properties
textFragment.TextState.FontSize = 12;
textFragment.TextState.FontStyle = FontStyles.Italic;
textFragment.TextState.FontStyle = FontStyles.Bold;
TextBuilder textBuilder = new TextBuilder(pdfPage);
//Append the text fragment to the PDF page
textBuilder.AppendText(textFragment);
Let me know if i miss anything here.
For TextWrapping, actually, i would like to add label which has max length of 250 characters, now if the text is not fit into the width then i would i like to wrap the text of the label.
Thanks and Regards,
Brijen Patelv
Hi Brijen,
Thanks for providing sample code. I've observed the font style issue on my side and logged the issue in our bug tracking system for further investigation and resolution as PDFNEWNET-35165.
Furthermore, I'm afraid text wrapping feature is not available in TextFragment class. So I've also logged a ticket for further investigation and resoultion for the same as PDFNEWNET-35166. I've also linked your request to these issues and you will be notified via this thread as soon as these are resolved.
Sorry for the inconvenience faced..
Best Regards,
Thanks for the update Tilal.
Hi Tilal,
Hi Brijen,
Sorry for the delayed response. Please to set font styles simultaneously use “|” operator, as following. hopefully it will solve the styling issue. And I’m afraid your other reported issue is still not resolve. However, I’ve requested the development team to share ETA for text wrapping feature in TextFragment class. As soon as I get a feedback I’ll update you via this forum thread.
textFragment.TextState.FontStyle = FontStyles.Bold | FontStyles.Italic;
Thanks for your patience and understanding.
Best Regards,
Hi Tilal,
Hi Brijen,
Hi Brijen,
The issues you have found earlier (filed as PDFNEWNET-35165) have been fixed in Aspose.Pdf for .NET 8.0.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as PDFNEWNET-35166) have been fixed in Aspose.Pdf for .NET 8.1.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi,
Hi Brijen,
Hi Brijen,
Hi,
I am using the aspose java version in one of my component in which i am passing the binary data as input and and converting it into pdf but problem is i want to change the font size to smaller because my text got wrapped to next line and due to this alignment is not proper in my pdf. It would be great if you share the sample code through which i can adjust the font size according to my choice.
Regards,
Manish Jawla
Thanks for contacting support.
Would you please share the sample code snippet along with sample input/output file(s), so that we can test the scenario in our environment and address it accordingly. Also, we will really appreciate if you can please share the JDK version which you are using at your side.