Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bit10 Ltd 4 posts 51 karma points
    Feb 27, 2014 @ 12:28
    bit10 Ltd
    0

    PDF creator throws error on certain nodes, manual publish via Umbraco fixes the issue

    Hello,

    We have an issue on one of our sites, where occassionaly, a particular page throws an error when trying to generate the PDf for that page.

    The following error is generated:

    Exception information: 
        Exception type: XmlException 
        Exception message: The 'div' start tag on line 3 position 2 does not match the end tag of 'br'. Line 3, position 69.
       at ibex4.xml.IntermediateFormatCreator.readXMLIntoIntermediateForm(RenderingContext rc)
       at ibex4.logical.FODocument_Implementation.commonCreationAndClose(RenderingContext rc, IntermediateFormatCreator intermediate_format_creator, Boolean close_output_stream, Stream output_stream, String xsl_swap_file_name, Stream fo_stream)
       at ibex4.logical.FODocument_Implementation.generateStreams(Stream xml_stream, Stream xsl_stream, Stream output_stream, Boolean closeOutputStream, Hashtable xsltParams)
       at ibex4.logical.FODocument_Implementation.generateStreams(Stream template, Stream output, Boolean closeOutputStream)
       at FergusonMoriyama.Pdf.Application.Filter.FoFilter.Flush()
       at FergusonMoriyama.Pdf.Application.Filter.FoFilter.Close()
       at System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr)
       at System.Web.HttpResponse.FilterOutput()
       at System.Web.HttpApplication.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

    Note that the error, regardless of which page, is always the same, i.e.line 3 position 2... line 3 position 69.

    However, the strange thing is, once this node has been published via Umbraco, the PDF generation works fine.

    We have an external service that updates the content of these nodes in Umbraco, and I beleive that once this has run, the nodes it has updated no longer generate the PDFs correctly. Again, going into Umbraco and publishing manually corrects the problem.

    The updated content however is correctly visible on the front end of the site.

    We are running on Umbraco v 4.7.0 (Assembly version: 1.0.4868.25116), and PDF Creator version 2.1.1.

    Could this be an issue with the HTML being malformed, which is only Tidy'ed up when manually publishing through Umbraco?

    Thanks,

    Jamie 

Please Sign in or register to post replies

Write your reply to:

Draft