#1 2013-05-06 09:21:31

cedo
Member
Registered: 2012-11-21
Posts: 15

Assertion failure when saving to file

Suppose I have the following EMF file:
https://docs.google.com/file/d/0B5Z5axE … sp=sharing

At the time of convetring to PDF file I get the following message:
"(...) Assertion failure (...\SynPDF.pas, line 8890)"

procedure TPdfEnum.SaveDC;
begin
  Assert(nDC<high(DC));
  DC[nDC+1] := DC[nDC];
  inc(nDC);
end;

What is wrong with the file ?

Offline

#2 2013-05-06 13:19:03

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

Re: Assertion failure when saving to file

The file is correct, this is just a limitation of the number of internal EMR_SAVEDC/EMR_RESTOREDC pairs which is very high.

I've committed a fix:
http://synopse.info/fossil/info/4dd805c5cb

It now generates the file without exception, but the rendering is pretty strange: there is a "star" of lines in the middle of the page.
How is this file created?
It sounds like if the text was created in a weird way. 600 KB of emf for such a page is huge.

Offline

Board footer

Powered by FluxBB