Skip to content

Commit d6dec54

Browse files
committed
addressed feedback by Yoan's review
1 parent 8651ad9 commit d6dec54

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

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

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Generating a Table with RadFixedDocumentEditor
3-
description: Learn how to build a table using RadFixedDocumentEditor in RadPdfProcessing and explores the alternative RadFixedDocumentEditor for a flow-like content management.
3+
description: Learn how to build a table using the RadFixedDocumentEditor for flow-like content management in RadPdfProcessing.
44
type: how-to
55
page_title: How to Generate a Table with RadFixedDocumentEditor
66
slug: generate-table-with-radfixeddocumenteditor
7-
tags: pdf, document, processing, fixedcontenteditor, radfixeddocumenteditor, edit, table
7+
tags: pdf, document, processing, fixedcontenteditor, fixeddocumenteditor, edit, table,flow, position
88
res_type: kb
99
ticketid: 1674934
1010
---
@@ -14,27 +14,13 @@ ticketid: 1674934
1414

1515
## Description
1616

17-
When creating or editing a PDF document using [RadPdfProcessing]({%slug radpdfprocessing-overview%}), understanding how to manage the positioning of elements is essential. This knowledge base article addresses the question of whether it's necessary to reposition all elements below a newly added element in the middle of the PDF file using [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) and explores the alternative functionality offerred by the [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) to generate a PDF table.
17+
When creating or editing a PDF document using [RadPdfProcessing]({%slug radpdfprocessing-overview%}), understanding how to manage the positioning of elements is essential. To eliminate the necessity of repositioning all elements below a newly added element in the middle of the PDF file, explore the functionality offerred by the [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}) to generate a PDF table.
1818

1919
## Solution
2020

21-
RadPdfProcessing offers two options for manipulating the content in a PDF document:
21+
RadPdfProcessing offers the [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}, which allows for a flow-like content management approach and allows you to insert all desired elements one after another without calculating the elements' position. We will use this approach for generating the PDF table.
2222

23-
* **[FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%})** - requires managing the Position at which the document elements will be drawn.
24-
25-
* **[RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%})** - manages the document's content in a flow-like manner and allows you to insert all desired elements one after another without calculating the elements' position.
26-
27-
### Managing Elements with FixedContentEditor
28-
29-
The [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) in RadPdfProcessing enables precise control over the element's positioning within a PDF page. It acts as a pencil, allowing content to be drawn at specific locations. After adding an element, adjust the editor's Position to prevent overlapping with subsequent elements. This method requires manual management of each element's position, especially when inserting a new element amidst existing ones.
30-
31-
For more insights on using FixedContentEditor effectively, consider reviewing these resources:
32-
- [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%})
33-
- [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%})
34-
35-
### Flow-Like Content Management with RadFixedDocumentEditor
36-
37-
Alternatively, RadPdfProcessing offers the [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%}, which allows for a flow-like content management approach. This editor automates the positioning of elements, enabling you to insert content sequentially without manually calculating positions. This option might be more suitable for scenarios where manual positioning is cumbersome.
23+
This editor automates the positioning of elements, enabling you to insert content sequentially without manually calculating positions. This option might be more suitable for scenarios where manual positioning is cumbersome.
3824

3925
The following example demonstrates how to create a table which result is illustrated below:
4026

@@ -55,7 +41,6 @@ The following example demonstrates how to create a table which result is illustr
5541
cell.Blocks.AddBlock().InsertText("Statement Date");
5642
cell.Blocks.AddBlock().InsertText("November 15, 2021");
5743

58-
5944
row = table.Rows.AddTableRow();
6045
cell = row.Cells.AddTableCell();
6146
cell.Blocks.AddBlock().InsertText(" ");
@@ -72,7 +57,6 @@ The following example demonstrates how to create a table which result is illustr
7257
cell.Blocks.AddBlock().InsertText("Period Statement from");
7358
cell.Blocks.AddBlock().InsertText("November 1, 2021");;
7459

75-
7660
row = table.Rows.AddTableRow();
7761
cell = row.Cells.AddTableCell();
7862
cell.Blocks.AddBlock().InsertText(" ");
@@ -94,7 +78,6 @@ The following example demonstrates how to create a table which result is illustr
9478

9579
radFixedDocumentEditor.Dispose();
9680

97-
9881
string outputFilePath = "output.pdf";
9982
File.Delete(outputFilePath);
10083
PdfFormatProvider provider = new PdfFormatProvider();
@@ -106,11 +89,16 @@ The following example demonstrates how to create a table which result is illustr
10689
Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true });
10790
```
10891

92+
The observed result is illustrated below:
93+
10994
![Table with RadFixedDocumentEditor](images/pdf-table-with-radfixeddocumenteditor.png)
11095

96+
>note RadPdfProcessing offers an alternative approach with **[FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%})**. However, it requires managing the Position at which the document elements will be drawn. Enables precise control over the element's positioning within a PDF page. It acts as a pencil, allowing content to be drawn at specific locations.
97+
11198
## See Also
11299
- [RadPdfProcessing]({%slug radpdfprocessing-overview%})
113100
- [RadFixedDocumentEditor]({%slug radpdfprocessing-editing-radfixeddocumenteditor%})
114101
- [Table]({%slug radpdfprocessing-editing-table%})
115-
102+
- [Creating Custom Layout Tables with RadPdfProcessing]({%slug customize-table-layout-radpdfprocessing%})
103+
- [How to Generate a Table with Images with PdfProcessing]({%slug generate-table-with-images-pdf-processing%})
116104

0 commit comments

Comments
 (0)