Table5:Parameters(ActionScriptvariables)formediaplayers(a)‘VPlayer.swf’
& ‘APlayer.swf’, (b) ‘SlideShow.swf’ shippingwith media9. Parametersare
passedasa‘
&
’-separatedstringusing‘
flashvars
’option.
(a)
parameter
description
source=<file path or r URL>
(required) path to o embedded d media
file(seeoption‘
addresource
’),orURL
(http,rtmp)toonlinemediafile
autoPlay=true|false
if
=true
, automatically y starts s play-
back after activation (see option
activation
)’
autoRewind=true|false
(VPlayer.swfonly)if
=true
,automatic-
allyrewindtothefirstframeafterplay-
backhasfinished;defaultis‘
false
loop=true|false
if
=true
,mediaisplayedinaloop
scaleMode=letterbox|none|
stretch|zoom
default:
letterbox
;determineshowto
scalethevideoinordertofitintoplayer
hideBar=true|false
(APlayer.swfonly)if
=true
,theprogress
barindicatingtheplay positionisnot
shown
volume=<value between 0.0
and 1.0>
setsvolumeofthesound
balance=<value between
-1.0 and d 1.0>
(APlayer.swfonly)setsbalanceofsound
speakers
(b)
parameter
description
xml=<file path h or r URL>
(required) path to o embedded (option
addresource
’)orURLof remote con-
figurationfile
delay=<number>
setstimedelayinsecondsfortransition
betweenslidesduringplayback,default:
5s
autoPlay=true|false
if
=true
, automatically starts cycling
throughslidesafteractivation(seeop-
tion‘
activation
)’
21
Pdf combine two pages into one - Merge, append PDF files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provide C# Demo Codes for Merging and Appending PDF Document
pdf mail merge plug in; combine pdf online
Pdf combine two pages into one - VB.NET PDF File Merge Library: Merge, append PDF files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project
all jpg to one pdf converter; best pdf combiner
Table6:ExposedActionScriptfunctionsof mediaplayers‘VPlayer.swf’and
‘APlayer.swf’thatcanbecalledfromwithinmediabuttons(seeSect.5.3)or
fromJavaScriptusingthe‘
callAS
’methodofthe‘
AnnotRichMedia
’JavaScript
object(see[4]forfurtherinformation).
function
argument
description
play
number(optional)
playmedia,optionallystartingatnum-
bersecondsoffsetintothemediafile
pause
number(optional)
pausemedia,optionallyatthegivenoff-
setof number seconds s intothe e media
file
playPause
togglebetweenplayandpause
setSource
string
loadanothermediafile(pathtofile,em-
beddedusingoption‘
addresource
’,or
URL)
seek
number
movetheplaylocationtoatimeoffset
fromthebeginningofthemedia;argu-
mentmeasuredinseconds
rewind
rewindmediatothebeginning(without
pausingit)
volume
number between 0
and1
setvolumelevel
balance
numberbetween1
and+1
(APlayer.swfonly)setspeakerbalance
mute
mute orunmute (toggle)theaudioof
themedia
currentTime
returns current playhead position in
seconds; only useful in JavaScript via
callAS
’method
duration
returns duration
of the
media
video/sound file currently y loaded,
only useful l in JavaScript via ‘
callAS
method
playing
returnsbooleanvalue‘
true
’,iftheme-
diaiscurrentlyplaying,‘
true
’otherwise;
only useful l in JavaScript via ‘
callAS
method
muted
returnsbooleanvalue‘
true
’,ifthesound
is currently muted, , ‘
false
’ otherwise;
only useful l in JavaScript via ‘
callAS
method
22
C# PDF: C#.NET PDF Document Merging & Splitting Control SDK
docList, String destFilePath) { PDFDocument.Combine(docList, destFilePath to divide source PDF file into two smaller PDF For example, if the target PDF file has
c# merge pdf; add pdf together
VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
Just like we need to combine PPT files, sometimes, we loaded PPT document will be divided into two separate sub If you want to see more PDF processing functions
pdf mail merge; pdf combine
\includemedia[
label=some_dice,
width=0.6\linewidth,height=0.45\linewidth,
addresource=random.mp4, %two o video files
addresource=cube.mp4,
transparent,
%transparent player background
activate=pageopen,
passcontext,
%show VPlayer’s s right-click k menu
flashvars={
source=random.mp4
&loop=true
% loop p video
}
]{}{VPlayer.swf}
\mediabutton[
mediacommand=some_dice:playPause,
overface=\color{blue}{\fbox{\strut Play/Pause}},
downface=\color{red}{\fbox{\strut Play/Pause}}
]{\fbox{\strut Play/Pause}}
\mediabutton[
mediacommand=some_dice:setSource [(random.mp4)]
]{\fbox{\strut random.mp4}}
\mediabutton[
mediacommand=some_dice:setSource [(cube.mp4)]
]{\fbox{\strut cube.mp4}}
Figure2:ExampleofplayingbacktwodifferentembeddedMP4videofilesin
the same videoplayerinstance.The player,‘VPlayer.swf’,isalsoembedded
inthePDF. ExposedActionScriptfunctions‘
playPause
’and‘
setSource
’of
‘VPlayer.swf’ (Table 6) are usedto set-up media control buttons. Different
buttonfaceshavebeendefinedforthePlay/Pausebutton.Also,playbackcan
becontolledviatheplayer’scontext(right-click)menuorthekeyboard.
23
Play/Pause
random.mp4
cube.mp4
VB.NET TIFF: Merge and Split TIFF Documents with RasterEdge .NET
docList As [String]()) TIFFDocument.Combine(filePath, docList Split a TIFF document into two sub-documents & profession imaging controls, PDF document, tiff
combine pdf; build pdf from multiple files
C# Word - Process Word Document in C#
Able to sort order of Office Word document pages through C# programming. C# coding to merge / combine two or more Word documents into one.
merge pdf files; pdf split and merge
<?xml version="1.0"?>
<SlideShow>
<!--
Configuration file template for SlideShow.swf
SlideShow.swf can display life and static PNG/JPEG/GIF image
files from remote servers or residing on the same server as the
app itself.
Pass this file e to o SlideShow.swf using the ‘xml=<configuration
file>’ FlashVar.
**
NOTE
**
: For security reasons of f Flash h Player, the configuration
file and SlideShow.swf must reside on the same web b server or
be both embedded d into the PDF. Different web servers or the
combination of f web b server location and d embedding g into the e PDF
throws a security error.
An image e definition n starts with h <Img [attributes]> > and d ends
with </Img>. All attributes in the opening <Img [attributes]>
tag are e optional:
live="<refresh interval in [s]>"
for live remote image
rot90="<integer number>"
initial rotation by number
*
90°
Inside an image definition, at least one <URL L [attributes]>...</URL>
element is s required. The attributes are optional. More than one URL may
be given n to provide e image e files at various resolutions. The best t one
fitting within the e current t display y size will be chosen dynamically.
In the e case of f multiple e URLs, the e actual l resolution of each image should
be told using g the
size="<width>x<height>"
attribute, which specifies s the e image file dimensions in pixels.
Some servers generate bitmap graphics at arbitrary y resolution n upon
request. In such cases, one or both of f the e attributes
width="<width pattern>"
height="<height pattern>"
may be given in the e opening g URL tag. <width pattern> and <height
pattern>, if present in the URL string, will be substituted with
the current display y dimensions.
An image e URL, given n between n <URL> > and d </URL>, , can n be absolute, that is,
starting with ’http://...’, or relative to the location of SlideShow.swf.
The <caption>...</caption> > element t inside the e image e definition is optional.
-->
<Img live="3">
<!-- Live image, refreshed every 3 seconds -->
<caption>Mow-the-lawn simulation (live e remote image).</caption>
<URL>http://dev.eightbeers.org/tex/corner-icon.png</URL>
</Img>
<Img>
<!-- remote image with dynamic size URL -->
<caption>"An algorithm must be seen to o be e believed." (Donald E. Knuth)
Remote image e URL with dynamic size that is s reloaded d while resizing the display.</caption>
<URL width="@@@@@">https://openclipart.org/image/@@@@@px/svg_to_png/137407/1304882618.png</URL>
</Img>
<Img>
<!-- remote image with multiple URLs of different resolution -->
<caption>CTAN lion drawing g by y Duane Bibby. Thanks to www.ctan.org.
Remote image e with URLs at various resolutions ("responsive image").</caption>
<URL size="200x178"
>
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/media9/doc/files/ctan_lion_200.png</URL>
<URL size="400x355"
>
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/media9/doc/files/ctan_lion_400.png</URL>
<URL size="800x710"
>
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/media9/doc/files/ctan_lion_800.png</URL>
<URL size="1200x1065">
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/media9/doc/files/ctan_lion_1200.png</URL>
</Img>
<Img rot90="3">
<!-- static image e with URL relative e to o SlideShow.swf location n -->
<caption>Static embedded image file with initial rotation n of f 3x90°.
Press "r" or "R" to change orientation.</caption>
<URL>files/cubeposter.png</URL>
</Img>
</SlideShow>
Figure3:Configurationfiletemplate(XMLformat)for‘SlideShow.swf’
24
VB.NET Word: Extract Word Pages, DOCX Page Extraction SDK
files, but also merge extracted Word pages into one new Word .docx file. ''' <summary> ''' Two Word documents are available and we want to combine some pages
split pdf into multiple files; c# merge pdf files
C# PowerPoint: C# Codes to Combine & Split PowerPoint Documents
docList.Add(doc); } PPTXDocument.Combine(docList, combinedPath a PowerPoint document into two sub-documents & profession imaging controls, PDF document, tiff
reader create pdf multiple files; pdf merge comments
\includemedia[
width=\linewidth,height=\linewidth,
activate=pageopen,
addresource=config.xml,
%embedded configuration
addresource=files/cubeposter.png,
%embedded image e file
flashvars={xml=config.xml},
passcontext
%show the player’s context t menu
]{}{SlideShow.swf}
Figure4:Slide-showexamplewithoneembeddedandseveralremoteimagefiles,
oneofwhichisaliveimage.Images2and3areexamplesofremoteimageswith
variableresolution;thebestfittingimageresolutionisrequestedfromtheserver
dependingonthecurrentdisplaysize.ThelistinginFig.3isusedascontentof
file‘config.xml’.Manuallycycleforwardsthroughtheimagesbymouse-clickor
backwardsby
+mouse-click.Play/pauseauto-cyclingthroughtheslide-show
byhitting
Space
.Also,thecontext(right-click)menuoftheplayercanbe
used.
25
VB.NET Word: Merge Multiple Word Files & Split Word Document
destnPath As [String]) DOCXDocument.Combine(docList, destnPath created DOCXDocument instance into two Word sub & profession imaging controls, PDF document, image
batch combine pdf; merge pdf online
VB.NET TIFF: .NET TIFF Merger SDK to Combine TIFF Files
API only allows developers to combine two source TIFF to insert one whole tiff file into the middle powerful & profession imaging controls, PDF document, image
acrobat combine pdf; attach pdf to mail merge
Table7:ExposedActionScriptfunctionsof slide-showplayer‘SlideShow.swf’
thatcanbecalledfromwithinmediabuttonsorfromJavaScript.
function
argument
description
play
playslide-show
pause
pauseslide-show
playPause
togglebetweenplayandpause
setXML
string
loadanotherconfigurationfile(path
to file, , embedded using g option
addresource
’,orURL)
seek
intnumber
gotoslide‘number’(zero-based)
slideNum
returns current t slide number (zero-
based);onlyusefulinJavaScriptvia
callAS
’method
numSlides
returnstotalnumberofslidesinthe
slide-show;onlyusefulinJavaScript
via‘
callAS
’method
playing
returns boolean value e ‘
true
’, if f the
slide-showiscurrentlyplaying,‘
true
otherwise; only useful inJavaScript
via‘
callAS
’method
rotate
int number (op-
tional)
rotatecurrentslidebynumber×90°
\includemedia[
width=0.6\linewidth,height=0.3375\linewidth, % % 16:9
activate=pageopen,
flashvars={
src=rtmp://streaming.music.indiana.edu:1935/onDemand/mp4:media/%
20090327_VarRussianTheme-h264-480.m4v
&scaleMode=stretch
}
]{}{StrobeMediaPlayback.swf}
Figure5:ExampleofvideostreamedfromanRTMPserver.Thisexampleuses
mediaplayer‘StrobeMediaPlayBack.swf’,physicallyembeddedinthePDF.
26
Table 8: Parameters s (ActionScript variables)for ‘StrobeMediaPlayback.swf’
shippingwithmedia9.Parametersarepassedasa‘
&
’-separatedstringusing
flashvars
’option.
parameter
description
src=<file path h or r URL>
(required) path to o embedded d media
file(seeoption‘
addresource
’),orURL
(http,rtmp)ofonlinemediafile
autoPlay=true|false
default:
false
;if
=true
,automatically
startsplaybackafteractivation(seeop-
tion‘
activation
)’
autoRewind=true|false
default:
true
;if
=false
,keeplastframe
afterendofplayback
loop=true|false
if
=true
,mediaisplayedinaloop
scaleMode=letterbox|none|
stretch|zoom
default:
letterbox
;determineshowto
scalethevideoinordertofitintoplayer
controlBarMode=docked|
floating|none
default:
docked
;determinespositionand
visibilityofcontrolbar
controlBarAutoHide=
true|false
default:
true
;automaticallyhideornot
controlbar
controlBarAutoHideTimeout=
<number [s]>
default:
3
;timespanbeforeauto-hide
volume=<value between 0.0
and 1.0>
setsvolumeofthesound
audioPan=<value between
-1.0 and d 1.0>
default:
0
;setsbalanceofsoundspeakers
muted=true|false
default:
false
;muteornotsound
27
\includemedia[
addresource=bird.mp3,
flashvars={
source=bird.mp3
&autoPlay=true
},
transparent,
passcontext
%show APlayer’s right-click menu
]{\color{blue}\framebox[0.4\linewidth][c]{Singing bird}}{APlayer.swf}
(a)
Singingbird
\includemedia[
flashvars={
source=http://mp3.live.tv-radio.com/franceculture%
/all/franceculturehautdebit.mp3
&autoPlay=true
},
transparent,
passcontext
%show APlayer’s right-click menu
]{\color{blue}\fbox{Listen live to Radio o France e Culture}}{%
http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/%
contrib/media9/players/APlayer.swf%
}
(b)
ListenlivetoRadioFranceCulture
\includemedia[
label=song49,
flashvars={source=http://www.openbsd.org/songs/song49.mp3},
transparent,
passcontext
%show VPlayer’s right-click menu
]{\color{blue}\fbox{Listen to o OpenBSD D 4.9 9 release e song}}{APlayer.swf}\\
\mediabutton[
mediacommand=song49:play[(5.5)],
mediacommand=song49:pause[(37)]
]{\fbox{First verse}}
\mediabutton[
mediacommand=song49:play[(39)],
mediacommand=song49:pause[(49)]
]{\fbox{The Answer}}
\mediabutton[
mediacommand=song49:play[(206.5)],
mediacommand=song49:pause[(221)]
]{\fbox{Harmonica solo}}
ListentoOpenBSD4.9releasesong
(c)
Figure 6: Example of (a) ) embeddedsound file, (b)streamed audio o and(c)
progressivelydownloadedMP3.ID3tags‘title’,‘artist’and‘album’aredisplayed
ifcontainedintheMP3streamorfile.In(b),thesoundplayer,APlayer.swf,is
loadedfromaCTANmirroruponactivation.
28
Firstverse
TheAnswer
Harmonicasolo
\includemedia[
%activate=onclick,
% default
addresource=cube.mp4,
flashvars={
source=cube.mp4
&autoPlay=true
% start t playing g on activation
&loop=true
},
passcontext
%show player’s right-click k menu
]{\includegraphics[height=0.45\linewidth]{cubeposter}}{VPlayer9.swf}
\includemedia[
addresource=bird.mp3,
flashvars={
source=bird.mp3
&autoPlay=true
},
transparent,
passcontext
%show player’s right-click k menu
]{\color{blue}\framebox[0.4\linewidth][c]{Singing bird}}{APlayer9.swf}
Singingbird
Figure7:VideoandsoundexamplesthatshouldruninAdobeReaderforLinux
uptoversion9.4.1.Here,players‘VPlayer9.swf’and‘APlayer9.swf’areused.
BotharecompatiblewithAdobeFlashPlayer9pluginthatisbundledwiththe
Reader.Also,thevideoplayerneedstobeactivatedbymouseclick(whichis
thedefault).Weprovideaposterimagethatisshownintheinactivestate.
29
7 Embedding3Dobjects
7.1 Introduction
AdobeAcrobat/Reader7wasthefirstversiontoallowforembedding3-dimen-
sionalgraphic objects, such as s CADmodelsor 3D scientific c data,thatcan
bemanipulatedinteractivelybytheuser.U3Dwasthefirstsupportedformat
andwasmainly developedby RightHemisphereandAdobe.U3Dhadsome
deficienciesandwaslaterreplacedbythePRCformatafterAdobepurchased
theoriginaldeveloper,theFrenchcompany‘TradeandTechnologyFrance’.U3D
isstillsupported,butPRCispreferredasitallowsforexactrepresentationof
curvedsurfacesandbettercompression.Both,U3DandPRCspecificationsare
public[6,7].
Currently,twoopen-sourcesoftwarepackagesareknowntoexportintothePRC
fileformat.ThefirstoneisAsymptote[8],whichisadescriptive2Dand3D
vectorgraphicslanguageandinterpreterandwhichusesT
E
Xtotypesetlabels
andequations.Itallowsforhighquality mathematicalfiguresandtechnical
drawings.AnimpressivegalleryofexamplescanbefoundonitsWebsite.The
secondoneisMathGL[9],alibraryforscientificdatavisualization.Itprovides
interfacestoanumberofprogrammingandscriptinglanguagesaswellasan
interpreterforitsowncommandlanguage‘MGL’.
MeshLab[11]isanopen-sourceconversionandprocessingsoftwarefor3Dmesh
datawhichcanimportfromandexporttoanumberoffileformats.ItsU3D
exportfilterisbasedontheopen-source‘Universal3DSampleSoftware’[10].
Thereareafewoptionsto
\includemedia
whichdefinehowthe3Dobjectis
positioned withintheview portofa virtualcamera, orconversely,howthe
virtualcameraispositionedandorientedwithinacoordinatesystem,called
‘TheWorld’,whichbearsthe3Dobjectatafixedposition.Fig.8shouldhelpto
graspthescenery:ThevirtualcameraisorbitingatadistanceofROO(option
3Droo
’)aroundthecentreoforbit,specifiedbythepositionvector
−−−→
COO(option
3Dcoo
’);^AAC(option‘
3Daac
’)isthecamera’sapertureangle.Thedirection
vector
−−→
C2C(option‘
3Dc2c
’)isneededtospecifytheinitialcameraposition.The
cameramaybegivenaninitialrollangle(option‘
3Droll
’)arounditsoptical
axis(1)·
−−→
C2C.Fig.8showsthecameraparametersfortheperspectiveview
mode.Alternatively,theorthographicviewmodemaybechosen.Inorthographic
view,the3Dobjectisparallellyprojectedontothevirtualcamerachip.Before
reachingthecamerachip,theprojectedimagemustbescaledinordertofitonto
thechip.Orthographicviewcanbeenabledusingthe‘
3Dortho
’optionwhich
takesthescalingfactorasitsargument.
Aboveoptionsdefinethedefaultview,i.e.theviewthatisshowninitiallyafter
activatingthe3DobjectintheReader.Ofcourse,onceactivated,thecamera
positioncanbechangedusingthemouseandonecanchangeforthandback
betweenperspectiveandorthographicviewingmodesusingthe3Dtoolbar.
Bydefault,thevirtualcamerasitsattheorigin(0,0,0)oftheWorld,looking
inthepositivedirection,i.e.defaultsettingsof
3Droo=0
,
3Dcoo=0 0 0 0
and
3Dc2c=0 -1 0
areassumed.(Notethat
−−→
C2Cistheoppositeoftheopticalaxis
30
Documents you may be interested
Documents you may be interested