PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
How to get ParagraphRendererInfo of Paragraph inside table http://forum.pdfsharp.de/viewtopic.php?f=2&t=4220 |
Page 1 of 1 |
Author: | yogesh.kushwaha [ Mon Jan 11, 2021 2:08 pm ] | ||
Post subject: | How to get ParagraphRendererInfo of Paragraph inside table | ||
Hi I am trying to add DocumentLink on the Paragraph which I have added using Migradoc. I have attached the photo of my document It has Heading as Paragraph and then Table I have added Tag to the Paragraph "API-Architecture" as below which is inside table row. Code: var paragraph = row.Cells[1].AddParagraph("API-Architecture"); row.Cells[1].Format.Alignment = ParagraphAlignment.Left; paragraph.Tag = "API-Architecture"; And trying to read it like as below Code: RenderInfo[] renderInfos = pdfDocumentRenderer.DocumentRenderer.GetRenderInfoFromPage(1); Here I only get two values in array Quote: ParagraphRenderer (Index Paragraph) TableRenderer (Table) But how can I get RendererInfo of the paragraphs inside table rows? I want RendererInfo becuase I want to get the LayoutInfo from that.
|
Author: | () => true [ Mon Jan 11, 2021 4:52 pm ] |
Post subject: | Re: How to get ParagraphRendererInfo of Paragraph inside tab |
Hi! Don't ask questions in the Samples section. Thanks |
Author: | TH-Soft [ Tue Jan 12, 2021 8:21 am ] |
Post subject: | Re: How to get ParagraphRendererInfo of Paragraph inside tab |
yogesh.kushwaha wrote: But how can I get RendererInfo of the paragraphs inside table rows? I already did that in a project. I don't remember details and didn't find the old project in a quick search.There is a way to find the cells contained in the table and the paragraphs in the cell. It requires recursion and cannot be done with a simple for loop. |
Author: | yogesh.kushwaha [ Tue Jan 12, 2021 9:22 am ] |
Post subject: | Re: How to get ParagraphRendererInfo of Paragraph inside tab |
TH-Soft wrote: There is a way to find the cells contained in the table and the paragraphs in the cell. It requires recursion and cannot be done with a simple for loop. I am able to find the paragraph inside cell by the Tag. but problem is I get it as Paragraph and not as ParagraphRenderer. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |