Jump to content
We've recently updated our Privacy Statement, available here ×

Same data generates files with different hash


Recommended Posts

By: elgs - elgs

Same data generates files with different hash

2006-03-06 18:30

Hi,

 

I'm new to Jasperreports. I generate pdf file several times with the same template and data. I expected them to have same md5 hash, but they don't. Could anyone help me how I can generate exactly the same pdf files with the same template and data?

 

Thanks in advance!

Elgs

 

 

By: Lucian Chirita - lucianc

RE: Same data generates files with different

2006-03-09 00:24

Hi

 

What you want might not be possible.

 

iText writes a timestamp in the generated document as creation date. This would obviously result in non-identical files even when the same code with same data is used.

 

I don't know whether there is a possibility to instruct iText not to write the timestamp or to write a fixed creation date. I also don't know whether the creation date is the only data that differs between files..

 

You could try to ask this question on the iText forum and see whether a solution exists.

 

Regards,

Lucian

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...