[Lazarus] PDF generator: please test

Michael Van Canneyt michael at freepascal.org
Fri Apr 8 20:43:18 CEST 2016



On Fri, 8 Apr 2016, Ondrej Pokorny wrote:

> On 08.04.2016 20:22, Michael Van Canneyt wrote:
>> We would appreciate it if someone could test the PDF generating demo on a 
>> Windows with non-english locale, and report whether the first page of the 
>> generated PDF looks OK.
>
> I am now testing it. The unittests_console.lpr test fails with:
>
> #0 fpc_raiseexception(0x1a099a4, 0x1, 0x19f6ae0) at 
> P:\software\FPC\trunk_src\rtl\inc\except.inc:158
> #1 TASSERT__FAIL(0x1a099a4 '"Failed on Numtables" expected: <19> but was: 
> <18>', 0x433990, 0x5beea4) at .\fcl-fpcunit\src\fpcunit.pp:564
> #2 TASSERT__ASSERTTRUE(0x1a099a4 '"Failed on Numtables" expected: <19> but 
> was: <18>', false, 0x433990, 0x5beea4) at .\fcl-fpcunit\src\fpcunit.pp:591
> #3 TASSERT__ASSERTEQUALS(0x5c15dc 'Failed on Numtables', 190000, 180000, 
> 0x5beea4) at .\fcl-fpcunit\src\fpcunit.pp:675
> #4 TTESTLIBERATIONFONT__TESTDIRECTORY_NUMTABLES(<error reading variable>) at 
> fpparsettf_test.pas:421
> #5 TTESTCASE__RUNTEST(<error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1039
> #6 TTESTCASE__RUNBARE(<error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1006
> #7 PROTECTTEST(0x198ab70, 0x19f9fd8) at .\fcl-fpcunit\src\fpcunit.pp:1453
> #8 TTESTRESULT__RUNPROTECTED(0x198ab70, 0x4456e0 <PROTECTTEST>, <error 
> reading variable>) at .\fcl-fpcunit\src\fpcunit.pp:1471
> #9 TTESTRESULT__RUN(0x198ab70, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1462
> #10 TTESTCASE__RUN(0x19f9fd8, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:996
> #11 TTESTSUITE__RUNTEST(0x198ab70, 0x19f9fd8, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1318
> #12 TTESTSUITE__RUN(0x19f9fd8, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1308
> #13 TTESTSUITE__RUNTEST(0x196aa28, 0x19f9fd8, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1318
> #14 TTESTSUITE__RUN(0x19f9fd8, <error reading variable>) at 
> .\fcl-fpcunit\src\fpcunit.pp:1308
> #15 TTESTRUNNER__DOTESTRUN(0x196a6c8, <error reading variable>) at 
> .\fcl-fpcunit\src\consoletestrunner.pas:179
> #16 TTESTRUNNER__DORUN(<error reading variable>) at 
> .\fcl-fpcunit\src\consoletestrunner.pas:429
> #17 TCUSTOMAPPLICATION__RUN(<error reading variable>) at 
> .\fcl-base\src\custapp.pp:343
> #18 main at unittests_console.lpr:28
>
> I downloaded all needed fonts. What am I doing wrong?

Probably the version of the font differs from what Graeme is using.
(I also have several errors because of too much font files etc, these are
known)

But those are the unit tests.

The test program to use to generate a PDF, is however "examples/testfppdf.lpi"

I should maybe have mentioned that more explicitly.

Michael.




More information about the Lazarus mailing list