c# pdf viewer library free : Rearrange pages in pdf reader control SDK platform web page wpf asp.net web browser World%20of%20Warcraft%20Programming%20(2nd%20Edition)105-part1768

Chapter 27
API Reference 1009
Arguments:
s—AstringcontainingLuacode(string)
chunkname(optional)—Namefortheloadedchunk;usedinerrormessagesand
debug information (string)
Returns:
chunk—Afunctionwhichcanberuntoexecutetheprovidedcode,ornilifthe
code could not be compiled (function
)
error—Errormessage,ifthecodecouldnotbecompiled(string)
Lua API
log
Returnsthe naturallogarithm of anumber.
naturalLog= log(x)
Aliasfor the standard library functionmath.log.
Arguments:
x—Anumber(number)
Returns:
naturalLog—Thenaturallogarithmofx(number)
Lua API
log10
Returnsthe base-10logarithm of anumber.
base10log =log10(x)
Aliasfor the standard library functionmath.log10.
Arguments:
x—Anumber(number)
Returns:
base10log—Thebase-10logarithmofx(number)
Lua API
max
Returnsthe greatest of a list of numbers.
maximum=max(...)
Aliasfor the standard library functionmath.max.
Arguments:
...—Alistof numbers(list)
Returns:
maximum—Thehighestnumberamongallarguments(number)
Lua API
min
Returnsthe least of alist of numbers.
maximum=min(...)
Aliasfor the standard library functionmath.min.
Arguments:
...—Alistof numbers(list)
Rearrange pages in pdf reader - re-order PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Customizing Page Order of PDF Document in C# Project
how to rearrange pdf pages online; rearrange pdf pages in reader
Rearrange pages in pdf reader - VB.NET PDF Page Move Library: re-order PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Sort PDF Document Pages Using VB.NET Demo Code
reordering pdf pages; rearrange pages in pdf
1010 Part IV
Reference
Returns:
maximum—Thelowestnumberamongallarguments(number)
Lua API
mod
Returns the remainder from divisionof two numbers.
remainder= mod(x,y)
Alias for the standard library functionmath.fmod.
Arguments:
x—Anumber (number)
y—Anumber (number)
Returns:
remainder—Remainderofthedivisionofxby ythatroundsthequotient
towards zero (number)
Lua API
newproxy
Creates azero-lengthuserdatawith an optionalmetatable.
userdata= newproxy(boolean)ornewproxy(userdata)
newproxyisanexperimental,undocumentedandunsupportedfunctioninthe
Lua base library. It canbe used to create a zero-length userdata, witha optional
proxy.
Thisfunctionallows youto bypassthe table type restriction onsetmetatable,
andthus create just ametatable. One of the main benefits from doing thisis
that you don’t have to take the full overhead of creating a dummy table, and
it’s the only object that honorsthe metamethod __len.
Arguments:
boolean—Controlsifthereturneduserdatashouldhaveametatableornot.
(boolean)
userdata—Needstobeaproxy.Themetatablewillbesharedbetweenthe
proxies. (userdata)
Returns:
userdata—Azero-lengthuser-dataobject.(userdata)
Example:
proxy= newproxy(true)
getmetatable(proxy).__len= function()return3 end
print(#proxy)-- prints3
Lua API
next
Returns the next key/value pair ina table.
nextKey,nextValue =next(t [, key])
Arguments:
t—Atable (table)
key(optional)—Akeyinthetable(value)
C# TIFF: How to Reorder, Rearrange & Sort TIFF Pages Using C# Code
C# TIFF - Sort TIFF File Pages Order in C#.NET. Reorder, Rearrange and Sort TIFF Document Pages in C#.NET Application. C# TIFF Page Sorting Overview.
rearrange pages in pdf file; move pages in pdf online
VB.NET TIFF: Modify TIFF File by Adding, Deleting & Sort TIFF
you want to change or rearrange current TIFF &ltsummary> ''' Sort TIFF document pages in designed powerful & profession imaging controls, PDF document, image
how to move pages in pdf acrobat; how to rearrange pdf pages
Chapter 27
API Reference 1011
Returns:
nextKey—Thenextkeyinthetablet(value)
nextValue—Valueassociatedwiththenextkeyinthetablet(value)
Lua API
pairs
Returnsaniterator functionfor a table.
iterator, t, index =pairs(t)
Return valuesare such that the construction
for k,v in pairs(t)
-- body
end
will iterate over allkey/value pairs inthe table.
Arguments:
t—A table(table)
Returns:
iterator—Thenext()function(function)
t—Thetable provided(table)
index—Alwaysnil;usedinternally(number)
Lua API
pcall
Executesa function in protected mode.
status,...= pcall(f,...)
When running afunctionin protected mode, any errorsdo not propagate
beyond the function (i.e. they do not stopall executionand call the default
error handler).
Arguments:
f—Afunction(function)
...—Argumentstobepassedtothefunction(list)
Returns:
statusTrueifthefunctionsucceededwithouterrors; falseotherwise
(boolean)
...—Ifstatusis false,theerrormessageproducedbythefunction;if
statusis true,thereturnvaluesfromthefunction(list or string)
Lua API
rad
Convertsan angle specified indegrees to radians.
radians=rad(degrees)
Aliasfor the standard library functionmath.rad.
Arguments:
degrees—Ananglespecifiedindegrees(number)
Returns:
radians—Theanglespecifiedinradians(number)
VB.NET PDF File & Page Process Library SDK for vb.net, ASP.NET
page directly. Moreover, when you get a PDF document which is out of order, you need to rearrange the PDF document pages. In these
change pdf page order preview; change page order pdf preview
C# PowerPoint - How to Process PowerPoint
pages simply with a few lines of C# code. C# Codes to Sort Slides Order. If you want to use a very easy PPT slide dealing solution to sort and rearrange
how to reorder pages in pdf reader; pdf page order reverse
1012 Part IV
Reference
Lua API
random
Generates apseudo-random number.
randomNum= random([m [,n]])
Alias for the standard library functionmath.random.
Arguments:
m(optional)—Firstlimitforrandomlygeneratednumbers(number)
n(optional)—Secondlimitforrandomlygeneratednumbers(number)
Returns:
randomNum—Ifcalledwithoutarguments,auniformpseudo-randomrealnum-
ber in the range [0,1); ifm isspecified, a uniform pseudo-random integer inthe
range [1,m]; if bothm andn are specified, auniform pseudo-random integer in
the range [m,n] (number)
Lua API
rawequal
Returns whether two valuesare equal without invoking any metamethods.
isEqual =rawequal(v1,v2)
Arguments:
v1—Any value (value)
v2—Any value (function)
Returns:
isEqualTrueifthevaluesareequal; falseotherwise(boolean)
Lua API
rawget
Returns the real value associatedwitha key in atable without invoking any
metamethods.
value= rawget(t,key)
Arguments:
t—Atable (table)
key—Akeyinthetable(value)
Returns:
value—Valueof t[key](value)
Lua API
rawset
Setsthe value associatedwitha key in atable without invoking any
metamethods.
rawset(t,key,value)
Arguments:
t—Atable (table)
key—Akeyinthetable(cannotbenil)(value)
value—Newvaluetosetforthekey(value)
scrub
Replacesnon-simple values inalist withnil.
...= scrub(...)
VB.NET Word: How to Process MS Word in VB.NET Library in .NET
well programmed Word pages sorter to rearrange Word pages in extracting single or multiple Word pages at one & profession imaging controls, PDF document, image
how to move pages in a pdf document; move pages within pdf
Process Images in Web Image Viewer | Online Tutorials
used document types are supported, including PDF, multi-page easy to process image and file pages with the deleting a thumbnail, and you can rearrange the file
move pdf pages; change page order in pdf reader
Chapter 27
API Reference 1013
Allsimple values(strings, numbers, and booleans) are passed from the input
list to the output list unchanged. Non-simple values(tables, functions, threads,
and userdata) are replaced by nil inthe output list.
Arguments:
...—Alist of values(list)
Returns:
...—Thelistofinputvalues,withallnon-simplevaluesreplacedbynil(list)
Example:
scrub(“a“,print, 1,{1,2,3}, math.pi)
--returns “a“, nil,1,nil, 3.1415926535898
securecall
Callsa function without tainting the execution path.
...= securecall(function,...)
Meaninglesswhen called from outside of the secure environment.
Used inBlizzard code to call functionswhichmay be tainted or operate on
potentially tainted variables. For example, consider the functionClose
SpecialWindows
,which iteratesthrough the tableUISpecialFramesand
hidesany framesnamed therein. Addon authorsmay put the names of their
framesin that table to make them automatically close whenthe user presses
the ESC key, but thistaintsUISpecialFrames. Were the default UI to then call
CloseSpecialWindowsnormally,everyframeinUISpecialFrameswould
become tainted, whichcould later lead to errors whenhandlers onthose
framescall protected functions.
Instead, the default UIusessecurecall(CloseSpecialWindows): within
CloseSpecialWindowstheexecutionpathmaybecometainted,butafterward
the environment remainssecure.
Arguments:
function—Functiontobecalled(function)
...—Argumentstothefunction(list)
Returns:
...—Valuesreturnedaftercallingthefunction(list)
Lua API
select
Returnsone or more valuesfrom alist (...), or the number of values in alist.
...= select(index,...) or select(“#“, ...)
Arguments:
index—Indexofavalueinthelist(number)
#—The string“#“(string)
...—Alist of values(list)
Returns:
...—Ifcalledwithafirstargumentof“#“,thenumberofvaluesinthelist;
otherwise, all values in the list starting with the value at positionindex (list)
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
page will teach you to rearrange and readjust amount of robust PPT slides/pages editing methods and powerful & profession imaging controls, PDF document, image
how to move pages around in pdf; how to reverse pages in pdf
1014 Part IV
Reference
seterrorhandler
Changesthe error handler to aspecified function.
seterrorhandler(errHandler)
The error handler iscalled by Lua’serror() function, whichinturn is called
whenever a Lua error occurs. WoW’sdefault error handler displays the error
message, a stack trace and information about the local variables for the
function. Thisdialog willonly be shownif the ‘‘ShowLuaerrors’’ optionis
enabled inInterface Options.
Arguments:
errHandler—Afunctiontouseastheerrorhandler(function)
Lua API
setfenv
Setsthe environment to be used by a function.
f=setfenv([f,] t) orsetfenv([stackLevel,]t)
If the environment has a__environment metatable, thisfunctionwill error.
Arguments:
f(optional)—Afunction(function)
stackLevel(optional)—Levelofafunctioninthecallingstack,or0tosetthe
global environment (number)
t—Atable (table)
Returns:
f—Theinputfunctionf(function)
setglobal
Setsa globalvariable to aspecified value.
setglobal(“name“, value)
Allows setting the value of aglobal variable incontextswhere its name might
be overridden by that of a local variable; i.e.setglobal(name,value) is
equivalent to_G.name=value or_G[“name“]=value.
Arguments:
name—Nameofaglobalvariable(string)
value—Newvalueforthevariable(value)
Lua API
setmetatable
Setsthe metatable for atable.
t=setmetatable(t,metatable)
Arguments:
t—Atable (table)
metatable—Ametatableforthetablet,or niltoremoveanexistingmetatable
(table)
Returns:
t—Theinputtablet(table)
Chapter 27
API Reference 1015
Lua API
sort
Sortsa table.
sort(table[, comparator])
Aliasfor the standard library functiontable.sort.
Arguments:
table—Atable(number)
comparator(optional)—Afunctiontocomparetableelementsduring
the sort; takes two arguments and returnstrue if the first argument
should be ordered before the second in the sorted table; equivalent
tofunction(a,b)returna<bend if omitted (function)
Examples:
--Example #1
aTable ={“a“,“c“, “g“,“e“,“b“, “f“,“d“}
sort(aTable)
print(aTable)
--shows“a b cd ef g“
sort(aTable,function(a,b)returna>b end)
print(aTable)
--shows“g f ed cb a“
--Example #2
complexTable={
{
name= “Gorrok“,
level =80,
class =“WARRIOR“,
}
{
name= “Spin“,
level =79,
class =“SHAMAN“,
},
{
name= “Valiant“,
level =80,
class =“HUNTER“,
}
}
sort(complexTable,function(a,b)return a.name< b.nameend)
for_,infoin ipairs(complexTable)doprint(info.name)end
--prints“Gorrok, Spin, Valiant“
sort(complexTable,function(a,b)return a.level< b.level end)
for_,infoin ipairs(complexTable)doprint(info.name)end
--prints“Spin, Gorrok, Valiant“ (or“Spin, Valiant, Gorrok“; order
--of equalelementsisnotdefined)
sort(complexTable,function(a,b)return a.class< b.class end)
for_,infoin ipairs(complexTable)doprint(info.name)end
--prints“Valiant,Spin,Gorrok“
1016 Part IV
Reference
Lua API
sqrt
Returns the square root of a number.
root =sqrt(x)
Alias for the standard library functionmath.sqrt.
Arguments:
x—Anumber (number)
Returns:
root—Thesquarerootofx(number)
Lua API
strbyte
Returns the numeric code for one or more charactersina string.
value,... =strbyte(“s“[,firstChar[, lastChar]])
Alias for the standard library functionstring.byte.
Arguments:
s—Astring(string)
firstChar(optional)—Positionofacharacterinthestring(canbenegativeto
count backwards from the endof the string); defaults to1 if omitted (number)
lastChar(optional)—Positionofalatercharacterinthestring(canbenegative
to count backwards from the end of the string); defaults tofirstChar
if omitted
(number)
Returns:
value—NumericcodeforthecharacteratpositionfirstCharinthestring
(number)
...—Alistofnumbers,eachthenumericcodesofadditionalcharactersinthe
string iflastChar specifies aposition later inthe string thanfirstChar (list)
Lua API
strchar
Returns the character(s) for one or more numericcodes.
s=strchar(n [,...])
Alias for the standard library functionstring.char.
Arguments:
n—An integer(number)
...(optional)—Additionalintegers(number)
Returns:
s—Astringcontainingthecharacter(s)forthegivennumericcode(s)(number)
strconcat
Joins alist of strings(withno separator).
result= strconcat(“...“)
Equivalent tostrjoin(““,...). If no stringsare provided, returnsthe
empty string (““).
Arguments:
...—Alistofstringstoconcatenate(string)
Chapter 27
API Reference 1017
Returns:
result—Theconcatenatedstring(string)
Lua API
strfind
Returnsinformation about matchesfor a patternin astring.
start, end,... =strfind(“s“, “pattern“[,init [, plain]])
Aliasfor the standard library functionstring.find.
Returnsnil
if no matchesare found.
Arguments:
s—Astring(string)
pattern—Aregularexpressionpattern(string,pattern)
init(optional)—Initialpositioninthestring satwhichtobeginthesearch;
defaults to1 if omitted (number)
plain(optional)— Truetoperformasimplesubstringsearch(i.e.considering
patternonlyasaliteralstring,notaregularexpression);falseoromittedoth-
erwise (boolean)
Returns:
start—Characterpositioninsatwhichthefirstmatchbegins(number)
end—Characterpositioninsatwhichthefirstmatchends(number)
...—Capturedsubstringsfroms,if patternspecifiescaptures(list)
Example:
strfind(“WelcometoAzeroth!“,“Azeroth“)
--returns 12,18
strfind(“|cffffff00|Hquest:982:17|h[DeepOcean, VastSea]|h|r“,i
“quest:(%d+):([-%d]+)|h%[(.-)%]“)
--returns 11,48,“982“, “17“, “Deep Ocean,VastSea“
strjoin
Joins alist of stringstogether with agiven separator.
text =strjoin(“sep“, ...)
If givena list of strings not already in atable, thisfunctioncan be used instead
oftable.concat for better performance.
Also available asstring.join (though not provided by the Lua standard
library).
Arguments:
sep—Aseparatortoinsertbetweenjoinedstrings(string)
...—Alistofstringstobejoinedtogether(list)
Returns:
text—Thelistofstringsjoinedtogetherwiththegivenseparatorstring
(string)
Example:
strjoin(“,“, “alice“, “bob“,“carol“)
--Returns “alice,bob,carol“
1018 Part IV
Reference
strjoin(“mississippi,“,“one“, “two“, “three“)
-- Returns “onemississippi,twomississippi,three
Lua API
strlen
Returns the number of characters ina string.
length= strlen(“s“)
Alias for the standard library functionstring.len.
Arguments:
s—Astring(string)
Returns:
length—Numberofcharactersinthestring(number)
strlenutf8
Returns the lengthof astring, taking UTF-8 multi-byte charactersinto account.
length= strlenutf8(“string“)
Arguments:
string—Thestringtoquery.(string)
Returns:
length—Thelengthofthegivenstring,takingUTF-8multi-bytecharactersinto
account. (number)
Lua API
strlower
Returns a copy of astring with all uppercase lettersconvertedto lowercase.
lowerCase= strlower(“s“)
Alias for the standard library functionstring.lower
Arguments:
s—Astring(string)
Returns:
lowerCase—Acopyofthestringswithalluppercaselettersconvertedtolow-
ercase (string)
Lua API
strmatch
Returns the matches for afor apattern in astring.
match,... =strmatch(“s“,“pattern“)
Alias for the standard library functionstring.match.
Arguments:
s—Astring(string)
pattern—Aregularexpressionpattern(string,pattern)
Returns:
match—Firstsubstringofsmatchingpattern,orthefirstcapture
ifpattern specifies captures;nil if no match is found (string)
...—Additionalcapturesfound,ifpatternspecifiesmultiplecaptures(list)
Documents you may be interested
Documents you may be interested