itextsharp pdf to xml c# : Create bookmarks pdf file SDK application API wpf windows winforms sharepoint documentation1-part1689

a Formattingtext
Inordertoinsertformattedtext,thetagsdescribedinfigure5shouldbeused.
Thistextis***bold***
Thistextisinbold
Thistextisin**ital-
ics**
Thistextisinitalics
Thistextisin
{{{typewriter}}}
Thistextisin
typewriter
Alinkto
[https://www.wikipedia.org/Wikipedia]
AlinktoWikipedia
Alinktoa
[./foo/bar.pdflocalfile]
Alinktoalocalfile
a
a. This s willnot work
onyourcomputer!
Makingalist
∗ofbullets
∗outof
∗2levels
a
a. Inserta
(space)beforethe ∗
Makingalist
— ofbullets
— outof
— 2levels
Drawing
----
aline
Drawing
aline
Figure5–Tagstoformattext
10
Create bookmarks pdf file - add, remove, update PDF bookmarks in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your C# Project with Rapid PDF Internal Navigation Via Bookmark and Outline
split pdf by bookmark; bookmarks pdf files
Create bookmarks pdf file - VB.NET PDF bookmark library: add, remove, update PDF bookmarks in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your VB.NET Project with Rapid PDF Internal Navigation Via Bookmark and Outline
export bookmarks from pdf to excel; create pdf bookmarks online
Linkstolocalfilesmustberelativelinks.Use./ifthefileiscon-
tainedintheexportationfolder,and../ifthefileissomewhere
inaparentfolder.Twoexamples:
— ./folder/file.pdfmeansthatyourfileisdroppedhere:
exportation_folder/
index.html
css/
data/
font/
img/
js/
folder/
file.pdf
Exportation
filesandfolder
Localfile
— ../file.pdf means that your file is in n a parent folder:
folder/
file.pdf
exportation_folder/
index.html
css/
data/
font/
img/
js/
Exportation
filesandfolders
Localfile
b
Insertingmultimediaresourcesintodetails
Insertingmultimediaresourcesintodetailscommentsisquiteeasy: justpaste
theresourceurl(relative orabsolutelink)or iframetagof the webservice you
wanttouse.Xiawillautomaticallycreateamultimediaplayerinthecommentas
longastheresource(image,soundorvideo)matchesitssupportedformats:
Images jpg,jpeg,png,gif
Audio ogg,mp3
Video ogv,webm,mp4
ThelinkhastobeinsertedintotheDescriptionfieldoftheObject Properties.
Absolutelink Iftheresourceurlis
http://web.crdp.ac-versailles.fr/02546.ogg
justtypeitintheDescriptionfieldoftheObject PropertiesinInkscape
Relativelink Ifthemultimediafileislocatedintheinteractiveimagefolder
or in a folder (see figure and section a) within this one, , just indicate
11
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Bookmarks. below is mainly to optimize PDF file with multiple String outputFilePath = Program.RootPath + "\\" 3_optimized.pdf"; 'create optimizing options
create pdf bookmarks; create pdf with bookmarks from word
C# PDF File Split Library: Split, seperate PDF into multiple files
Split PDF file by top level bookmarks. The following C# codes explain how to split a PDF file into multiple ones by PDF bookmarks or outlines.
add bookmark to pdf reader; add bookmarks to pdf preview
its location, , keeping in mindthatthe e interactive image folder has tobe
consideredastherootfolder.Forexample,ifthevideo.ogvfileislocated
inavideosfolderlocateditselfintheinteractiveimageexportationfolder,
justindicate:
./videos/video.ogv
inordertocreatetheplayer.
SincevideoformatssupportedbyXiaarenotnativelysupported
byeverywebbrowsers,itisrecommandedtoexportvideosinto
the3supportedformats,andtouploadthemintoasinglefolder
(from there, the e only y difference between these e files is their r ex-
tension, ie. .ogv v or .mp4 or .webm). Even n if a particular for-
matisindicatedinthedescription(followingthepreviousexam-
ple: ./videos/video.ogv),ifthebrowserisunabletoreadthe
resource, it t will automatically y attempt t to o read the files s of f the
samenamepossessingadifferentextension(ie. video.mp4then
video.webm).
Thelastoptionistoinsertaniframetag.Itwillbeinterpretedandthereader
willappearinthecomment,givingaccesstotheresource.
c The"audioBrown"template: soundsinsteadoftext
Exploretheinteractiveimagecreatedforthissectionofthedoc-
umentation.
Downloadthesvgsourcefile(zipfilecontainingthesvgsourcefile
andthesounds).
The"audioBrown"templateisspecificallydedicatedtothecreationofinterac-
tiveimagesinwhichdetailsareassociatedwithsoundsinsteadoftext.
The methodto insert soundsusing absolute orrelativelinks is describedin
sectionb. Ifyouwishthesoundtoplay y automatically astheuser clicksonthe
comment,justaddautostartrightaftertheurl
8
:
./sounds/detail_1_sound.ogg autostart
d
Insertingimagesintoyourinteractiveimage
Pngimagescanbeaddedtothebackground.Todoso,selectFile → Import
inInkscapetoincorporateyournewimage.
Theimportedimagewillonlyappearinthehtml5animationifyouhaveap-
pliedwhitebackgroundinInkscape.Choosewhiteinthehorizontalcolourpalette
atthebottomofInkscapeinterface:
8. The"autostart"tagalsoworkswiththeotherXiatemplates.
12
VB.NET PDF File Split Library: Split, seperate PDF into multiple
how to split a PDF file into multiple ones by PDF bookmarks or outlines. value for each index: 1 to (Page Count - 1). ' Create output PDF file path list
add bookmark pdf file; excel hyperlink to pdf bookmark
C# PDF File Compress Library: Compress reduce PDF size in C#.net
Bookmarks. below is mainly to optimize PDF file with multiple String outputFilePath = Program.RootPath + "\\" 3_optimized.pdf"; // create optimizing options
display bookmarks in pdf; create bookmark in pdf automatically
ByindicatingaurlintheTitleof Object propertiesfield,theembedded
imagebecomesaclickableiconlinkingtoawebpage.
e Displayingaquestionandunveilingananswer
Youcancreateclickableiconwhichwillmomentarilypreventtheusertoread
theendofthecomment. Youcanevenasktheusertoenterapasswordtoread
theendofthecomment.
Todoso,justindicate,inthedescription,thetagsdescribedinfigure6.
[[CanIaskyouaques-
tion? (code=12345):
Yes,indeedIcan.]]
Figure6–Tagstoinsertabuttonwhichwillmomentarilypreventtheusertoread
theendofthecomment
Usethedoublebracketstag[[ (...) ]] ] toindicateyouwishtocreatethe
icon,splitthetextbetweenthequestionandtheanswerwiththe: tag,andadd
acodebyinserting(code=insert_password)justbeforethe: tag
9
.
f Controllingdetailsbehavior: automaticdisplayanddis-
abledzoom
Defaultbehaviorofdetailsinaninteractiveimageconsistsin:
— highlighting g details only on mouseover or r with h a click k on n the comment
detailtitle
— zoomineffectwhenclickingagainontheactivedetail
10
Bothofthesedefaultbehaviorscanbemodifiedifyouapplyawhiteorblack
backgroundtocroppeddetails(seesectiond):
9. The(code=...) ) isnotmandatory. Rememberthatyoucannotinsertthe)characterin
thepassword.
10. ExceptforthepopBluetemplate.
13
C# Create PDF Library SDK to convert PDF from other file formats
Create multipage PDF from OpenOffice and CSV file. Create and save editable PDF with a blank page, bookmarks, links, signatures, etc.
how to bookmark a pdf in reader; copy pdf bookmarks
VB.NET Create PDF Library SDK to convert PDF from other file
Create multipage PDF from OpenOffice and CSV file. Create and save editable PDF with a blank page, bookmarks, links, signatures, etc.
creating bookmarks in pdf from word; acrobat split pdf bookmark
Detailwithawhitebackground In n the generated image, details s willbe
immediately visibleasaflat areaofopaquecolor,hidingthebackground
image; once selected, it reveals s the background d (the zoom m effect t is s still
active).
Detailwithablackbackground Usersstillhave e toclickonthedetailto
unveilit,butthezoomeffectisdisabled.
Logicalconsequence: youcannotapplyawhiteandablackbackgroundall
togetheronthesamedetail.Asingledetailcannotbeimmediatelydisplayedand
havethezoomeffectdisabled.
g Controlling order of details display in the lateral com-
mentzone
Bydefault,intheinteractiveimage,thedetailsappearverticallyfollowingthe
orderinwhichthesedetailshavebeencreated(thefirstdetailcreatedinInkscape
correspondingtothedetailplacedupinthesidebaroftheinteractiveimage).
WewillworkwiththeEdit → → XML L Editortochangethisdefaultorder.
Aprioricomplextomanage,thisdialoguewindowisinfactquiteeasytouse
:byselectingtheinputintheXMLeditor,thecorrespondingdetailwillbehigh-
lightedontheimageandtheonlythinglefttodoistodragthefilestothedesired
location:
TheInkscapeXMLeditorallowstocontrolthedisplayorderofthedetailsin
theinteractiveimage. Notethe e highlightingofanelementintheeditorandon
thebackgroundimagebyasinglemouseclick.
h
Abstract
1. Youcanenrichandshapingtextusingtags
2. Amultimediaenrichmentispossiblethroughasimplelink(relativeorab-
solute)toafilewhoseformatisrecognizedbyXia
14
.NET PDF SDK - Description of All PDF Processing Control Feastures
page navigation, zooming & rotation; Outlines, bookmarks, & thumbnail Create PDF from Jpeg images; Create PDF from CSV. to Jpeg images; More about PDF Conversion
bookmarks in pdf files; creating bookmarks in pdf documents
C# PDF Convert to HTML SDK: Convert PDF to html files in C#.net
by C#.NET PDF to HTML converter toolkit SDK, preserves all the original anchors, links, bookmarks and font style that are included in target PDF document file.
add bookmarks to pdf file; export pdf bookmarks
3. Addingimagestothebackgroundimageispossiblebyimportingthemand
applyingthemawhitebackground
4. Itispossibletomodifythedefaultbehaviorofadetailbychangingitscolor
background(white,black)
5. Theorder r ofthedetails intheinteractiveimagedepends ontheorderof
theircreationinInkscape. Nevertheless,theInkscapeXMLeditorallows
tochangethisorder
6. Itispossiblepreventtheusertoaccessthecommentsbyinsertingaclickable
iconand/orapassword
15
IV
Creating games with Xia
Untilnow,thisdocumentwasonlyaboutcreationoftraditionnal"interactive
images":backgroundimageenrichedwithcroppeddetailsassociatedwithtexts.
Thiskindofinteractiveimagecanbeusedinclassinvarioussituations(stu-
dents progressivelydiscoveringadocument,orcreating aninteractiveimage on
their own),but Xiaintroduces newfeatures,suchasthecreationofgamesand
activities,inwhichthefinaluserhas much more todothansimplyclickingon
detailsinordertoreadthecomment.
Selectthesvg
sourcefile
Definetheoptionsof
theexport(seefigure
3)
game1clic
selectingdetailsona
backgroundimage
How-toinsectiona
audioBrown
creationofinterac-
tiveimagesinwhich
detailsareassociated
withsounds
How-toinsectionc
gameDragAndDrop
draganddropgraph-
icalelementsonthe
backgroundimages
How-toinsectionb
Figure7–Xia’sgamesandmultimediatemplates
a Firstgame principle: selecting, findingelements inthe
image
Thegameprinciple describedinthissectionconsistsinselecting detailsona
backgroundimage. Whenthe e userhasreached the goal described inthe instruc-
tions,amessageappearsinafinalpopup.
16
Goal
Enterthenumberofcorrect
answersneededtocomplete
thegame
Displayamessage
Tag
<score></score>|
<message></message>
Example
<score>6</score>
<message>Congratulations!
You have completed the game!</message>
Table1–Sumupoftagsinagame1clicgame
Exploretheinteractiveimagecreatedforthissectionofthedoc-
umentation.
Downloadthesvgsourcefile.
Thiskindofgameisalmosttheeasiestwaytocreateaninteractiveimage.You
onlyhavetocropthedetailsthatthefinaluserwillhavetoselect.
Theinstructionsmustbecompletedinthemetadataofthedocument.Xiawill
lookintotheinformationsfilledintheDescriptionfieldofthemetadataofthe
document(see sectionaFile → Metadata of f the e document),andcreatean
instruction«popup»thatwillshowupattheopeningofthegame. Theplayer
willjusthavetoreadtheinstructionsandclosethepopuptoplaythegame.
Whenthe user completesthe game, , amessageautomatically y appears. This
messagehastobe filledintheDescription fieldoftheObject Properties of
thebackgroundimage.
Twoinformationsareneededinorderforthismessagetopopup: theexact
numberofdetailsthathavetobeselected
11
andthemessageitself(seetable1).
Text inserted d inside the <message></message> tag can be e en-
riched.Images,videosorsoundscanbeinserted.Itisalsopossi-
bletoinsertalink,allowinguserstoplayanothergame,inorder
to"chain"activitiesupbydegreeofdifficulty.
Onceyoursvgsourcefileiscreated,choosethetemplategame1clictogenerate
theinteractivegame.
b
Secondgameprinciple: classyfying,ordering,ranking
ThesecondkindofgamethatcanbecreatedwithXiaconsistsindraggingand
droppinggraphicalelementsonthebackgroundimage.Ifalltheelementshavebeen
droppedontheircorrespondingdropzone,apopupmessageappears, confirming
theachievementofthegame.
Exploretheinteractiveimagecreatedforthissectionofthedoc-
umentation.
Downloadthesvgsourcefile.
11. Thisnumberdoesnothavetomatchthenumberofdetailsontheimage.
17
Graphical element t (drag and drop
objectsinthegame)
Croppeddetail(drop
zone)
IDField
Detail_Title
Description
Field
<target>Detail_Title</target>
Table2–SumupoftagsinthegameDragAndDroptemplate
Thisishowyoucancreateagamebasedonthedraganddropprinciple:
1. InInkscape:
— Chooseandimportabackgroundpicture
— Create the e graphical l elements the users of the e interactive image will
havetodraganddrop(ie. imagesorgroupofwords: seebelowfor r a
how-to)
— CreatetheinstructionpopupinFile → → Metadata a of f the document
→ Description
12
— Usingmetadata,makeeachlabelmatchitsdropzone(actually y being
croppeddetails)
2. InXia
— ExportthesvgsourcefileusingthegameDragAndDroptemplate
Two methods can beusedtocreatethedraganddrop"graphical-elements".
Avery simple way is touse ascreenshot tool, , inorderto createpng files,and
thenimporttheminInkscape.Itisalsopossibletocreatetheseelementsdirectly
in Inkscape,by y creatingatext,groupingitwithashape,andfinally making a
bitmapcopyofthisgroup(Edition → → Make e a a bitmap p copy)
The graphicalelements s then have to be e associated with their r drop p zone
13
.
Inordertodothat,maketheIDfieldofthedropzonematchtheDescription
fieldofthedraganddrop graphicalelement. The e only subtletyconsists in the
<target></target>tagswhichhavetobefilledintheDescriptionfield.
Youwillfindinthetable2anabstractofthemetadatatobefilledintheObject
Propertiesofthedraganddropgraphicalelementsandthecorrespondingdetails
inordertomakethemmatch.
Onceyoursvgsourcefileiscreated,choosethetemplategameDragAndDropto
generatetheinteractivegame.
c Thirdgameprinciple: collisions
Thegameprincipledescribedinthissectionconsistsinmovingobjectswithin
boundsyoudefined. Typically,the"collisions"gameprinciplecanbeusedtocreate
mazesorgempuzzle.
Exploretheinteractiveimagecreatedforthissectionofthedoc-
umentation.
Downloadthesvgsourcefile.
12. Exactlyasinthegame1clictemplate.
13. Oneobjectcanonlymatchonedropzone.
18
Inordertocreatethiskindofgame,addthetag<collisions>on</collisions>
tothebackgroundimage. Allthedetailswillthenbecomesolidandwillprevent
objects(pngimportedfilesorbitmapcopiesofshapescreatedinInkscape)from
beingmovedthroughthem.
The"collision"gameisinfact agameDragAndDropgame,sincethegoalre-
mainstodragoneorseveralobjectsanddropthemsomewhereontheimage.The
requisitetagsforthistemplatearethereforethesameasinthegameDragAndDrop
template
14
, butyouwillapply y the<collisions>off</collisions>tag tothe
dropzone’sDescriptionfield.
Onceyoursvgsourcefileiscreated,choosethetemplategameDragAndDropto
generatetheinteractivegame.
d
Advanced interactive games creation tips: Magnet ef-
fect,tooltips,double-scoring...
Showingtheplayer’sscore(game1clictemplate)
Itispossibletodisplaygraphicalelementsautomaticallywhentheuserselects
thecorrectanswer.Theseelementscanbepngimportedimagesorshapesdirectly
designedinInkscape.ButasXiaconsidersasaclickabledetailanyshapesdesigned
usingInkscapetools,youwillhavetotransformtheseshapesinbitmap,usingthe
"bitmapcopy"Inkscapetool.Forexample:
1. Drawastar r withyellowsidesonayellowbackgroundwiththeInkscape
tools
2. Selectthisstar,andclickontheEdition → Make a a bitmap p copy
3. Deletethefirststar
Whenthegraphicalelementsareimported(pngfiles)orcreated(bitmapcopy
ofshapescreatedmanually),justapplythefollowingcarasteristics totheseele-
ments:
Interactivity > > OnClick=off
Then,grouptheclickabledetailtoitsgraphicalelement(bysuccessivelyclicking
onthedetailandthegraphicalelementwiththe
Shift⇑
keystrokeon),thenselect
GroupintheInkscapeObjectmenu.
Showingtheplayer’smistakes(game1clictemplate)
Games basedonthedetails selectionprincipleareobviouslyvery interesting
educationalgames...butitisalsoquiteobvioustoguesshowsomestudentsmay
betemptedtocheattoachievesuchgames(forexample,byfreneticallyclicking
everywhereontheimage,untilthefinalmessagepopsup).
Thisis why itmaybeinterestingtobeabletohighlightthe user’smistakes
duringthegame.
To do so, youwill anticipate the user’s probable mistakes, andput explicit
graphicalelementssymbolizingtheseerrorsonthebackgroundimage.Thisgraph-
icalelementmaybeanimportedimage(pngfile)orashapedirectlydesignedwith
14. <target></target>ontheobjects,<score></score>and<message></message>onthe
backgroundimage:seesectionb.
19
Documents you may be interested
Documents you may be interested