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

Free Support Forum - aspose.com

Cannot set the Color of a OutlineItemCollection


i try to create a new OutlineItemCollection and set the Color to Red.
But after setting the color to Red, the Color property is still unset.

var pdfOutline = new OutlineItemCollection(AsposeDocument.Outlines)
Title = $“Page {1} ({pdfFileName})”,
Action = new GoToAction(AsposeDocument.Pages.First()),
Bold = true,
Color = Color.Red

See 2021_12_06_15_12_38_All_Debugging_Microsoft_Visual_Studio.jpg (47.0 KB)

Kind regards,


Could you please ZIP and attach your input PDF and problematic output document along with complete code example to reproduce the same issue at our end? We will investigate the issue and provide you more information on it.

This behavior only occurs after concatenating two or more PDFs with colored bookmarks.
In the result PDF the bookmarks are black.

See this example:
LesezeichenFarbig.zip (18.6 KB)


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-51025. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Nice!! :blush:

Kind Regards,


dfX3_fdc7b91e-6c57-4128-92c2-5b9fbad02274.png (1.42 KB)

QR8c341bc8-75b7-4e2c-99c3-2d2ba4031ede.png (458 Bytes)