Error while executing filter PdfExportFilter - [object error]

6 posts, 0 answers
  1. Eugene Wong
    Eugene Wong avatar
    8 posts
    Member since:
    Oct 2006

    Posted 10 Oct 2012 Link to this post

    Hi,

    there is an error message pop up "Error while executing filter PdfExportFilter - [object error]" when i open a page using telerik radeditor. This message only appears for that particular content(suspecting is because of the content that causes such error).

    after some investigation, i deactivate the contentfilter PDFExportFilter, the message no longer pop up. can i know what is the cause of the error display?

    Regards.
  2. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 11 Oct 2012 Link to this post

    Hello,

    As you know the content filters of RadEditor, parse and validate the content using regular expressions and DOM methods. If the content is non well formed or contains unsupported tags, attributes, etc this could break the regular expressions and the filter will pop up an error message.

    You can validate the problematic content with the W3C validation tool of RadEditor or the online one and check for XHTML errors. You can also start to remove parts of the content until you find the problematic one in it and remove it.

    Best regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Eugene Wong
    Eugene Wong avatar
    8 posts
    Member since:
    Oct 2006

    Posted 11 Oct 2012 Link to this post

    Hi Rumen,

    If the PDFExportFilter is being remove from the content filters, does this means that only the exporting of the radeditor content to pdf function will be disabled? It will not affect other functionality right?

    Regards.
  4. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 12 Oct 2012 Link to this post

    Hello,

    Yes, exactly. The PdfExportFilter filter just adds width attributes and colgroup / col tags to the Table elements so that they can be exported to PDF. If you disable it you will be still able to export the content to PDF without the table elements.

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Eugene Wong
    Eugene Wong avatar
    8 posts
    Member since:
    Oct 2006

    Posted 15 Oct 2012 Link to this post

    Hi Rumen,

    What will happen when i set ContentFilters as none value? What will happen to the content?

    Regards.
  6. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 15 Oct 2012 Link to this post

    Hi,

    When the ContentFilters property is set to None, the editor will not modify the content produced and edited by the browser. You will see that the different browsers produce different content. For example IE will apply bold formatting with a strong tag, Firefox with <b> tag. IE9 will produce tags will lower case letters, but IE6-IE8 with upper case letters.


    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top