Skip to content

Commit a5f89cb

Browse files
committed
polished KB
1 parent c397ee0 commit a5f89cb

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

knowledge-base/convert-color-pdf-to-black-and-white-telerik-document-processing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,4 @@ Ensure to adjust the `MakeGrayscale` methods for `ColorBase`, `Path`, and `Image
202202
- [RadPdfProcessing Overview]({%slug radpdfprocessing-overview%})
203203
- [How to Generate a PDF Document from Images with FixedContentEditor]({%slug pdf-from-images-with-fixedcontenteditor%})
204204
- [How to Generate a PDF Document from Images with RadFixedDocumentEditor]({%slug pdf-from-images-with-radfixeddocumenteditor%})
205+
- [Converting Colored PDF Document Images to GrayScale in .NET Standard]({%slug convert-pdf-grayscale-aspnet-core%})

knowledge-base/convert-pdf-grayscale-aspnet-core.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Converting Colored PDF Documents to GrayScale in .NET Standard
3-
description: Learn how to convert colored PDF documents to grayscale using Telerik PdfProcessing in an ASP.NET Core (.NET 9) environment.
2+
title: Converting Colored PDF Document Images to GrayScale in .NET Standard
3+
description: Learn how to convert colored images in PDF documents to grayscale using Telerik PdfProcessing in an ASP.NET Core (.NET 9) environment.
44
type: how-to
5-
page_title: How to Convert Color PDFs to GrayScale in .NET Standard
6-
meta_title: How to Convert Color PDFs to GrayScale in .NET Standard
5+
page_title: How to Convert Colored PDF Document Images to GrayScale in .NET Standard
6+
meta_title: How to Convert Colored PDF Document Images to GrayScale in .NET Standard
77
slug: convert-pdf-grayscale-aspnet-core
8-
tags: pdfprocessing,telerik document processing,asp.net core,convert grayscale,pdf,radfixeddocument,imagesource
8+
tags: pdf,processing,telerik, document, asp,core,convert grayscale,image
99
res_type: kb
1010
ticketid: 1697916
1111
---
@@ -18,18 +18,16 @@ ticketid: 1697916
1818

1919
## Description
2020

21-
I need to convert colored PDF documents to grayscale using Telerik [PdfProcessing](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview) in an ASP.NET Core (.NET 9) environment. The provided Telerik documentation uses `System.Windows.Media` and `System.Windows.Media.Imaging`, which are unavailable in .NET Core. I need an alternate approach compatible with my environment.
21+
Convert colored images in PDF documents using Telerik [PdfProcessing]({%slug radpdfprocessing-overview%}) in an ASP.NET Core (.NET 9) environment.
22+
23+
![Converting Colored PDF Documents to GrayScale](images/colored-to-grayscale.gif)
2224

23-
This knowledge base article also answers the following questions:
24-
- How to process PDFs to grayscale in ASP.NET Core (.NET 9)?
25-
- How to convert images in PDFs to grayscale using Telerik PdfProcessing?
26-
- How to handle PDF image transformations in non-Windows environments?
2725

2826
## Solution
2927

3028
To convert colored PDFs to grayscale in ASP.NET Core (.NET 9), follow these steps:
3129

32-
1. Use the Telerik PdfProcessing library to load and manipulate PDF content.
30+
1. Use the Telerik [PdfProcessing]({%slug radpdfprocessing-overview%}) library to load and manipulate PDF content.
3331
2. Replace the image processing logic with a custom implementation using `System.Drawing`.
3432

3533
Here is the complete code example:
@@ -132,12 +130,6 @@ class Program
132130
}
133131
```
134132

135-
### Key Notes:
136-
- The image processing logic is implemented using `System.Drawing` to convert images to grayscale.
137-
- This approach works in non-Windows environments and is compatible with ASP.NET Core.
138-
139133
## See Also
140134

141-
- [PdfProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview)
142-
- [Convert Color PDF to Black and White](https://docs.telerik.com/devtools/document-processing/knowledge-base/convert-color-pdf-to-black-and-white-telerik-document-processing)
143-
- [Telerik Document Processing Documentation](https://docs.telerik.com/devtools/document-processing/)
135+
- [Converting Colored PDF Documents to GrayScale in .NET Framework]({%slug convert-color-pdf-to-black-and-white-telerik-document-processing%})
164 KB
Loading

0 commit comments

Comments
 (0)