Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2888

Byte array different each time I generate a PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.1
    • None
    • renderer/pdf
    • None

    Description

      I have been using the FopFactory & FOUserAgent to render a PDF from an xsl & xml. This is working correctly however I'm running into an issue when writing my unit test.

      I save the output PDF and in my unit test I am doing a render and then doing a byte[] compare. What I noticed is that the byte array is different each time I do a render.

      When I compare the PDF's I am not able to see anything visually different. Does anyone know why it is changing each render? 

      I tried setting the FOUserAgent creation date, but it still shows differences each render

      Attachments

        Activity

          People

            Unassigned Unassigned
            victorbalta Victor Balta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: