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
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
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
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
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,
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
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
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