Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text is always underlined on page if auto-wrapped #62

Open
mur-dock opened this issue Sep 16, 2024 · 3 comments
Open

Text is always underlined on page if auto-wrapped #62

mur-dock opened this issue Sep 16, 2024 · 3 comments

Comments

@mur-dock
Copy link

Describe the bug
When adding a text fragment to the list of paragraphs of a page, the text is going to be underlined every time.
This only happen if the text is auto-wrapped into the next line.

To Reproduce

        var document = new Aspose.Pdf.Document();
        var page = document.Pages.Add();

        // This text fragment is underlined in pdf
        page.Paragraphs.Add(new TextFragment("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, " +
                                             "sed diam nonumy eirmod tempor invidunt ut lab.") {
            TextState = {
                FontSize = 11,
                Font = FontRepository.FindFont("Arial"),
                HorizontalAlignment = HorizontalAlignment.Left,
                Underline = false, // <-- explicitly false
            },
        });

        // This text fragment is NOT underlined in pdf
        page.Paragraphs.Add(new TextFragment("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, " +
                                             "sed diam nonumy eirmod.") {
            TextState = {
                FontSize = 11,
                Font = FontRepository.FindFont("Arial"),
                HorizontalAlignment = HorizontalAlignment.Left,
                Underline = false, // <-- explicitly false
            },
        });

        // processing document...
        document.ProcessParagraphs();

        // end
        using var stream = File.Create("result.pdf");
        document.Save(stream);

Expected behavior
If I set Underline to false, the text should not be underlined.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • TargetFramework: net8.0
  • Browser: chrome
  • Version: Aspose.PDF 24.9.0

Additional context
The issue occurs in Aspose.PDF version from 24.6 to 24.9 but not in 24.5.

@arise-project
Copy link
Collaborator

arise-project commented Oct 17, 2024

Hello, @mur-dock

Thank you for reporting this issue. I've created a bug for the Aspose.PDF team, but I was able to set it at a 'low' priority for now.

PDFNET-58388

If you have a valid license, I can update the priority to 'Paid customer' to expedite the resolution. Please let me know, and I'll make the necessary changes.

Thank you!

@mur-dock
Copy link
Author

mur-dock commented Oct 18, 2024

Hello, @mur-dock

Thank you for reporting this issue. I've created a bug for the Aspose.PDF team, but I was able to set it at a 'low' priority for now.

PDFNET-58388

If you have a valid license, I can update the priority to 'Paid customer' to expedite the resolution. Please let me know, and I'll make the necessary changes.

Thank you!

Thank you very much, @arise-project .
How can I verify that I have a "paid license"?
The license is binded to my company.

@arise-project
Copy link
Collaborator

Hello, @mur-dock , priority changed to 'Paid Customer'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants