I’m facing a problem around TextFragments and tab stops. They are working fine if the text in the TextFragment is short enough to fit in one line. However, if the text is a bit longer and gets wrapped into multiple lines, the tab characters are being written out as plain text and not replaced at all.
Are you using the latest version of the API? Would you please share the sample code snippet with us so that we can try to replicate the issue in our environment and address it accordingly?
var pdfDocument = new Document();
var tabStops = new TabStops();
tabStops.Add(new TabStop(200) { LeaderType = TabLeaderType.Solid });
var textFragment = new TextFragment("Very very very very very very very very very very very very very very very veryveryvery long text #$TAB", tabStops);
textFragment.TextState.Underline = true;
var page = pdfDocument.Pages.Add();
page.Paragraphs.Add(textFragment);
pdfDocument.Save("C:/Temp/output.pdf");
We have logged an issue as PDFNET-53054 in our issue tracking system for further investigation. It has been linked with this forum thread as well. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.
Thank you for the quick response. Could you propose any workaround I could use until this is corrected?
Somehow I should be able to achieve a similar behavior.
We are afraid that we cannot offer any workaround for this issue before it is properly investigated. Nevertheless, we will surely inform you as soon as we complete the investigation of the ticket and have some news about its fix ETA. Please spare us some time.