diff --git a/_config.yml b/_config.yml index 8f36cf71..4d3148ed 100644 --- a/_config.yml +++ b/_config.yml @@ -260,7 +260,10 @@ navigation: position: 7 libraries/radpdfprocessing/model/formsource: title: FormSource - position: 8 + position: 8 + libraries/radpdfprocessing/editing/table: + title: Table + position: 2 ## RadZipLibrary Start "*radziplibrary": title: RadZipLibrary diff --git a/knowledge-base/avoid-table-splits-across-pages-radpdfprocessing.md b/knowledge-base/avoid-table-splits-across-pages-radpdfprocessing.md index 2b4d3e1f..edda7170 100644 --- a/knowledge-base/avoid-table-splits-across-pages-radpdfprocessing.md +++ b/knowledge-base/avoid-table-splits-across-pages-radpdfprocessing.md @@ -91,4 +91,4 @@ Measuring the table and calculating the remaining page height is the suitable ap ## See Also - [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) -- [Tables]({%slug radpdfprocessing-editing-table%}) +- [Tables]({%slug radpdfprocessing-editing-table-overview%}) diff --git a/knowledge-base/change-block-text-color-in-pdf-table.md b/knowledge-base/change-block-text-color-in-pdf-table.md index cd974103..c8de9f04 100644 --- a/knowledge-base/change-block-text-color-in-pdf-table.md +++ b/knowledge-base/change-block-text-color-in-pdf-table.md @@ -28,7 +28,7 @@ To change the text color inside a table in a PDF document using RadPdfProcessing Here's how to achieve this: -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. +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. 2. Add a [Block]({%slug radpdfprocessing-editing-block%}) to the cell for the text you want to display. 3. Use `SaveGraphicProperties()` to save the current graphic state. 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. diff --git a/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md b/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md index 87522c1f..7f34e9a5 100644 --- a/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md +++ b/knowledge-base/create-dashed-line-border-table-radpdfprocessing.md @@ -18,7 +18,7 @@ res_type: kb Learn how to add a dashed line border in a table using [RadPdfProcessing]({%slug radpdfprocessing-overview%}). # Solution -To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-table%}) in RadPdfProcessing, you can follow these steps: +To create a dashed line border for a [Table]({%slug radpdfprocessing-editing-table-overview%}) in RadPdfProcessing, you can follow these steps: 1. Set the desired font style properties for the table. 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 table.DefaultCellProperties.Borders = new TableCellBorders(null, null, null,b); ``` ->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. +>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. ## See Also -* [TableCell]({%slug radpdfprocessing-editing-tablecell%}) -* [Table]({%slug radpdfprocessing-editing-table%}) +* [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) +* [Table]({%slug radpdfprocessing-editing-table-overview%}) * [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) -* [Supported Border Styles]({%slug radpdfprocessing-editing-table%}) +* [Supported Border Styles]({%slug radpdfprocessing-editing-table-overview%}) diff --git a/knowledge-base/customize-table-layout-radpdfprocessing.md b/knowledge-base/customize-table-layout-radpdfprocessing.md index b1944bb1..a57f723a 100644 --- a/knowledge-base/customize-table-layout-radpdfprocessing.md +++ b/knowledge-base/customize-table-layout-radpdfprocessing.md @@ -188,5 +188,5 @@ Here's an example code snippet demonstrating the setup: ## See Also -- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table%}) -- [TableCell]({%slug radpdfprocessing-editing-tablecell%}) +- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table-overview%}) +- [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) diff --git a/knowledge-base/generate-table-with-images-pdf-processing.md b/knowledge-base/generate-table-with-images-pdf-processing.md index 6416c80e..ac95ca25 100644 --- a/knowledge-base/generate-table-with-images-pdf-processing.md +++ b/knowledge-base/generate-table-with-images-pdf-processing.md @@ -15,7 +15,7 @@ res_type: kb # Description -Learn how to create a PDF document containing a [Table]({%slug radpdfprocessing-editing-table%}) with [images]({%slug radpdfprocessing-model-image%}). +Learn how to create a PDF document containing a [Table]({%slug radpdfprocessing-editing-table-overview%}) with [images]({%slug radpdfprocessing-model-image%}). # Solution @@ -82,7 +82,7 @@ Here is an example of how to implement this solution: # See Also - [RadPdfProcessing]({%slug radpdfprocessing-overview%}}) -- [Table]({%slug radpdfprocessing-editing-table%}) +- [Table]({%slug radpdfprocessing-editing-table-overview%}) - [Images]({%slug radpdfprocessing-model-image%}) Remember to adjust the code according to your specific requirements and environment. diff --git a/knowledge-base/generate-table-with-radfixeddocumenteditor.md b/knowledge-base/generate-table-with-radfixeddocumenteditor.md index 81901d77..d3825148 100644 --- a/knowledge-base/generate-table-with-radfixeddocumenteditor.md +++ b/knowledge-base/generate-table-with-radfixeddocumenteditor.md @@ -98,7 +98,7 @@ The observed result is illustrated below: ## See Also - [RadPdfProcessing]({%slug radpdfprocessing-overview%}) - [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) -- [Table]({%slug radpdfprocessing-editing-table%}) +- [Table]({%slug radpdfprocessing-editing-table-overview%}) - [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%}) - [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%}) diff --git a/knowledge-base/insert-form-xobject-elements-pdf-table-cell.md b/knowledge-base/insert-form-xobject-elements-pdf-table-cell.md index 565831b3..046d4508 100644 --- a/knowledge-base/insert-form-xobject-elements-pdf-table-cell.md +++ b/knowledge-base/insert-form-xobject-elements-pdf-table-cell.md @@ -17,7 +17,7 @@ ticketid: 1663177 ## Description -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. +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. ![Pdf Table with Form Fields](images/pdf-table-with-form-fields.png) @@ -27,7 +27,7 @@ To insert interactive form fields like radio buttons and textboxes into table ce 1. Create a new [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) and add a page to it. 2. Initialize a [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) on the page for drawing content. -3. Define a [Table]({%slug radpdfprocessing-editing-table%}) object and configure its properties, including borders and cell padding. +3. Define a [Table]({%slug radpdfprocessing-editing-table-overview%}) object and configure its properties, including borders and cell padding. 4. For each row in the table: - Add a text cell with the caption using [InsertText](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/block#inserting-text). - Create a [RadioButtonField]({%slug radpdfprocessing-model-interactive-forms-form-fields-radiobuttonfield%}) , configure its options, and draw it in a table cell. diff --git a/knowledge-base/insert-html-content-into-pdf-tablecell-radpdfprocessing.md b/knowledge-base/insert-html-content-into-pdf-tablecell-radpdfprocessing.md index e909e955..d8099eba 100644 --- a/knowledge-base/insert-html-content-into-pdf-tablecell-radpdfprocessing.md +++ b/knowledge-base/insert-html-content-into-pdf-tablecell-radpdfprocessing.md @@ -16,7 +16,7 @@ ticketid: 1671595 | 2024.4.1106.NET Standard| RadWordsProcessing-RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| ## Description -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. +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. >caption Sample HTML content to Insert @@ -43,7 +43,7 @@ To insert HTML content into a `TableCell` in a PDF document, you can obtain the 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. -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%}). +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%}). ### Inserting HTML Content as PDF diff --git a/knowledge-base/table-column-span-radpdfprocessing.md b/knowledge-base/table-column-span-radpdfprocessing.md index 83c5efa7..331053ef 100644 --- a/knowledge-base/table-column-span-radpdfprocessing.md +++ b/knowledge-base/table-column-span-radpdfprocessing.md @@ -17,7 +17,7 @@ ticketid: 1660148 ## Description -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: +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: - How do I merge cells across columns in a PDF table using RadPdfProcessing? - How can I adjust the column count dynamically in a table created with RadPdfProcessing? - 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 To correctly implement column spanning in tables using RadPdfProcessing, follow these steps: -1. Create a new [Table]({%slug radpdfprocessing-editing-table%}) and configure its properties, such as `LayoutType` and `DefaultCellProperties`. +1. Create a new [Table]({%slug radpdfprocessing-editing-table-overview%}) and configure its properties, such as `LayoutType` and `DefaultCellProperties`. 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. @@ -115,5 +115,5 @@ The achieved result is illustrated below: ## See Also -- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table%}) -- [TableCell]({%slug radpdfprocessing-editing-tablecell%}) +- [Tables in RadPdfProcessing]({%slug radpdfprocessing-editing-table-overview%}) +- [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) diff --git a/knowledge-base/table-header-row-in-pdf-processing.md b/knowledge-base/table-header-row-in-pdf-processing.md index 09c3dc7c..8382d52d 100644 --- a/knowledge-base/table-header-row-in-pdf-processing.md +++ b/knowledge-base/table-header-row-in-pdf-processing.md @@ -15,7 +15,7 @@ res_type: kb ## Description -[RadPdfProcessing]({%slug radpdfprocessing-overview%}) allows you to create [Tables]({%slug radpdfprocessing-editing-table%}). A common requirement is to have a header row for the table. This article shows how to simulate such functionality. +[RadPdfProcessing]({%slug radpdfprocessing-overview%}) allows you to create [Tables]({%slug radpdfprocessing-editing-table-overview%}). A common requirement is to have a header row for the table. This article shows how to simulate such functionality. ## Solution Table header row can be added as a standard TableRow with bold text. @@ -73,6 +73,6 @@ Table header row can be added as a standard TableRow with bold text. * [How to implement FontsProvider]({%slug pdfprocessing-implement-fontsprovider%}}) * [Fonts]({%slug radpdfprocessing-cross-platform-fonts%}}) -* [TableCell]({%slug radpdfprocessing-editing-tablecell%}) -* [Table]({%slug radpdfprocessing-editing-table%}) +* [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) +* [Table]({%slug radpdfprocessing-editing-table-overview%}) * [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}}) diff --git a/libraries/radpdfprocessing/changes-and-backward-compatibility/changes.md b/libraries/radpdfprocessing/changes-and-backward-compatibility/changes.md index f05b7f3a..84dc4cc5 100644 --- a/libraries/radpdfprocessing/changes-and-backward-compatibility/changes.md +++ b/libraries/radpdfprocessing/changes-and-backward-compatibility/changes.md @@ -26,7 +26,7 @@ __What's New__ * RadFixedDocumentEditor class which creates fixed content in a flow-like manner. [Read more.]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) -* Introduced Tables generator allowing easy export of tabular data content. [Read more.]({%slug radpdfprocessing-editing-table%}) +* Introduced Tables generator allowing easy export of tabular data content. [Read more.]({%slug radpdfprocessing-editing-table-overview%}) * Exposed Block class allowing to draw and split in parts groups of text, images and shapes. [Read more.]({%slug radpdfprocessing-editing-block%}) diff --git a/libraries/radpdfprocessing/editing/fixedcontenteditor.md b/libraries/radpdfprocessing/editing/fixedcontenteditor.md index 4930b3f6..3f7b8795 100644 --- a/libraries/radpdfprocessing/editing/fixedcontenteditor.md +++ b/libraries/radpdfprocessing/editing/fixedcontenteditor.md @@ -34,7 +34,7 @@ position: 4 |**DrawEllipse**|Draws an ellipse ([Geometry]({%slug radpdfprocessing-concepts-geometry%})).| |**DrawCircle**|Draws a circle ([Geometry]({%slug radpdfprocessing-concepts-geometry%})).| |**DrawPath**|Draws a path ([Geometry]({%slug radpdfprocessing-concepts-geometry%})).| -|**DrawTable**|Draws a [Table]({%slug radpdfprocessing-editing-table%}) with size depening on the overload.| +|**DrawTable**|Draws a [Table]({%slug radpdfprocessing-editing-table-overview%}) with size depening on the overload.| |**DrawBlock**|Draws a [Block]({%slug radpdfprocessing-editing-block%}) with size depening on the overload.| |**Draw**|Draws the specified element.| @@ -194,7 +194,7 @@ __Example 8__ generates a table and draws it in some fixed size. ![Rad Pdf Processing Editing Fixed Content Editor 06](images/RadPdfProcessing_Editing_FixedContentEditor_06.png) -More detailed information about tables is available in the [Table]({%slug radpdfprocessing-editing-table%}) documentation article. +More detailed information about tables is available in the [Table]({%slug radpdfprocessing-editing-table-overview%}) documentation article. ### Inserting Forms @@ -307,7 +307,7 @@ __FixedContentEditor__ has some properties and methods that affect how it will b * [Image]({%slug radpdfprocessing-model-image%}) * [Geometry]({%slug radpdfprocessing-concepts-geometry%}) * [Clipping]({%slug radpdfprocessing-concepts-clipping%}) - * [Table]({%slug radpdfprocessing-editing-table%}) + * [Table]({%slug radpdfprocessing-editing-table-overview%}) * [How to Generate a PDF Document from Images with FixedContentEditor]({%slug pdf-from-images-with-fixedcontenteditor%}) * [Adding a Watermark to PDF Files Using RadPdfProcessing]({%slug add-watermark-pdf-radpdfprocessing%}) * [Adding Images with a Shadow in PDF Documents]({%slug add-shadow-image-radpdfprocessing%}) diff --git a/libraries/radpdfprocessing/editing/list.md b/libraries/radpdfprocessing/editing/list.md index d3fcfea3..cab74b16 100644 --- a/libraries/radpdfprocessing/editing/list.md +++ b/libraries/radpdfprocessing/editing/list.md @@ -261,9 +261,9 @@ The following code snippet shows how to create __List__ with __BulletDefault__ t ## See Also * [Block]({%slug radpdfprocessing-editing-block%}) -* [Table]({%slug radpdfprocessing-editing-table%}) -* [TableRow]({%slug radpdfprocessing-editing-tablerow%}) -* [TableCell]({%slug radpdfprocessing-editing-tablecell%}) +* [Table]({%slug radpdfprocessing-editing-table-overview%}) +* [TableRow]({%slug radpdfprocessing-editing-table-tablerow%}) +* [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) * [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) * [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) * [Customizing the Font of Numbered Lists with RadPdfProcessing]({%slug customize-font-numbered-lists-radpdfprocessing%}) diff --git a/libraries/radpdfprocessing/editing/radfixeddocumenteditor.md b/libraries/radpdfprocessing/editing/radfixeddocumenteditor.md index a18f8ae8..6ceec1fb 100644 --- a/libraries/radpdfprocessing/editing/radfixeddocumenteditor.md +++ b/libraries/radpdfprocessing/editing/radfixeddocumenteditor.md @@ -270,11 +270,11 @@ The __Table__ class implements the __IBlockElement__ interface and an instance o radFixedDocumentEditor.InsertTable(table); {{endregion}} -For more detailed information on tables, check the [Table]({%slug radpdfprocessing-editing-table%}) documentation article. +For more detailed information on tables, check the [Table]({%slug radpdfprocessing-editing-table-overview%}) documentation article. ## Block Elements -The [IBlockElement](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Fixed.Model.Editing.Flow.IBlockElement.html) interface allows you to easily draw and split some block content onto pages. The interface is implemented by [Block]({%slug radpdfprocessing-editing-block%}) and [Table]({%slug radpdfprocessing-editing-table%}) classes. You can easily add some block element instance with RadFixedDocumentEditor using the InsertBlock() method like illustrated in __Example 9__. +The [IBlockElement](https://docs.telerik.com/devtools/document-processing/api/Telerik.Windows.Documents.Fixed.Model.Editing.Flow.IBlockElement.html) interface allows you to easily draw and split some block content onto pages. The interface is implemented by [Block]({%slug radpdfprocessing-editing-block%}) and [Table]({%slug radpdfprocessing-editing-table-overview%}) classes. You can easily add some block element instance with RadFixedDocumentEditor using the InsertBlock() method like illustrated in __Example 9__. #### __[C#] Example 12: Insert Block element__ @@ -321,6 +321,6 @@ There is an additional overload of InsertFormInline() that enables you to pass t * [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) * [RadFixedPage]({%slug radpdfprocessing-model-radfixedpage%}) * [ImageSource]({%slug radpdfprocessing-model-imagesource%}) - * [Table]({%slug radpdfprocessing-editing-table%}) + * [Table]({%slug radpdfprocessing-editing-table-overview%}) * [How to Generate a PDF Document from Images with RadFixedDocumentEditor]({%slug pdf-from-images-with-radfixeddocumenteditor%}) * [Generating a Table with RadFixedDocumentEditor]({%slug generate-table-with-radfixeddocumenteditor%}) diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_TableCell_01.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_TableCell_01.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_TableCell_01.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_TableCell_01.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_TableRow_Height.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_TableRow_Height.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_TableRow_Height.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_TableRow_Height.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_01.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_01.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_01.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_01.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_02.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_02.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_02.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_02.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_03.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_03.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_03.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_03.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_04.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_04.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_04.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_04.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_05.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_05.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_05.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_05.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_06.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_06.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_06.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_06.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_07.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_07.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_07.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_07.png diff --git a/libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_08.png b/libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_08.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/RadPdfProcessing_Editing_Table_08.png rename to libraries/radpdfprocessing/editing/table/images/RadPdfProcessing_Editing_Table_08.png diff --git a/libraries/radpdfprocessing/editing/images/pdf-dash-small-gap-border.png b/libraries/radpdfprocessing/editing/table/images/pdf-dash-small-gap-border.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/pdf-dash-small-gap-border.png rename to libraries/radpdfprocessing/editing/table/images/pdf-dash-small-gap-border.png diff --git a/libraries/radpdfprocessing/editing/images/pdf-dashed-border.png b/libraries/radpdfprocessing/editing/table/images/pdf-dashed-border.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/pdf-dashed-border.png rename to libraries/radpdfprocessing/editing/table/images/pdf-dashed-border.png diff --git a/libraries/radpdfprocessing/editing/images/pdf-dotted-border.png b/libraries/radpdfprocessing/editing/table/images/pdf-dotted-border.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/pdf-dotted-border.png rename to libraries/radpdfprocessing/editing/table/images/pdf-dotted-border.png diff --git a/libraries/radpdfprocessing/editing/images/pdf-single-border.png b/libraries/radpdfprocessing/editing/table/images/pdf-single-border.png similarity index 100% rename from libraries/radpdfprocessing/editing/images/pdf-single-border.png rename to libraries/radpdfprocessing/editing/table/images/pdf-single-border.png diff --git a/libraries/radpdfprocessing/editing/table.md b/libraries/radpdfprocessing/editing/table/overview.md similarity index 65% rename from libraries/radpdfprocessing/editing/table.md rename to libraries/radpdfprocessing/editing/table/overview.md index 43d68986..b00fed0b 100644 --- a/libraries/radpdfprocessing/editing/table.md +++ b/libraries/radpdfprocessing/editing/table/overview.md @@ -1,13 +1,13 @@ --- -title: Table -page_title: Table -slug: radpdfprocessing-editing-table -tags: table +title: Overview +page_title: Table Overview +slug: radpdfprocessing-editing-table-overview +tags: table, overview, pdfprocessing, pdf, fixed, tablerow, tablecell published: True -position: 3 +position: 0 --- -# Table +# Table Overview The **Table** class helps you easily create tabular data content. All you need to do is define the table content and pass a Table instance to a [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) or a [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}). From then on, these editors are responsible for positioning, measuring, drawing and splitting the table onto pages. @@ -28,7 +28,7 @@ This article aims to present the table-related API in __RadPdfProcessing__. It c ## Defining Table Content -Each table contains a series of [TableRow]({%slug radpdfprocessing-editing-tablerow%}) instances each of which contains a series of [TableCell]({%slug radpdfprocessing-editing-tablecell%}) instances. In order to define a simple table, you need to generate the table cells and add some content to them. +Each table contains a series of [TableRow]({%slug radpdfprocessing-editing-table-tablerow%}) instances each of which contains a series of [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) instances. In order to define a simple table, you need to generate the table cells and add some content to them. __Example 1__ shows how to generate a simple table with two rows and three columns with some sample text in each table cell. @@ -36,21 +36,7 @@ __Example 1__ shows how to generate a simple table with two rows and three colum #### __[C#] Example 1: Create simple table__ -{{region cs-radpdfprocessing-editing-table_0}} - Table table = new Table(); - - TableRow firstRow = table.Rows.AddTableRow(); - firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell11"); - firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell12"); - firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell13"); - - TableRow secondRow = table.Rows.AddTableRow(); - secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell21"); - secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell22"); - secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("cell23"); -{{endregion}} - - + The result table is shown in __Figure 1__. @@ -73,25 +59,7 @@ __Еxample 2__ shows how to use the __DefaultCellProperties__ of a table #### __[C#] Example 2: Use DefaultCellProperties of Table__ -{{region cs-radpdfprocessing-editing-table_1}} - Table table = new Table(); - Border redBorder = new Border(2, new RgbColor(255, 0, 0)); - table.DefaultCellProperties.Borders = new TableCellBorders(redBorder); - table.DefaultCellProperties.Padding = new Thickness(20, 10, 20, 10); - table.DefaultCellProperties.Background = new RgbColor(0, 255, 0); - - TableRow firstRow = table.Rows.AddTableRow(); - firstRow.Cells.AddTableCell(); - firstRow.Cells.AddTableCell(); - firstRow.Cells.AddTableCell(); - - TableRow secondRow = table.Rows.AddTableRow(); - secondRow.Cells.AddTableCell(); - secondRow.Cells.AddTableCell(); - secondRow.Cells.AddTableCell(); -{{endregion}} - - + The result of the snippet in __Example 2__ is demonstrated on __Figure 2__. @@ -127,46 +95,21 @@ __Example 3__ demonstrates how border calculations occur with different __Border #### __[C#] Example 3: Create table with red border__ -{{region cs-radpdfprocessing-editing-table_2}} - Table table = new Table(); - table.DefaultCellProperties.Padding = new Thickness(10, 6, 10, 6); - Border redBorder = new Border(10, new RgbColor(255, 0, 0)); - table.Borders = new TableBorders(redBorder); -{{endregion}} - - + __Example 4__ adds a single row with two cells to the table from __Example 3__. The first cell has a green border with thickness 5 while the second cell has a blue border with thickness 3. #### __[C#] Example 4: Add green and blue cells__ -{{region cs-radpdfprocessing-editing-table_3}} - TableRow tableRow = table.Rows.AddTableRow(); - - TableCell firstCell = tableRow.Cells.AddTableCell(); - Border greenBorder = new Border(5, new RgbColor(0, 255, 0)); - firstCell.Borders = new TableCellBorders(greenBorder, greenBorder, greenBorder, greenBorder); - firstCell.Blocks.AddBlock().InsertText("green bordered cell"); - - TableCell secondCell = tableRow.Cells.AddTableCell(); - Border blueBorder = new Border(3, new RgbColor(0, 0, 255)); - secondCell.Borders = new TableCellBorders(blueBorder, blueBorder, blueBorder, blueBorder); - secondCell.Blocks.AddBlock().InsertText("blue bordered cell"); -{{endregion}} - - + __Figure 3__ shows the table from Example 3 and 4 with BorderCollapse property set to Collapse - all borders are drawn so that their middle lines coincide. #### __[C#] Example 5: Collapse border__ -{{region cs-radpdfprocessing-editing-table_4}} - table.BorderCollapse = BorderCollapse.Collapse; -{{endregion}} - - + #### Figure 3: Collapsed border ![Rad Pdf Processing Editing Table 04](images/RadPdfProcessing_Editing_Table_04.png) @@ -176,11 +119,7 @@ __Figure 4__ shows the same table with BorderCollapse property set to Separate - #### __[C#] Example 6: Separate border__ -{{region cs-radpdfprocessing-editing-table_5}} - table.BorderCollapse = BorderCollapse.Separate; -{{endregion}} - - + #### Figure 4: Separated border ![Rad Pdf Processing Editing Table 05](images/RadPdfProcessing_Editing_Table_05.png) @@ -195,37 +134,14 @@ __Example 7__ generates a simple table with two cells. #### __[C#] Example 7: Create table__ -{{region cs-radpdfprocessing-editing-table_6}} - Table table = new Table(); - - Border border = new Border(); - table.Borders = new TableBorders(border); - table.DefaultCellProperties.Borders = new TableCellBorders(border, border, border, border); - - table.BorderSpacing = 5; - table.BorderCollapse = BorderCollapse.Separate; - - TableRow row = table.Rows.AddTableRow(); - row.Cells.AddTableCell().Blocks.AddBlock().InsertText("First cell"); - row.Cells.AddTableCell().Blocks.AddBlock().InsertText("Second cell"); -{{endregion}} - - + __Example 8__ inserts the table from __Example 7__ in a RadFixedDocumentEditor and specifies the table layout type to AutoFit. #### __[C#] Example 8: Insert AutoFit table__ -{{region cs-radpdfprocessing-editing-table_7}} - using (RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document)) - { - table.LayoutType = TableLayoutType.AutoFit; - editor.InsertTable(table); - } -{{endregion}} - - + The result is that the table width is exactly as needed for fitting the cells content as visible in __Figure 5__. @@ -238,12 +154,7 @@ Specifying FixedWidth layout option produces different results. #### __[C#] Example 9: Insert FixedWidth table__ -{{region cs-radpdfprocessing-editing-table_8}} - table.LayoutType = TableLayoutType.FixedWidth; - editor.InsertTable(table); -{{endregion}} - - + #### Figure 6: FixedWidth table ![Rad Pdf Processing Editing Table 07](images/RadPdfProcessing_Editing_Table_07.png) @@ -258,19 +169,7 @@ __Example 10__ shows how to draw a rotated table with the help of FixedContentEd #### __[C#] Example 10: Draw rotated table__ -{{region cs-radpdfprocessing-editing-table_9}} - Table table = GenerateSampleTable(); - - RadFixedDocument document = new RadFixedDocument(); - RadFixedPage page = document.Pages.AddPage(); - FixedContentEditor editor = new FixedContentEditor(page, new SimplePosition()); - - editor.Position.Translate(10, 100); - editor.Position.Rotate(-45); - editor.DrawTable(table); -{{endregion}} - - + As a result, on __Figure 7__ you can see a 45-degree rotated table similar to the one on Figure 5. @@ -287,14 +186,14 @@ As of **Q3 2024**, along with the BorderStyle.*Single*, RadPdfProcessing offers |Single|![Pdf Single Border](images/pdf-single-border.png)| |Dotted|![Pdf Dotted Border](images/pdf-dotted-border.png)| |Dashed|![Pdf Dashed Border](images/pdf-dashed-border.png)| -|DashSmallGap|![Pdf Single Border](images/pdf-dash-small-gap-border.png)| +|DashSmallGap|![Pdf DashSmallGap Border](images/pdf-dash-small-gap-border.png)| ## See Also * [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) * [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) - * [TableRow]({%slug radpdfprocessing-editing-tablerow%}) - * [TableCell]({%slug radpdfprocessing-editing-tablecell%}) + * [TableRow]({%slug radpdfprocessing-editing-table-tablerow%}) + * [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) * [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%}) * [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%}) * [Implementing Column Span in RadPdfProcessing Tables]({%slug table-column-span-radpdfprocessing%}) diff --git a/libraries/radpdfprocessing/editing/tablecell.md b/libraries/radpdfprocessing/editing/table/tablecell.md similarity index 75% rename from libraries/radpdfprocessing/editing/tablecell.md rename to libraries/radpdfprocessing/editing/table/tablecell.md index 77f4a9b6..9f3943b6 100644 --- a/libraries/radpdfprocessing/editing/tablecell.md +++ b/libraries/radpdfprocessing/editing/table/tablecell.md @@ -1,17 +1,15 @@ --- title: TableCell page_title: TableCell -slug: radpdfprocessing-editing-tablecell -tags: tablecell +slug: radpdfprocessing-editing-table-tablecell +tags: table, overview, pdfprocessing, pdf, fixed, tablerow, tablecell published: True -position: 1 +position: 2 --- # TableCell - - -__TableCell__ class represents a single cell in a [Table]({%slug radpdfprocessing-editing-table%}). Cells are added to a [TableRow]({%slug radpdfprocessing-editing-tablerow%}) instance in the rows collection of a table. The main purpose of the cell is to contain, organize and layout tabular data. +__TableCell__ class represents a single cell in a [Table]({%slug radpdfprocessing-editing-table-overview%}). Cells are added to a [TableRow]({%slug radpdfprocessing-editing-table-tablerow%}) instance in the rows collection of a table. The main purpose of the cell is to contain, organize and layout tabular data. * [Inserting a TableCell](#inserting-a-tablecell) @@ -31,13 +29,7 @@ The code snippet in __Example 1__ shows how to create a table with a single row #### __[C#] Example 1: Create TableCell__ -{{region cs-radpdfprocessing-editing-tablecell_0}} - Table table = new Table(); - TableRow firstRow = table.Rows.AddTableRow(); - TableCell firstCell = firstRow.Cells.AddTableCell(); -{{endregion}} - - + ## Adding Cell Content @@ -49,12 +41,7 @@ __Example 2__ shows how to create a cell with a single [Block]({%slug radpdfproc #### __[C#] Example 2: Add content to TableCell__ -{{region cs-radpdfprocessing-editing-tablecell_1}} - Block block = firstCell.Blocks.AddBlock(); - block.InsertText("Text in the cell."); -{{endregion}} - - + ## Modifying a TableCell @@ -84,25 +71,17 @@ __Example 3__ demonstrates how to set locally the cell properties to a specific #### __[C#] Example 1: Change TableCell appearance__ -{{region cs-radpdfprocessing-editing-tablecell_2}} - firstCell.RowSpan = 2; - firstCell.ColumnSpan = 2; - firstCell.Borders = new TableCellBorders(new Border(1, new RgbColor(150, 0, 0))); - firstCell.Background = new RgbColor(255, 100, 100); -{{endregion}} - - + The result from __Example 3__ is illustrated on __Figure 1__. - #### Figure 1: TableCell ![Rad Pdf Processing Editing Table Cell 01](images/RadPdfProcessing_Editing_TableCell_01.png) ## See Also - * [Table]({%slug radpdfprocessing-editing-table%}) - * [TableRow]({%slug radpdfprocessing-editing-tablerow%}) + * [Table]({%slug radpdfprocessing-editing-table-overview%}) + * [TableRow]({%slug radpdfprocessing-editing-table-tablerow%}) * [Block]({%slug radpdfprocessing-editing-block%}) * [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%}) * [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%}) diff --git a/libraries/radpdfprocessing/editing/tablerow.md b/libraries/radpdfprocessing/editing/table/tablerow.md similarity index 71% rename from libraries/radpdfprocessing/editing/tablerow.md rename to libraries/radpdfprocessing/editing/table/tablerow.md index 76a4bf5c..0f6eb930 100644 --- a/libraries/radpdfprocessing/editing/tablerow.md +++ b/libraries/radpdfprocessing/editing/table/tablerow.md @@ -1,17 +1,17 @@ --- title: TableRow page_title: TableRow -slug: radpdfprocessing-editing-tablerow -tags: tablerow +slug: radpdfprocessing-editing-table-tablerow +tags: table, overview, pdfprocessing, pdf, fixed, tablerow, tablecell published: True -position: 2 +position: 1 --- # TableRow -__TableRow__ class represents a single row in a [Table]({%slug radpdfprocessing-editing-table%}). Each row contains a collection of [TableCell]({%slug radpdfprocessing-editing-tablecell%}) instances. +__TableRow__ class represents a single row in a [Table]({%slug radpdfprocessing-editing-table-overview%}). Each row contains a collection of [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) instances. * [Inserting a Row](#inserting-a-row-) @@ -28,12 +28,7 @@ The code snippet in __Example 1__ shows how to create a table and add a single r #### __[C#] Example 1: Create TableRow__ -{{region cs-radpdfprocessing-editing-tablerow_0}} - Table table = new Table(); - TableRow tableRow = table.Rows.AddTableRow(); -{{endregion}} - - + ## Using TableCellCollection @@ -45,11 +40,7 @@ __Example 2__ shows how to add two cells in a row and get the cells count. #### __[C#] Example 2: Access cells in a TableRow__ -{{region cs-radpdfprocessing-editing-tablerow_1}} - TableCell firstCell = tableRow.Cells.AddTableCell(); - TableCell secondCell = tableRow.Cells.AddTableCell(); - int cellsInRowCount = tableRow.Cells.Count; -{{endregion}} + ## Setting TableRow Height @@ -65,12 +56,12 @@ __Example 3__ creates a table with three single-cell rows, each with a different #### __[C#] Example 3: Set TableRow height__ - + ![Rad Pdf Processing Editing TableRow Height](images/RadPdfProcessing_Editing_TableRow_Height.png) ## See Also - * [Table]({%slug radpdfprocessing-editing-table%}) - * [TableCell]({%slug radpdfprocessing-editing-tablecell%}) + * [Table]({%slug radpdfprocessing-editing-table-overview%}) + * [TableCell]({%slug radpdfprocessing-editing-table-tablecell%}) * [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%}) diff --git a/libraries/radpdfprocessing/overview.md b/libraries/radpdfprocessing/overview.md index 90f77e6e..6c9fbc76 100644 --- a/libraries/radpdfprocessing/overview.md +++ b/libraries/radpdfprocessing/overview.md @@ -38,7 +38,7 @@ The document model of the library provides support for: | Feature | Description | |---------|-------------| | [**Pages**]({%slug radpdfprocessing-model-radfixedpage%}) | Adding, modifying or removing of pages in a document. The properties enable you to change the size of the page, its rotation, and more. | -| **Automatic layout** | Although the PDF format is fixed, sometimes you will need to insert the content in a way that flows on the page. RadPdfProcessing enables to achieve this easily by using [blocks]({%slug radpdfprocessing-editing-block%}), [tables]({%slug radpdfprocessing-editing-table%}) and [lists]({%slug radpdfprocessing-editing-list%}). | +| **Automatic layout** | Although the PDF format is fixed, sometimes you will need to insert the content in a way that flows on the page. RadPdfProcessing enables to achieve this easily by using [blocks]({%slug radpdfprocessing-editing-block%}), [tables]({%slug radpdfprocessing-editing-table-overview%}) and [lists]({%slug radpdfprocessing-editing-list%}). | | [**Images**]({%slug radpdfprocessing-model-image%}) | Decoded on demand to achieve better performance. The API enables you to obtain the encoded image data. You can also control the image quality when saving the document. As of **Q3 2024** RadPdfProcessing provides support for SVG (vector graphics image format).| | [**Geometries**]({%slug radpdfprocessing-concepts-geometry%}) | Enable you to describe the geometry of a 2D shape. | | [**Form XObjects**]({%slug radpdfprocessing-model-form%}) | The Form XObjects enables you to describe composite objects (consisting of text, images, vector elements, etc.) within a PDF file and reuse this content among the document, for smaller document size and better rendering performance. | diff --git a/web.config b/web.config index 30c9d2cd..1b24585c 100644 --- a/web.config +++ b/web.config @@ -187,6 +187,18 @@ + + + + + + + + + + + +