Declined
Last Updated: 22 Sep 2022 08:59 by ADMIN
Babu
Created on: 19 Sep 2022 14:32
Category: Telerik Document Processing
Type: Bug Report
1
PDFFormatPRovider - Table alignment is not proper

1. Line Height is not converted properly.  for example, if we set the line height is 1.5 in angular UI editor, in PDF is not shown properly,

2. Table alignment is not proper -  After resizing the in the angular editor, the same alignment is not converted in PDF. I think colgroup and cols custom tags are not considering while converting the PDF.

4 comments
ADMIN
Dimitar
Posted on: 22 Sep 2022 08:59

Hello Babu,

Thank you for sharing the HTML. I was able to reproduce this with it. It turns out that a similar issue is already logged on our feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here: Wordsprocessing: Line-height of the spans is not imported when converting Html to Docx

Since both issues are already logged I will set the status of this item to declined.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Babu
Posted on: 20 Sep 2022 09:33

can you please change  "line-height:1.5" to the shared HTML . Compare the both  HTML  and PDF content , you can see the line space is different between both.

 

For example.

<p style="line-height: 1.5;"></p>

Babu
Posted on: 20 Sep 2022 09:30

HI please find the  HTML  for table alignment issue

 

<p style="line-height: normal;">test1:</p>
<table style="height: 69px; width: 700.984px;" k-colgroup-data="<colgroup><col style=&quot;width: 351.906px;&quot;><col style=&quot;width: 349.078px;&quot;></colgroup>" k-resizable-node="false"><tr style="height: 34px;"><td style="width: 350.906px;"><p style="line-height: normal;">Specimen</p>
</td>
<td style="width: 349.078px;"><p style="line-height: normal;"><span style="font-family:Calibri, Candara, Segoe, &quot;Segoe UI&quot;, Optima, Arial, sans-serif" class="CP_B_BlockType_Code" id="CP_B_BlockType_Code" name="CP_B_BlockType_Code">&nbsp;specimen</span></p>
</td>
</tr>
<tr><td style="width: 350.906px;"><p style="line-height: normal;">Tumor</p>
</td>
<td style="width: 349.078px;"><p style="line-height: normal;"><span style="font-family:Calibri, Candara, Segoe, &quot;Segoe UI&quot;, Optima, Arial, sans-serif" class="CP_B_BlockType_Expansion" id="CP_B_BlockType_Expansion" name="CP_B_BlockType_Expansion">&nbsp;tumor</span></p>
</td>
</tr>
</table>
<p style="line-height: normal;"></p>
<p style="line-height: normal;">test2:</p>
<table style="width: 698px;" k-colgroup-data="<colgroup><col style=&quot;width: 343px;&quot;><col style=&quot;width: 355px;&quot;></colgroup>" k-resizable-node="false"><tr><td style="width: 304px;"><p style="line-height: normal;"><span style="color: rgb(0, 0, 0); font-family: &quot;Times New Roman&quot;; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Distance beyond muscularis propria:</span></p>
</td>
<td style="width: 304px;"><p style="line-height: normal;"><span style="font-family:Calibri, Candara, Segoe, &quot;Segoe UI&quot;, Optima, Arial, sans-serif" class="CP_B_Block_LabSection" id="CP_B_Block_LabSection" name="CP_B_Block_LabSection">&nbsp;l1</span></p>
</td>
</tr>
<tr><td style="width: 304px;"><p style="line-height: normal;"><span style="color: rgb(0, 0, 0); font-family: &quot;Times New Roman&quot;; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Distance from Dentate line:</span></p>
</td>
<td style="width: 304px;"><p style="line-height: normal;"><span style="font-family:Calibri, Candara, Segoe, &quot;Segoe UI&quot;, Optima, Arial, sans-serif" class="CP_B_Block_Processing_Instruction" id="CP_B_Block_Processing_Instruction" name="CP_B_Block_Processing_Instruction">&nbsp;</span></p>
</td>
</tr>
</table>
<p style="line-height: normal;"></p>

ADMIN
Dimitar
Posted on: 20 Sep 2022 09:11

Hi Babu,

1. Can you save the generated HTML and send it to us? This will allow us to properly investigate the issue and determine why this is not working as expected. 

2. This is a known limitation. We have a feature request for it on our feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here: PdfPRocessing: Add support for custom attributes from the Kendo editor.

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.