c# pdf viewer library free : Change page order pdf acrobat application control utility azure html winforms visual studio World%20of%20Warcraft%20Programming%20(2nd%20Edition)106-part1769

Chapter 27
API Reference 1019
Example:
strmatch(“Your share of the lootis97Copper.“, “%d+%a+“)
--returns “97Copper“
strmatch(“Your share of the lootis97Copper.“, “(%d+)(%a+)“)
--returns “97“, “Copper“
Lua API
strrep
Returnsa string produced by anumber of repetitions of another string.
repeated= strrep(“s“,n)
Aliasfor the standard library functionstring.rep.
Arguments:
s—Astring(string)
n—Anumber(number)
Returns:
repeated—Theconcatenationofncopiesofthestring s(string)
Example:
strrep(“spam “,8)
--returns “spam spam spamspam spam spamspam spam“
strreplace
Fast simple substring substitution.
newText,count= strreplace(“text“, “pattern“, “replacement“,“count“)
Matchesthe semantics ofstring.gsub, but only finds and replaces specific
substringsrather thanusing more powerfuland more computationally
expensive regular expression matching. Thus, this function can be used in
place ofstring.gsub inperformance-critical situations where only simple
matching isneeded.
Also available asstring.replace (thoughnot provided by the Luastandard
library).
Arguments:
text—Texttobealtered(string)
pattern—Asubstringtobelocatedwithinthesourcetext(string)
replacement—Texttobeinsertedinplaceofthefoundpattern(string)
count—Maximumnumberofreplacementstobemade(string)
Returns:
newText—Theinputstringwithmatchingsubstringsreplaced(string)
count—Numberofoccurrencesofthesubstringreplaced(number)
Lua API
strrev
Returnsthe reverse of astring.
s=strrev(“s“)
Aliasfor the standard library functionstring.reverse.
Change page order pdf acrobat - 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 reorder pdf pages; rearrange pages in pdf document
Change page order pdf acrobat - 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
how to move pages around in pdf file; reverse page order pdf
1020 Part IV
Reference
Arguments:
s—Astring(string)
Returns:
s—Astringcontainingthecharactersofstringsinreverseorder(string)
Example:
strrev(“abcdef“)
-- returns “fedcba“
strrev(“nametag“)
-- returns “gateman“
strrev(“Step on nopets“)
-- returns “step on nopetS“
strsplit
Splitsa string based onanother seperator string.
...= strsplit(“sep“, “text“,limit)
Also available asstring.split (though not provided by the Lua standard
library).
Arguments:
sep—Theseperatorstringtouse(string)
text—Thetexttosplit(string)
limit—Themaximumnumberofpiecestosplitthestringinto(number)
Returns:
...—Alistofstrings,splitfromtheinputtextbasedontheseperatorstring
(string)
Example:
-- Split thestring “a:b:c:d“
strsplit(“:“, “a:b:c:d“, 2)
-- Returns “a“,“b:c:d“
-- Split thestring “a::b::c::d“
strsplit(“::“,“a::b::c::d“)
-- Returns “a“,“b“, “c“, “d“
Lua API
strsub
Returns a substring of a string.
s=strsub(“s“,firstChar[, lastChar])
Alias for the standard library functionstring.sub.
Arguments:
s—Astring(string)
firstChar—Positionofacharacterinthestring(canbenega-
tive to count backwards from the end of the string) (number)
lastChar(optional)—Positionofalatercharacterinthestring(canbenegative
to count backwardsfrom the endof the string); defaults to -1 if omitted (number)
.NET PDF Document Viewing, Annotation, Conversion & Processing
Convert image files to PDF. File & Page Process. Re-order, rotate PDF pages. PDF Read. Print. Support for all the print modes in Acrobat PDF.
how to reorder pages in a pdf document; move pages in pdf reader
VB.NET PDF: How to Create Watermark on PDF Document within
create a watermark to PDF file in order to help or image (such as business's logo) on any desired PDF page. And with our PDF Watermark Creator, users need no
reorder pages in a pdf; how to reorder pages in pdf
Chapter 27
API Reference 1021
Returns:
s—ThesubstringofsstartingatthecharacterfirstCharandendingwiththe
characterlastChar (string)
strtrim
Trimsleading and trailing characters(whitespace by default) from astring.
text =strtrim(“str“[,“trimChars“])
Also available asstring.trim (though not provided by the Lua standard
library).
Arguments:
str—Astringtotrim(string)
trimChars(optional)—Astringlistingthecharacterstobetrimmed(e.g.
“[]{}()“totrimleadingandtrailingbrackets,braces,andparentheses);if
niloromitted,whitespacecharacters(space,tab,newline,etc)aretrimmed
(string)
Returns:
text—Thetrimmedstring(string)
Examples:
--Example #1
strtrim(“ This is atest “)
--Returns “This is atest“
--Example #2
strtrim(“121abc456“, “615“)
--Returns “21abc4“
Lua API
strupper
Returnsa copy of a string withall lowercase lettersconverted to uppercase.
lowerCase =strupper(“s“)
Aliasfor the standard library functionstring.upper.
Arguments:
s—Astring(string)
Returns:
lowerCase—Acopyofthestringswithalllowercaselettersconvertedto
uppercase (string)
Lua API
time
Returnsthe numerictime value for adescribeddate/time (or the current time).
t=time([timeDesc])
Aliasfor the standard library functionos.time.
According to the Lua manual, the returned value may vary across different
systems; however, the Lua librariesincluded with current WoW clients onboth
Mac and Windows share the same implementation.
GIF to PDF Converter | Convert GIF to PDF, Convert PDF to GIF
as easy as printing; Support both single-page and batch Drop image to process GIF to PDF image conversion; Provide filter option to change brightness, color and
reordering pages in pdf; rearrange pdf pages online
JPEG to PDF Converter | Convert JPEG to PDF, Convert PDF to JPEG
It can be used standalone. JPEG to PDF Converter is able to convert image files to PDF directly without the software Adobe Acrobat Reader for conversion.
reorder pages in pdf file; move pages in pdf document
1022 Part IV
Reference
For higher-precision time measurements not convertible to adate, see
GetTime().
Arguments:
timeDesc(optional)—Tabledescribingadateandtime,asreturnedby
date(“*t“);ifomitted,usesthecurrenttime(table)
Returns:
t—Numberofsecondselapsedsincemidnight,January1,1970UTC(number)
Lua API
tinsert
Inserts avalue into a table.
tinsert(table[, position]value)
Alias for the standard library functiontable.insert.
Arguments:
table—Atable(table)
position(optional)—Indexinthetableatwhichtoinsertthenewvalue;if
omitted, defaults to#table+1 (number)
value—Anyvalue(value)
Lua API
tonumber
Returns the numeric value of a string.
numValue= tonumber(x [,base])
Arguments:
x—Astringornumber(value)
base(optional)—Baseinwhichtointerpretthenumeral(integer
between 2 and 36); letters ‘A-Z’ can be used to denote place values 10
or above in bases greater than 10; defaults to 10 if omitted (number)
Returns:
numValue—Numericvalueofxinthegivenbase,or nilifthevaluecannotbe
converted to a number (number)
Lua API
tostring
Returns a string representationof a value.
stringValue= tostring(value)
Arguments:
value—Anyvalue(value)
Returns:
stringValue—Stringrepresentationofthegivenvalue(if valueisanobject
with a__tostring metamethod, that method isused to produce the string rep-
resentation) (string)
Lua API
tremove
Removesanelement from atable.
tremove(table[, position])
PDF to WORD Converter | Convert PDF to Word, Convert Word to PDF
PDF to Word Converter has accurate output, and PDF to Word Converter doesn't need the support of Adobe Acrobat & Microsoft Word.
change page order in pdf file; pdf change page order
TIFF to PDF Converter | Convert TIFF to PDF, Convert PDF to TIFF
doesn't require other third-party such as Adobe Acrobat. a few clicks; Ability to convert PDF documents to and upgrade; Easy to convert multi-page PDF files to
how to move pdf pages around; pdf reorder pages online
Chapter 27
API Reference 1023
Aliasfor the standard library functiontable.remove.
Arguments:
table—Atable (table)
position(optional)—Indexinthetablefromwhichtoremovethevalue;if
omitted, defaults to#table (number)
Lua API
type
Returnsa string describing the datatype of a value.
typeString= type(v)
Arguments:
v—Any value(value)
Returns:
typeString—Astringdescribingthetypeofvaluev(string)
boolean—Abooleanvalue(trueor false)
function—Afunction
nil—Thespecialvalue nil
number—Anumeric value
string—Astring
table—Atable
thread—Acoroutinethread
userdata—DataexternaltotheLuaenvironment(e.g.themainelementofa
Frame object)
Lua API
unpack
Returnsthe list of elementsina table.
...= unpack(t[,i [,j]])
Equivalent to
return t[i], t[i+1], ... t[j]
for anarbitrary number of elements.
Arguments:
t—A table(table)
i(optional)—Anumericindextothetable;defaultsto 1ifomitted(number)
j(optional)—Anumericindextothetable;defaultsto #tifomitted(number)
Returns:
...—Thelistofvaluesinthetablebetweenindicesiand j(list)
wipe
Removesall entries from a table.
emptyTable= wipe(aTable)
Arguments:
aTable—Atablewhosecontentsaretobeerased(table)
DICOM to PDF Converter | Convert DICOM to PDF, Convert PDF to
Adobe Acrobat or any other print drivers when they use DICOM to PDF Converter. Additionally, high-quality image conversion of DICOM & PDF files in single page
move pages in pdf file; how to reorder pages in pdf file
BMP to PDF Converter | Convert Bitmap to PDF, Convert PDF to BMP
interface; Powerful image converter for Bitmap and PDF files; No need for Adobe Acrobat Reader & print driver during conversion; Support
pdf page order reverse; pdf reorder pages online
1024 Part IV
Reference
Returns:
emptyTable—Theinputtable,withallentriesremoved(table)
Lua API
xpcall
Executes a functionin protected mode with acustom error handler.
status, ...= xpcall(f,err)
Arguments:
f—Afunction(function)
err—Errorhandlerfunctiontobeusedshouldfcauseanerror(function)
Returns:
statusTrueifthefunctionsucceededwithouterrors; falseotherwise
(boolean)
...—Ifstatusis false,theerrormessageproducedbythefunction;if
statusis true,thereturnvaluesfromthefunction(list or string)
CH A P T E R
28
API Categories
Finding the right function to accomplish a specific task in World of Warcraft
can be difficult, because there are overa thousand API functions that could be
used. This chapter provides a categorized listing of these functions to make
it easier to determine which the correct function is. Some functions appear in
more than one category, when necessary.
Achievement Functions
AddTrackedAchievement—
Adds an achievement to the objectives tracker UI
CanShowAchievementUI—
Returns whether the achievements UI should be
enabled
ClearAchievementComparisonUnit—
Disables comparing achievements/sta-
tistics with another player
GetAchievementCategory—
Returns the numeric ID of the category to which
an achievement belongs
GetAchievementComparisonInfo—
Returns information about the compari-
son unit’s achievements
GetAchievementCriteriaInfo—
Gets information about criteria for an achi-
evement or data for a statistic
GetAchievementInfo—
Gets information about an achievement or statistic
GetAchievementInfoFromCriteria—
Getsinformation aboutanachievement
or statistic given a criterion ID
1025
1026 Part IV
Reference
GetAchievementLink—
Returns a hyperlink representing the player’s
progress on an achievement
GetAchievementNumCriteria—
Returns the number of measured criteria for
an achievement
GetAchievementNumRewards—
Returns the number of point rewards for an
achievement (currently always 1)
GetAchievementReward—
Returns the number of achievement points
awarded for earning an achievement
GetCategoryInfo—
Returns information about an achievement/statistic cat-
egory
GetCategoryList—
Returns a listof all achievement categories
GetCategoryNumAchievements—
Returns the number of achievements/sta-
tistics to display in a category
GetComparisonAchievementPoints—
Returns the comparison unit’s total
achievement points earned
GetComparisonCategoryNumAchievements—
Returns the number of achieve-
ments completedby the comparison unit within a category
GetComparisonStatistic—
Returns the comparison unit’s data for a statistic
GetLatestCompletedAchievements—
Returns a list of the player’s most re-
cently earned achievements
GetLatestCompletedComparisonAchievements—
Returns a list of the com-
parison unit’s most recently earned achievements
GetNextAchievement—
Returns the next achievement for an achievement
which is part of a series
GetNumComparisonCompletedAchievements—
Returns thenumberofachieve-
ments earned by the comparison unit
GetNumCompletedAchievements—
Returns the number of achievements
earned by the player
GetNumTrackedAchievements—
Returns the number of achievements flagged
for display in the objectives tracker UI
GetPreviousAchievement—
Returns the previous achievement for an
achievement which is part of a series
GetStatistic—
Returns data for a statistic
GetStatisticsCategoryList—
Returns a list of all statistic categories
GetTotalAchievementPoints—
Returns theplayer’s total achievement points
earned
Chapter 28
API Categories 1027
GetTrackedAchievements—
Returnsnumeric IDs oftheachievementsflagged
for display in the objectives tracker UI
IsTrackedAchievement—
Returns whether an achievement is flagged for
display in the objectives tracker UI
RemoveTrackedAchievement—
Removes an achievement from the objectives
tracker UI
SetAchievementComparisonUnit—
Enables comparing achievements/sta-
tistics with another player
Action Functions
ActionHasRange—
Returns whether an action has a range restriction
CastPetAction—
Casts a pet action on a specific target
GetActionCooldown—
Returns cooldown information about an action
GetActionCount—
Returnsthe numberofuses remaining forthe given action
slot
GetActionInfo—
Returns information about an action slot
GetActionText—
Returns the text label associated with an action
GetActionTexture—
Returns the icon texture for an action
GetPetActionCooldown—
Returns cooldown information about a given pet
action slot
GetPetActionInfo—
Returns information about a pet action
GetPetActionSlotUsable—
Returns whether a pet action can be used
GetPetActionsUsable—
Returns whether the pet’s actions are usable
HasAction—
Returns whether an action slot contains an action
IsActionInRange—
Returns whether the player’s target is in range of an
action
IsAttackAction—
Returns whether an action is the standard melee Attack
action
IsAutoRepeatAction—
Returns whetheran action is an automaticallyrepeat-
ing action
IsConsumableAction—
Returns whether using an action consumes an item
IsCurrentAction—
Returns whether an action is currently being used
IsEquippedAction—
Returns whether an action contains an equipped item
IsStackableAction—
Returns whether an action uses stackable items
1028 Part IV
Reference
IsUsableAction—
Returns whether an action is usable
PickupAction—
Puts the contents of an action bar slot onto the cursor or the
cursor contents into an action bar slot
PickupPetAction—
Puts the contents of a pet action slot onto the cursor or
the cursor contents into a pet action slot
PlaceAction—
Puts the contents of the cursor into an action bar slot
TogglePetAutocast—
Turns autocast on or off for a pet action
UseAction—
Uses an action
ActionBar Functions
ChangeActionBarPage—
Changes the current action bar page
GetActionBarPage—
Returns the current action bar page
GetActionBarToggles—
Returns the current visibility settings for the four
secondary action bars
GetBonusBarOffset—
Returns the current ‘‘stance’’ offset for use with the
bonus action bar
GetPossessInfo—
Returns information about special actions available while
the player possesses another unit
IsPossessBarVisible—
Returns whether a special action bar should be
shown while the player possesses another unit
SetActionBarToggles—
Configures display of additional ActionBars in the
default UI
Addon-related Functions
DisableAddOn—
Marks an addon as disabled
DisableAllAddOns—
Marks all addons as disabled
EnableAddOn—
Marks an addon as enabled
EnableAllAddOns—
Marks all addons as enabled
GetAddOnDependencies—
Returns alistofaddonsa givenaddon isdependent
upon
GetAddOnInfo—
Returns information about an addon
GetAddOnMetadata—
Returns the value of certain fields in an addon’s TOC
file
GetNumAddOns—
Returns the number of addons in the addon listing
Documents you may be interested
Documents you may be interested