This is a migrated thread and some comments may be shown as answers.

Documents.Flow.FormatProviders.Pdf.PdfFormatProvider

8 Answers 402 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 03 Sep 2015, 06:32 PM

Hi,

I am using the PdfFormatProvider to create pdf files from RadFlowDocument, however the result is not equal to the original layout.

Lines disappear and the table cell padding is wrong.

Please find attached:

Image1: The original file displayed in the RichTextEditor

Image2: The pdf file displayed in the PDF Viewer

Using a standard pdf printer form word renders the word file OK.

 

 

8 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 04 Sep 2015, 04:23 PM
Hi Brian,

Could you please confirm whether you're using RadFlowDocument and the WordsProcessing library? You mentioned the RichTextEditor control which also allows export to PDF format, but its model is based on the RadDocument class, so I'm not sure what exactly your setup is.

Regards,
Petya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Brian
Top achievements
Rank 1
answered on 04 Sep 2015, 04:28 PM

Hi Petya,

Yes, all processing is done by RadFlowDocument and the WordsProcessing library including the creation of the pdf.

The RichTextEditor is only used for display.

/Brian 

 

 

0
Tanya
Telerik team
answered on 09 Sep 2015, 08:41 AM
Hello Brian,

We are not aware of a similar issue in the RadWordsProcessing library. I tried to reproduce it, but couldn't and I am not able to tell what may cause it. It would be great if you could open a support ticket and share a sample document to reproduce the behavior on our end and investigate it further. 

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Frankfrut RSC IM
Top achievements
Rank 1
answered on 21 Jul 2016, 11:10 AM

Brian,

I have encountered this same problem.  

Cell padding was lost when using the tableproperty.tablecellpadding:

tableStyle.TableProperties.TableCellPadding.LocalValue = new Padding(10);

If I directly added it to the table cell property, then it was maintained when exporting to PDF.

tableStyle.TableCellProperties.Padding.LocalValue = new Padding(10);

I am using Telerik ASP.NET version 2016.2.421.45 so this still seems to be a problem.

Cheers,

0
Mihail
Telerik team
answered on 26 Jul 2016, 09:30 AM
Hello,

I can confirm that the table cell spacing and table cell padding are lost during PDF export. I have logged this as bug report into our feedback portal. Here is the link if you would like to subscribe for status changes: Table cell padding and table cell spacing are lost during PDF export.

Please excuse us for the inconvenience.

Regards,
Mihail
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Mihail
Telerik team
answered on 27 Jul 2016, 02:23 PM
Hello,

I am writing just to let you know that the table cell spacing and table cell padding have never been exported to PDF format. This means that the export of those two properties will be considered as a feature request. I have updated the feedback item to reflect the change.

Regards,
Mihail
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Daniel
Top achievements
Rank 1
answered on 28 Jul 2016, 11:46 AM
I can confirm having the same issue. Hope it'll get fixed soon.
0
Tanya
Telerik team
answered on 02 Aug 2016, 07:58 AM
Hello Daniel,

I am afraid that the feature request is currently not scheduled for implementation and I am unable to say when it might be available. The best I could suggest you is to submit your vote for this functionality and subscribe to the related public item in order to receive updates about status changes on it.

Regards,
Tanya
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
WordsProcessing
Asked by
Brian
Top achievements
Rank 1
Answers by
Petya
Telerik team
Brian
Top achievements
Rank 1
Tanya
Telerik team
Frankfrut RSC IM
Top achievements
Rank 1
Mihail
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or