Skip to content

Commit 8d190af

Browse files
committed
new KB - Converting Colored PDF Documents to GrayScale with Telerik Document Processing
1 parent 162b615 commit 8d190af

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to use Telerik Document Processing libraries to convert c
44
type: how-to
55
page_title: How to Convert Color PDF Reports to Black & White Using Telerik Document Processing
66
slug: convert-color-pdf-to-black-and-white-telerik-document-processing
7-
tags: document, processing, pdf, conversion, black, white, grays
7+
tags: document, processing, pdf, conversion, black, white, gray, image, convert
88
res_type: kb
99
ticketid: 1675661
1010
---
@@ -17,14 +17,16 @@ ticketid: 1675661
1717

1818
## Description
1919

20-
This article shows a sample approach how to convert a colored PDF document to a grayscale one with RadPdfProcessing.
20+
This article shows a sample approach how to convert a **colored** PDF document to a **grayscale** one with [RadPdfProcessing]({%slug radpdfprocessing-overview%}).
21+
22+
![Converting Colored PDF Documents to GrayScale](images/convert-grascale-pdf.png)
2123

2224
## Solution
2325

2426
To convert a colored PDF file to black and white using Telerik Document Processing, follow the steps below:
2527

26-
1. Use the [RadPdfProcessing](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview) library to import the PDF file.
27-
2. Iterate through the content of the PDF file, including Path, TextFragment, and Image instances.
28+
1. Use the [RadPdfProcessing]({%slug radpdfprocessing-overview%}) library to import the PDF file.
29+
2. Iterate through the content of the PDF file, including [Path]({%slug radpdfprocessing-model-path%}), [TextFragment]({%slug radpdfprocessing-model-textfragment%}), and [Image]({%slug radpdfprocessing-model-image%}) instances.
2830
3. Modify the colors to grayscale and export the processed file as a new PDF document.
2931

3032
Here is a complete code snippet that demonstrates how to achieve this conversion:
@@ -234,8 +236,9 @@ namespace _1675661GrayScalePDF
234236
```
235237

236238
Ensure to adjust the `MakeGrayscale` methods for `ColorBase`, `Path`, and `Image` according to your specific needs. This sample demonstrates the basic approach to converting document elements to grayscale but might require adjustments for complex scenarios or specific color processing requirements.
239+
237240
## See Also
238241

239-
- [RadPdfProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview)
240-
- [Telerik Document Processing Introduction](https://docs.telerik.com/devtools/document-processing/introduction)
241-
- [Conditional Formatting in Telerik Reporting](https://docs.telerik.com/reporting/designing-reports/connecting-to-data/expressions/using-expressions/conditional-formatting)
242+
- [RadPdfProcessing Overview]({%slug radpdfprocessing-overview%})
243+
- [How to Generate a PDF Document from Images with FixedContentEditor]({%slug pdf-from-images-with-fixedcontenteditor%})
244+
- [How to Generate a PDF Document from Images with RadFixedDocumentEditor]({%slug pdf-from-images-with-radfixeddocumenteditor%})
63.5 KB
Loading

knowledge-base/pdf-from-images-with-fixedcontenteditor.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,5 @@ The produced document is illustrated in the screenshot:
8686
- [RadFixedPage]({%slug radpdfprocessing-model-radfixedpage%})
8787
- [Position]({%slug radpdfprocessing-concepts-position%})
8888
- [PdfFormatProvider]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%})
89-
- [RadPdfProcessing Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview)
89+
- [RadPdfProcessing](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview)
90+
- [Converting Colored PDF Documents to GrayScale with Telerik Document Processing]({%slug convert-color-pdf-to-black-and-white-telerik-document-processing%})

knowledge-base/pdf-from-images-with-radfixeddocumenteditor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ The produced document is illustrated in the screenshot:
6262
- [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%})
6363
- [PdfFormatProvider]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%})
6464
- [RadPdfProcessing]({%slug radpdfprocessing-overview%})
65+
- [Converting Colored PDF Documents to GrayScale with Telerik Document Processing]({%slug convert-color-pdf-to-black-and-white-telerik-document-processing%})

0 commit comments

Comments
 (0)