HTML to PDF support

3 posts, 1 answers
  1. Maurício
    Maurício avatar
    42 posts
    Member since:
    Jan 2011

    Posted 13 Jan 2016 Link to this post


    Will some day PDFProcessing support theader/tfoot tags?

    Another thing, an error occurs when you try to convert this html:


  2. Answer
    Boby avatar
    636 posts

    Posted 18 Jan 2016 Link to this post

    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.

    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
  3. Maurício
    Maurício avatar
    42 posts
    Member since:
    Jan 2011

    Posted 18 Jan 2016 in reply to Boby Link to this post

    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!

Back to Top