Skip to content

Commit 3009428

Browse files
Merge pull request #555 from telerik/yoan/extract-tablerow-and-tablecell-in-folders
Extracted tablerow and tablecell as childern of table
2 parents 7f1ff5b + f1ffecf commit 3009428

34 files changed

+88
-204
lines changed

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ navigation:
260260
position: 7
261261
libraries/radpdfprocessing/model/formsource:
262262
title: FormSource
263-
position: 8
263+
position: 8
264+
libraries/radpdfprocessing/editing/table:
265+
title: Table
266+
position: 2
264267
## RadZipLibrary Start
265268
"*radziplibrary":
266269
title: RadZipLibrary

knowledge-base/avoid-table-splits-across-pages-radpdfprocessing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ Measuring the table and calculating the remaining page height is the suitable ap
9191
## See Also
9292

9393
- [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%})
94-
- [Tables]({%slug radpdfprocessing-editing-table%})
94+
- [Tables]({%slug radpdfprocessing-editing-table-overview%})

knowledge-base/change-block-text-color-in-pdf-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To change the text color inside a table in a PDF document using RadPdfProcessing
2828

2929
Here's how to achieve this:
3030

31-
1. Create a [Table]({%slug radpdfprocessing-editing-table%}) and add a [Row]({%slug radpdfprocessing-editing-tablerow%}) and a [Cell]({%slug radpdfprocessing-editing-tablecell%}) to it.
31+
1. Create a [Table]({%slug radpdfprocessing-editing-table-overview%}) and add a [Row]({%slug radpdfprocessing-editing-table-tablerow%}) and a [Cell]({%slug radpdfprocessing-editing-table-tablecell%}) to it.
3232
2. Add a [Block]({%slug radpdfprocessing-editing-block%}) to the cell for the text you want to display.
3333
3. Use `SaveGraphicProperties()` to save the current graphic state.
3434
4. Set the [FillColor]({%slug radpdfprocessing-concepts-colors-and-color-spaces%}) property of [GraphicProperties]({%slug radpdfprocessing-editing-text-and-graphic-properties%}) to the desired color.

knowledge-base/create-dashed-line-border-table-radpdfprocessing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ res_type: kb
1818
Learn how to add a dashed line border in a table using [RadPdfProcessing]({%slug radpdfprocessing-overview%}).
1919

2020
# Solution
21-
To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-table%}) in RadPdfProcessing, you can follow these steps:
21+
To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-table-overview%}) in RadPdfProcessing, you can follow these steps:
2222

2323
1. Set the desired font style properties for the table.
2424
2. Create a `Border` object with the desired thickness, style, and color.
@@ -76,13 +76,13 @@ Please note that you can modify the `Borders` property of the `DefaultCellProper
7676
table.DefaultCellProperties.Borders = new TableCellBorders(null, null, null,b);
7777
```
7878

79-
>note As of **Q3 2024** RadPdfProcessing offers *Dotted*, *Dashed*, and *DashSmallGap* [border styles]({%slug radpdfprocessing-editing-table%}) out-of-the-box without the necessity to play with the **StrokeDashArray** of the **FixedContentEditor**. With this update, the Dotted, Dashed, DashSmallGap, and Thick border lines are now exported from [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}) to [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) as well.
79+
>note As of **Q3 2024** RadPdfProcessing offers *Dotted*, *Dashed*, and *DashSmallGap* [border styles]({%slug radpdfprocessing-editing-table-overview%}) out-of-the-box without the necessity to play with the **StrokeDashArray** of the **FixedContentEditor**. With this update, the Dotted, Dashed, DashSmallGap, and Thick border lines are now exported from [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}) to [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) as well.
8080
8181
## See Also
8282

83-
* [TableCell]({%slug radpdfprocessing-editing-tablecell%})
84-
* [Table]({%slug radpdfprocessing-editing-table%})
83+
* [TableCell]({%slug radpdfprocessing-editing-table-tablecell%})
84+
* [Table]({%slug radpdfprocessing-editing-table-overview%})
8585
* [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%})
86-
* [Supported Border Styles]({%slug radpdfprocessing-editing-table%})
86+
* [Supported Border Styles]({%slug radpdfprocessing-editing-table-overview%})
8787

8888

knowledge-base/customize-table-layout-radpdfprocessing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,5 @@ Here's an example code snippet demonstrating the setup:
188188

189189
## See Also
190190

191-
- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table%})
192-
- [TableCell]({%slug radpdfprocessing-editing-tablecell%})
191+
- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table-overview%})
192+
- [TableCell]({%slug radpdfprocessing-editing-table-tablecell%})

knowledge-base/generate-table-with-images-pdf-processing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ res_type: kb
1515

1616
# Description
1717

18-
Learn how to create a PDF document containing a [Table]({%slug radpdfprocessing-editing-table%}) with [images]({%slug radpdfprocessing-model-image%}).
18+
Learn how to create a PDF document containing a [Table]({%slug radpdfprocessing-editing-table-overview%}) with [images]({%slug radpdfprocessing-model-image%}).
1919

2020
# Solution
2121

@@ -82,7 +82,7 @@ Here is an example of how to implement this solution:
8282

8383
# See Also
8484
- [RadPdfProcessing]({%slug radpdfprocessing-overview%}})
85-
- [Table]({%slug radpdfprocessing-editing-table%})
85+
- [Table]({%slug radpdfprocessing-editing-table-overview%})
8686
- [Images]({%slug radpdfprocessing-model-image%})
8787

8888
Remember to adjust the code according to your specific requirements and environment.

knowledge-base/generate-table-with-radfixeddocumenteditor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The observed result is illustrated below:
9898
## See Also
9999
- [RadPdfProcessing]({%slug radpdfprocessing-overview%})
100100
- [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%})
101-
- [Table]({%slug radpdfprocessing-editing-table%})
101+
- [Table]({%slug radpdfprocessing-editing-table-overview%})
102102
- [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%})
103103
- [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%})
104104

knowledge-base/insert-form-xobject-elements-pdf-table-cell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ticketid: 1663177
1717

1818
## Description
1919

20-
Learn how to insert interactive [form fields]({%slug radpdfprocessing-model-interactive-forms-form-fields%}) such as [radio buttons]({%slug radpdfprocessing-model-interactive-forms-form-fields-radiobuttonfield%}) and [textboxes]({%slug radpdfprocessing-model-interactive-forms-form-fields-textboxfield%}) into [table cells]({%slug radpdfprocessing-editing-tablecell%}) in a PDF document using RadPdfProcessing.
20+
Learn how to insert interactive [form fields]({%slug radpdfprocessing-model-interactive-forms-form-fields%}) such as [radio buttons]({%slug radpdfprocessing-model-interactive-forms-form-fields-radiobuttonfield%}) and [textboxes]({%slug radpdfprocessing-model-interactive-forms-form-fields-textboxfield%}) into [table cells]({%slug radpdfprocessing-editing-table-tablecell%}) in a PDF document using RadPdfProcessing.
2121

2222
![Pdf Table with Form Fields](images/pdf-table-with-form-fields.png)
2323

@@ -27,7 +27,7 @@ To insert interactive form fields like radio buttons and textboxes into table ce
2727

2828
1. Create a new [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) and add a page to it.
2929
2. Initialize a [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) on the page for drawing content.
30-
3. Define a [Table]({%slug radpdfprocessing-editing-table%}) object and configure its properties, including borders and cell padding.
30+
3. Define a [Table]({%slug radpdfprocessing-editing-table-overview%}) object and configure its properties, including borders and cell padding.
3131
4. For each row in the table:
3232
- Add a text cell with the caption using [InsertText](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/block#inserting-text).
3333
- Create a [RadioButtonField]({%slug radpdfprocessing-model-interactive-forms-form-fields-radiobuttonfield%}) , configure its options, and draw it in a table cell.

knowledge-base/insert-html-content-into-pdf-tablecell-radpdfprocessing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ticketid: 1671595
1616
| 2024.4.1106.NET Standard| RadWordsProcessing-RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)|
1717

1818
## Description
19-
When generating PDF documents, a common requirement is to insert HTML content into specific sections of the document, such as a [TableCell]({%slug radpdfprocessing-editing-tablecell%}). This article demonstrates how to achieve this using the smooth integration between [RadPdfProcessing]({%slug radpdfprocessing-overview%}) and [RadWordsProcessing]({%slug radwordsprocessing-overview%}) libraries.
19+
When generating PDF documents, a common requirement is to insert HTML content into specific sections of the document, such as a [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}). This article demonstrates how to achieve this using the smooth integration between [RadPdfProcessing]({%slug radpdfprocessing-overview%}) and [RadWordsProcessing]({%slug radwordsprocessing-overview%}) libraries.
2020

2121
>caption Sample HTML content to Insert
2222
@@ -43,7 +43,7 @@ To insert HTML content into a `TableCell` in a PDF document, you can obtain the
4343

4444
1. **Convert the exported PDF content to an Image**: Use the RadPdfProcessing's [PdfFormatProvider]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%}) to import the PDF-converted HTML content to [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) and the [SkiaImageFormatProvider]({%slug radpdfprocessing-formats-and-conversion-image-using-skiaimageformatprovider%}) to export the PDF pages to images.
4545

46-
1. **Insert the exported Images into the PDF TableCell**: Use RadPdfProcessing's [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) to create the main PDF document with a table and insert the converted PDF images into the desired [TableCell]({%slug radpdfprocessing-editing-tablecell%}).
46+
1. **Insert the exported Images into the PDF TableCell**: Use RadPdfProcessing's [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) to create the main PDF document with a table and insert the converted PDF images into the desired [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}).
4747

4848
### Inserting HTML Content as PDF
4949

knowledge-base/table-column-span-radpdfprocessing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ticketid: 1660148
1717

1818
## Description
1919

20-
Creating [tables]({%slug radpdfprocessing-editing-table%}) with varying column counts and sizes in a PDF can be challenging, especially when trying to merge cells across columns to achieve a specific layout. This article demonstrates how to use the `ColumnSpan` property in the RadPdfProcessing library to merge cells across columns and adjust the layout of tables as required. This KB article also answers the following questions:
20+
Creating [tables]({%slug radpdfprocessing-editing-table-overview%}) with varying column counts and sizes in a PDF can be challenging, especially when trying to merge cells across columns to achieve a specific layout. This article demonstrates how to use the `ColumnSpan` property in the RadPdfProcessing library to merge cells across columns and adjust the layout of tables as required. This KB article also answers the following questions:
2121
- How do I merge cells across columns in a PDF table using RadPdfProcessing?
2222
- How can I adjust the column count dynamically in a table created with RadPdfProcessing?
2323
- What is the correct way to apply `ColumnSpan` in RadPdfProcessing tables for custom layouts?
@@ -26,7 +26,7 @@ Creating [tables]({%slug radpdfprocessing-editing-table%}) with varying column c
2626

2727
To correctly implement column spanning in tables using RadPdfProcessing, follow these steps:
2828

29-
1. Create a new [Table]({%slug radpdfprocessing-editing-table%}) and configure its properties, such as `LayoutType` and `DefaultCellProperties`.
29+
1. Create a new [Table]({%slug radpdfprocessing-editing-table-overview%}) and configure its properties, such as `LayoutType` and `DefaultCellProperties`.
3030

3131
2. When adding cells to a row that includes a column span, adjust the number of added cells accordingly. For a row with cells that should span across multiple columns, reduce the number of total cells in that row by the span amount minus one.
3232

@@ -115,5 +115,5 @@ The achieved result is illustrated below:
115115

116116
## See Also
117117

118-
- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table%})
119-
- [TableCell]({%slug radpdfprocessing-editing-tablecell%})
118+
- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table-overview%})
119+
- [TableCell]({%slug radpdfprocessing-editing-table-tablecell%})

0 commit comments

Comments
 (0)