How to remove line shape from PDF (Urgent)

HI Team,

We are using aspose pdf v23

Could you help us with c# code on how to remove a line (shape) from existing pdf ?
Please support as we have a critical delivery.

Sharing a screen shot and the expectation is to remove that back line programatically.
fn.png (95.2 KB)

I

1 Like

@vigneshrao

It needs to be determined whether this line is added as an image or drawn as graphics. Therefore, we need sample PDF document for our reference. We will test the scenario in our environment and address it accordingly.

hi ,

Please help in removing the footnote line Separator . I have attached the sample pdf. Required c# code for removing this line. Please helpfootnote.pdf (103.0 KB)

1 Like

@vigneshrao

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55591

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@vigneshrao

We have implemented a new API for working with vector graphics in Aspose.PDF 23.08
Use this code snippet to remove unwanted objects.

var doc = new Document(input);
var absorber = new GraphicsAbsorber();
absorber.Visit(doc.Pages[1]);

foreach (var element in absorber.Elements)
{
    // element has a property Rectangle, use it to locate the needed object
    if (Math.Abs(element.Rectangle.LLY - 22) < 1)
    {
        // remove the found elements near the Y coordinate near 22 points from the left corner of the page
        element.Remove();
    }
}

doc.Save(output);
1 Like