yyn0210 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Problem with aliasNbPages in alivepdf 0.1.5 RC #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use setAliasNbPages() somewhere in your code

What is the expected output?
aliasNbPages is replaced with the page count.

What do you see instead?
The generated pdf produces an error.

What version of the product are you using? On what operating system?
Alivepdf 0.1.5 RC on Windows XP

Please provide any additional information below.
At PDF.as on line 4241 
replace 

for( n = 0; n<nb; n++ ) 
  arrayPages[n].content = findAndReplace ( aliasNbPages, ( nb.toString() ), 
arrayPages[n].content );

with

for( var j:int = 0; j<nb; j++ ) 
  arrayPages[j].content = findAndReplace ( aliasNbPages, ( nb.toString() ), 
arrayPages[j].content );

the variable n is used somewhere else in the code and has if aliasNbPages 
is set the wrong value.

Original issue reported on code.google.com by teni...@gmail.com on 10 Mar 2010 at 12:49

GoogleCodeExporter commented 9 years ago
Hi tenickl,

This will be fixed in the next drop, thanks for posting this one.

Thibault

Original comment by thibault.imbert on 24 Mar 2010 at 5:31

GoogleCodeExporter commented 9 years ago

Original comment by cgauth...@gmail.com on 27 Feb 2015 at 3:54