[
https://issues.apache.org/jira/browse/FOP-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985917#comment-16985917
]
Chris Bowditch commented on FOP-2888:
-------------------------------------
The fact that you can't unit test is not a bug. This is just a question about
how to compare PDFs. I suggest asking on fop-user mailing list for ideas. I am
closing this bug
> Byte array different each time I generate a PDF
> -----------------------------------------------
>
> Key: FOP-2888
> URL: https://issues.apache.org/jira/browse/FOP-2888
> Project: FOP
> Issue Type: Bug
> Components: renderer/pdf
> Affects Versions: 2.1
> Reporter: Victor Balta
> Priority: Major
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)