Copied to clipboard

Flag this post as spam?

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


  • Jamie Mansel 10 posts 30 karma points
    Feb 27, 2014 @ 12:30
    Jamie Mansel
    0

    PDF error on certain pages, issue resolved by publishing via Umbraco

    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 

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Mar 01, 2014 @ 14:36
    Darren Ferguson
    0

    Hi Jamie,

    I'd need to see your template. Off the top of my head it looks as though you have some HTML in that is not being parsed to FO.

     

Please Sign in or register to post replies

Write your reply to:

Draft