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

HTML to PDF support

2 Answers 348 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Maurício
Top achievements
Rank 1
Maurício asked on 13 Jan 2016, 12:30 PM

Hello

Will some day PDFProcessing support theader/tfoot tags?

Another thing, an error occurs when you try to convert this html: https://goo.gl/PgMWsB

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 18 Jan 2016, 02:31 PM
Hi MaurĂ­cio,

The 'tfoot' tag is not widely supported even among the browsers - for example Chrome prints it only at the end of a of multi-page table, and not on every page end. RadWordsProcessing is currently importing it as a regular table row, and we do not plan changing this behavior.

Contrary, we could improve the import of 'thead', as it could be imported as a table row with RepeatOnEveryPage property set. Then the export to PDF could respect this property and repeat this row at the beginning of each page. The requests are on our feedback portal, where you can vote and subscribe to be notified in case of any progress:

Respect RepeatOnEveryPage property for TableRow in PDF export

Import/export 'thead' HTML element as TableRow with RepeatOnEveryPage property set to true

For the exception: I was able to reproduce an ArgumentException with the "The document element is associated with another parent." clarification message. I will log the issue for further investigation, but with relatively low priority as it seems reproducible only in very specific cases with nested tables. As a workaround, you could import the HTML to RadFlowDocument, then export to docx with DocxFormatProvider, then import the result again with DocxFormatprovider and then export the resulting RadFlowDocument to PDF. This way the conversion succeeds.

Regards,
Boby
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
Maurício
Top achievements
Rank 1
answered on 18 Jan 2016, 03:24 PM

Hello Boby

Instead of trying to convert the HTML I've made all the tables from scratch drawing them using the PDF processing, the result was very good.

Thank you for your reply!

Tags
WordsProcessing
Asked by
Maurício
Top achievements
Rank 1
Answers by
Boby
Telerik team
Maurício
Top achievements
Rank 1
Share this question
or