Hi,
Hi James,
Thank you for the details.
Please share your template file with us so we can test your issue at our end to figure out the issue.
Sorry for the inconvenience,
Hi Nausherwan,
Hi,
Hi,
Hi James,
Please accept our apologies for a delay in response.
jcoxhead:
I’m also having issues with combining LTR text segments with RTL text segments in the same paragraph.
I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-34438. You will be notified via this forum thread regarding any updates against the reported issue.
jcoxhead:
Please could you define what a “normal” font is.
Well, normal fonts are 14 PDF core fonts supported by Adobe Reader. Please see the following link with details: Font Handling.
jcoxhead:
I’m still having a problem with fonts however, Arial works fine yet Adobe Arabic (which our client has requested) doesn’t work when I set the IsUnicode property to true.
Please share “Adobe Arabic” font with us for testing as I am unable to find this font for testing.
Sorry for the inconvenience,
Hi Nausherwan,
Hi James,
Thank you for sharing the font files.
I have tested the issue and I am able to notice that Adobe Arabic does not work and I have registered an issue in our issue tracking system with issue id: PDFNEWNET-34445. However, I am unable to reproduce the issue as per your comment “I’ve tried using Adobe Arabic but get a NullReferenceException when I set the IsUnicode property to true”.
Please share your sample code which can be used to generate the exception so we can test it further.
Sorry for the inconvenience.
Hi Nausherwan,
Hi James,
Thank you for sharing the sample code.
I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-34450. You will be notified via this forum thread regarding any updates against your issue.
Sorry for the inconvenience.
The issues you have found earlier (filed as PDFNEWNET-34450) have been fixed in Aspose.Pdf for .NET 7.9.0.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Hi James,
Thanks for your patience.
In order to resolve the issue PDFNEWNET-34445 reported earlier, please try using the following code snippet.
[C#]
string outFile = "c:/pdftest/ArabicFont_Test.pdf";
Document doc = new Document();
Page page = doc.Pages.Add();
// Create a text object and pass the string object carrying Arabic text in it
TextFragment text1 = new TextFragment();
// Create a segment and add it to segments collection of text object
TextSegment seg0 = new TextSegment("أسبوز هو بائع عنصر ال");
text1.Segments.Add(seg0);
// I can't find this font for free
// seg0.TextState.Font = FontRepository.OpenFont("AdobeArabic-Regular");
// Set font size
seg0.TextState.FontSize = 14;
page.Paragraphs.Add(text1);
doc.Save(outFile);
The issues you have found earlier (filed as PDFNET-34438) have been fixed in Aspose.PDF for .NET 25.10.