You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/pdfprocessing-draw-rectangle-with-content.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
-
title: Drawing Rectangles with Text and Image Contant with RadPdfProcessing
2
+
title: Drawing Rectangles with Text and Image Content with RadPdfProcessing
3
3
description: Learn how to draw rectangles with specific styles, add centered text, and images within those rectangles using the RadPdfProcessing library.
4
4
type: how-to
5
5
page_title: How to Draw Styled Rectangles with Text and Image Content in PDFs with RadPdfProcessing
@@ -28,9 +28,7 @@ This knowledge base article also answers the following questions:
28
28
29
29
To draw a rectangle with a black stroke and a light blue background, add centered text, and insert a centered image within the rectangle using the RadPdfProcessing library, follow these steps:
30
30
31
-
### Drawing a Rectangle
32
-
33
-
1. Draw a rectangle by creating a **Path** with a **RectangleGeometry** , defining its dimensions, formatting it, and inserting it in the page.
31
+
1. Draw a rectangle by creating a [Path]({%slug radpdfprocessing-model-path%}) with a [RectangleGeometry]({%slug radpdfprocessing-concepts-geometry%}#rectanglegeometry), defining its dimensions, formatting it, and inserting it in the page.
34
32
2. Create a **Block** of text, format it, and draw it on top of the rectangle with the **FixedContentEditor** by specifying its **Position**.
35
33
3. Draw a second rectangle at a different position.
36
34
4. Create an image **Block** and draw it on top of the second rectangle with the **FixedContentEditor** while specifying its **Position**.
@@ -132,9 +130,8 @@ Process.Start(psi);
132
130
133
131
## See Also
134
132
135
-
-[Text and Graphic Properties Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/text-and-graphic-properties)
0 commit comments