Flatten annotation cause text to be surrounded by boxes

c5ec4bef-e0ad-46bb-8c26-366dfdb56e05.pdf (396.8 KB)
Original PDF From Client.PDF (222.1 KB)

Please review the two attached documents.
We are finding that when the document is “flattened” boxs appear around text

The following code is used

After testing we conclude the problem occurs at annotationEditor.FlatteningAnnotations()

The problem exist for ver 19.3 and 19.4
Windows 64 Framework 4.7.2 VB.net VS 2019 and 2017

Please address this issue promptly as it is affecting our application in a serious way

Try

        Using annotationEditor As New PdfAnnotationEditor()
            ' Open Document
            Try
                annotationEditor.BindPdf(pSourceFile)
            Catch ex As Exception
                Return ""
            End Try


            Select Case pIncludeAnnotations
                Case 0
                    annotationEditor.DeleteAnnotations()
                Case 1
                    If pHideNotesRulers Then
                        annotationEditor.DeleteAnnotations(Annotations.AnnotationType.Popup)
                        ' annotationEditor.DeleteAnnotations(Annotations.Measure)
                    Else
                        **annotationEditor.FlatteningAnnotations()**
                    End If

                Case Else
                    If pHideNotesRulers Then
                        annotationEditor.DeleteAnnotations(Annotations.AnnotationType.Popup)
                        ' annotationEditor.DeleteAnnotations(Annotations.Measure)
                    ElseIf Not (pNewFileName.ToString.Contains("BA_")) Then
                        **annotationEditor.FlatteningAnnotations()**
                    End If
            End Select

            SetPdfProperties(annotationEditor.Document, "")

            annotationEditor.Document.OptimizeSize = True

            If pSecure Then
                SecurePDF(annotationEditor.Document)
            End If

            annotationEditor.Save(pNewFileName)
        End Using
    Catch ex As Exception
        Return ""
    End Try

    Return pNewFileName

@Andre123

We are testing the scenario in our environment and will get back to you shortly.

Good Morning
Do you have any feedback on this issue.
As I mentioned…Our customers are being badly inconvenienced by this issue and this is affect our SLA
Thank you

@Andre123

We were able to notice the issue while testing the scenario with Aspose.PDF for .NET 19.4. Hence, we have logged it as regression under ticket ID PDFNET-46299 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

Good Morning
Please advise progress as we are awaiting a fix. If Aspose is not prepared to fix this please let us know so we can make alternate arrangement with other tool suppliers who do not exhibit this issue
Thank you

@Andre123

Thank you for getting back to us.

This ticket will tentatively be resolved in upcoming version, Aspose.PDF for .NET 19.5 which is likely to be released by second week of May 2019. We will notify you as soon as it will be resolved. We appreciate your patience.

The issues you have found earlier (filed as PDFNET-46299) have been fixed in Aspose.PDF for .NET 19.6.