We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF Text Wrap - Invisible Text

Hi Aspose,

When wrapping text using “WholeWordsHyphenation” the text seems to wrap just fine, however, in the output file the text is not visible. The wrapped text can be selected, it’s just not visible (please see attachments).

using Aspose.Pdf;
using Aspose.Pdf.Text;

pdf = new Document("/path/to/source.pdf/");

TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("elit");
textFragmentAbsorber.TextReplaceOptions.ReplaceAdjustmentAction = TextReplaceOptions.ReplaceAdjustment.WholeWordsHyphenation;

foreach (TextFragment textFragment in textFragmentAbsorber.TextFragments)
    textFragment.Text = "This is a Larger String for the Testing of this issue";


TextWrap.zip (257.5 KB)

Thank you


We were able to replicate the issue in our environment while using Aspose.PDF for .NET 19.8. We have logged it as PDFNET-46945 in our issue tracking system for the sake of correction. We will further investigate this issue in details and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.

Hi Aspose Team,

Do you have a temporary solution to this problem? Is there a way I can force the text fragments or text segments to be visible?



The issue is related to TextReplaceOptions.ReplaceAdjustment.WholeWordsHyphenation property in the API which is causing the text invisibility after replacement. We need to fix the issue after investigating it and we are afraid that we cannot offer any reliable workaround at the moment. However, we have raised your concerns and will definitely consider them during issue resolution process. Please spare us little time.

We apologize for the inconvenience.

Hello, any updates? I have the same issue.
Language: Java
Version: 21.8


We are afraid that earlier logged ticket has not been yet resolved. However, we will surely inform you as soon as we have some definite update regarding its resolution. Please give us some time.

We are sorry for the inconvenience.