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

Free Support Forum - aspose.com

RoundedCornerRadius removes fill Color

I am trying to fill the rectangle with color and i want my rectangle to be rounded. But when we set RoundedCornerRadius, Fill color doesn’t apply. Below is sample code.

var section = pdfDocument.Pages.Add();

        PageSize pageSize = PageSize.A0;
        section.SetPageSize(pageSize.Width, pageSize.Height);
        section.PageInfo.Margin = new MarginInfo
        {
            Left = 36,
            Top = 36,
            Right = 36,
            Bottom = 36,
        };
        section.PageInfo.IsLandscape = true;

        var canvas = new Graph(500, 500)
        {
            Top = 0,
            Left = 0,
        };

        section.Paragraphs.Add(canvas);
        var boxShape = new Aspose.Pdf.Drawing.Rectangle(
            0
            , 0, 400, 400)
        {
            RoundedCornerRadius = 3,
            GraphInfo =
            {
                
                FillColor = Color.Black,
                LineWidth = 2,
                Color = Color.AliceBlue,

            },
        };

       
        canvas.Shapes.Add(boxShape);

Please provide sample code to make it work.

@sgarg.saba

Could you please share the expected output PDF here for our reference? We will then provide you more information about your query.

My expectation is PDF should show Black color rounded corner rectangle. But when I put RoundedCornerRadius this property, Rectangle comes with transparent color.

Please provide next steps ASAP

@sgarg.saba

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET-51250. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hello, There is basic issues with FillColor, if we specify LinkWidth=0 then also it is transparent rectangle. Should I create separate ticket or we can manage through this only.

@sgarg.saba

Please attach the following resources here for testing:

  • Your input PDF document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Any time expected for getting this resolved. Because of this we are not able to migrate to new version of Aspose. We got stuck on 8.8.1.

@sgarg.saba

We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

Hello,
It’s already more then 6 months on this issue, we are stuck on older version of this. We have migrated our excel and PPT component but stuck with PDF.

Please provide any timeframe when this can get fixed

@sgarg.saba

Unfortunately, there is no update available on this issue. You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies

We will inform you via this forum thread once there is an update available on it.