#1 2013-05-01 12:11:09

dougwoodrow
Member
From: UK
Registered: 2012-10-04
Posts: 36

SynSelfTests failing on PDF Hash32 tests

Not sure if something is wrong with my setup (Delphi 7 with EnhancedRTL, CPU32), or if a recent change to SynPdf has changed the hard-coded hash values, but when I run the TestSQL3 project there are 3 failures in the PDF tests:

TTestSynopsePDF._TPdfDocument:    
embed=False   
    Hash32(MS.Memory,MS.Position) = 3FC74CB0 (not 1780F68C)

embed=True
    Hash32(MS.Memory,MS.Position) = 87966EAD (not A1201D84)

TTestSynopsePDF._TPdfDocumentGDI
  H = B58F47C9 (not F6B2289F)

Offline

#2 2013-05-01 18:14:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: SynSelfTests failing on PDF Hash32 tests

Yes, the latest enhancements in SynPDF changed the internal order of the PDF.

I will fix it as soon as the PDF library will be stabilized.

Offline

#3 2013-05-02 09:01:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: SynSelfTests failing on PDF Hash32 tests

That's it.

Now SynPDF do not change the pdf object order from its previous layout, when TPdfDocument.SaveToStreamDirectBegin/PageFlush/End methods: mORMot regression tests will now pass without any modification.

See http://synopse.info/fossil/info/efc81f7e8d


By the way, now SynPDF can use amazingly very low RAM when generating huge pdf content, when used via TGdiPages, TPdfDocumentGDI or via TPdfDocument.SaveToStreamDirectBegin/PageFlush/End methods.
smile

Thanks for the feedback.

Offline

Board footer

Powered by FluxBB