Remove/Edit Created date meta data when generating pdf document by ReportProcessor

1 Answer 50 Views
General Discussions Rendering Rest Service
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 21 Mar 2022, 07:19 AM

Hi Team,

I found the same question  how-to-edit-the-created-pdf-metadata. I want to remove created date meta data from pdf document, which is generated by Telerik.Reporting.Processing.ReportProcessor().RenderReport.

As per our requirement, we create SHA256 hash from generated document, and compare it with previous one. Each time hash are mismatched.

As per initial analysis, I found that only Created Date meta data information is varying, which results hash mismatch.

Is there anyway to provide Create date i.e. null or remove such meta data.  I did not found such metadata information in PDF Rendering Design Considerations and PDF Device Information Settings

 

n/a
Top achievements
Rank 1
commented on 22 Mar 2022, 09:40 AM

Dear Telerik Team,

I am facing same issue. 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Mar 2022, 09:45 AM

Hello Kamran and Mohammed,

I noticed that the same issue was raised in a support ticket and in the referenced forum thread. I replied there, and I will copy the relevant part of my reply also in this thread.

Indeed, the CreationDate is different, and this is expected. Unfortunately, this cannot be changed and the date cannot be edited or removed with our Reporting tool.

Please, note that this is not the sole reason for the different hashes. Generally, two PDF files cannot be generated absolutely identical. Apart from the CreationData that would differ, there are some identifiers that would also differ as they are generated as random values. For example, the FontName and BaseFont identifiers.

As an example, I generated two PDF files from our demo 'Barcodes Report.trdp'. Here is a link to a muted video that demonstrates some of the differences in the files that may be seen when you open them with Notepad++.

It would be interesting for us to find out what is the scenario where you would need two PDFs generated separately to have the same checksum. Can you elaborate, so that we can try to help further?

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
General Discussions Rendering Rest Service
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Todor
Telerik team
Share this question
or