c# display pdf in window : Adding page numbers to a pdf document SDK Library service wpf asp.net winforms dnn QGIS-2.2-UserGuide-en24-part482

QGISUserGuide,Release2.2
• YoucanadjusttherenderingofthepagewiththeResizemode.
• Useexistingframesconstrainsthepageinsideitsfirstframeorintheframecreatedwiththenextsettings.
• Extenttonextpagewillcreateasmanyframes(andcorrespondingpages)asnecessarytorendertheheight
ofthewebpage. Eachframecanbemovedaroundonthelayout. Ifyouresizeaframe,thewebpagewill
bedividedupbetweentheotherframes.Thelastframewillbetrimmedtofitthewebpage.
• Repeatoneverypagewillrepeattheupperleftofthewebpageoneverypageinframesofthesamesize.
• RepeatuntilfinishedwillalsocreateasmanyframesastheExtendtonextpageoption,exceptallframes
willhavethesamesize.
18.4 Manageitems
18.4.1 Sizeandposition
EachiteminsidetheComposercanbemoved/resizedtocreateaperfectlayout.Forbothoperationsthefirststepis
toactivatethe
Select/Moveitem toolandtoclickontheitem;youcanthenmoveitusingthemousewhileholding
theleftbutton.Ifyouneedtoconstrainthemovementstothehorizontalortheverticalaxis,justholdtheShift
whilemovingthemouse. Ifyouneedabetterprecision,youcanmoveaselecteditemusingtheArrow w keys
onthekeyboard;ifthemovementistooslow,youcanspeedupitbyholdingShift.
Aselecteditemwillshowsquaresonitsboundaries;movingoneofthemwiththemouse,willresizetheitemin
thecorrespondingdirection. Whileresizing,holdingShiftwillmaintaintheaspectratio. HoldingCtrlwill
resizefromtheitemcenter.
Thecorrectpositionforanitemcanbeobtainedusingsnappingtogridorsmartguides.Ifyouneedtodisablethe
snapontheflyjustholdCtrlwhilemovingthemouse.
Youcanchoosemultipleitemswiththe
Select/Moveitem
button.JustholdtheShiftbuttonandclickonallthe
itemsyouneed.Youcanthenresize/movethisgroupjustlikeasingleitem.
Onceyouhavefoundthecorrectpositionforanitem,youcanlockitbyclickingwiththerightmousebutton.
Pressthesamebuttonanothertimetounlockit.Youcanalsolock/unlockitemsusingtheiconsonthetoolbar.
Tounselectanitem,justclickonitholdingtheShiftbutton.
InsidetheEditmenu,youcanfindactionstoselectalltheitems,toclearallselectionsortoinvertthecurrent
selection.
18.4.2 Alignment
Raisingorloweringfunctionalitiesforelementsareinsidethe
Raiseselecteditems
pull-downmenu. Choosean
elementonthePrintComposercanvasandselectthematchingfunctionalitytoraiseorlowertheselectedelement
comparedtotheotherelements(seetable_composer_1).
There are several alignment functionalities availablewithinthe
Alignselecteditems
pull-downmenu (see ta-
ble_composer_1).Touseanalignmentfunctionality,youfirstselectsomeelementsandthenclickonthematching
alignmenticon.Allselectedelementswillthenbealignedwithintotheircommonboundingbox.Whenmoving
itemsontheComposercanvas,alignmenthelperlinesappearwhenborders,centersorcornersarealigned.
18.4.3 Copy/CutandPasteitems
TheprintcomposerincludesactionstousethecommonCopy/Cut/Pastefunctionalityfortheitemsinthelayout.
Asusualfirstyouneedtoselecttheitemsusingoneoftheoptionsseenabove;atthispointtheactionscanbe
foundintheEditmenu.WhenusingthePasteaction,theelementswillbepastedaccordingtothecurrentmouse
position.
18.4. Manageitems
235
Adding page numbers to a pdf document - insert pages into PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Guide C# Users to Insert (Empty) PDF Page or Pages from a Supported File Format
add pages to pdf file; add page number to pdf
Adding page numbers to a pdf document - VB.NET PDF Page Insert Library: insert pages into PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Easy to Use VB.NET APIs to Add a New Blank Page to PDF Document
adding a page to a pdf in reader; add page to pdf in preview
QGISUserGuide,Release2.2
Figure18.27:AlignmenthelperlinesinthePrintComposer
236
Chapter18. PrintComposer
C# Create PDF Library SDK to convert PDF from other file formats
PDF document file but also offer them the ability to count the page numbers of generated Besides, using this PDF document metadata adding control, you
add page to existing pdf file; add page number to pdf file
C# Word - Word Create or Build in C#.NET
but also offer them the ability to count the page numbers of generated Besides, using this Word document adding control, you can add some Create Word From PDF.
add a page to a pdf in acrobat; add page number to pdf document
QGISUserGuide,Release2.2
18.5 RevertandRestoretools
Duringthelayoutprocess,itispossibletorevertandrestorechanges.Thiscanbedonewiththerevertandrestore
tools:
Revertlastchanges
Restorelastchanges
ThiscanalsobedonebymouseclickwithintheCommandhistorytab(seefigure_composer_28).
Figure18.28:CommandhistoryinthePrintComposer
18.6 Atlasgeneration
ThePrintComposerincludesgenerationfunctionsthatallowyoutocreatemapbooksinanautomatedway.The
conceptistouseacoveragelayer,whichcontainsgeometriesandfields.Foreachgeometryinthecoveragelayer,
anewoutputwillbegeneratedwherethecontentofsomecanvasmapswillbemovedtohighlightthecurrent
geometry.Fieldsassociatedwiththisgeometrycanbeusedwithintextlabels.
Everypagewillbegeneratedwitheachfeature. Toenablethegenerationofanatlasandaccess s generation
parameters,refertotheAtlasgenerationtab.Thistabcontainsthefollowingwidgets(seeFigure_composer_29):
Generateanatlas,whichenablesordisablestheatlasgeneration.
• ACoveragelayer
comboboxthatallowsyoutochoosethe(vector)layercontainingthegeometries
onwhichtoiterateover.
• Anoptional
Hiddencoveragelayerthat,ifchecked,willhidethecoveragelayer(butnottheotherones)
duringthegeneration.
• AnoptionalFilterwithtextareathatallowsyoutospecifyanexpressionforfilteringfeaturesfromthe
coveragelayer. Iftheexpressionisnotempty,onlyfeaturesthatevaluatetoTruewillbeselected. The
buttonontherightallowsyoutodisplaytheexpressionbuilder.
• AnOutputfilenameexpressiontextboxthatisusedtogenerateafilenameforeachgeometryifneeded.Itis
basedonexpressions.Thisfieldismeaningfulonlyforrenderingtomultiplefiles.
• A
Singlefileexportwhenpossiblethatallowsyoutoforcethegenerationofasinglefileifthisispossible
withthechosenoutputformat(PDF,forinstance).Ifthisfieldischecked,thevalueoftheOutputfilename
expressionfieldismeaningless.
• Anoptional
Sortbythat,ifchecked,allowsyoutosortfeaturesofthecoveragelayer. Theassociated
comboboxallowsyoutochoosewhichcolumnwillbeusedasthesortingkey.Sortorder(eitherascending
ordescending)issetbyatwo-statebuttonthatdisplaysanuporadownarrow.
Youcanusemultiplemapitemswiththeatlasgeneration;eachmapwillberenderedaccordingtothecoverage
features. Toenableatlasgenerationforaspecificmapitem,youneedtocheck
ControlledbyAtlasunderthe
itempropertiesofthemapitem.Oncechecked,youcanset:
18.5. RevertandRestoretools
237
QGISUserGuide,Release2.2
Figure18.29:Atlasgenerationtab
238
Chapter18. PrintComposer
QGISUserGuide,Release2.2
• AninputboxMarginaroundfeaturethatallowsyoutoselecttheamountofspaceaddedaroundeach
geometrywithintheallocatedmap.Itsvalueismeaningfulonlywhenusingtheauto-scalingmode.
• A
Fixedscalethatallowsyoutotogglebetweenauto-scaleandfixed-scalemode.Infixed-scalemode,
themapwillonlybetranslatedforeachgeometrytobecentered.Inauto-scalemode,themap’sextentsare
computedinsuchawaythateachgeometrywillappearinitsentirety.
18.6.1 Labels
Inordertoadaptlabelstothefeaturetheatlaspluginiteratesover,usealabelwiththisspecialnotation[%expres-
sionusingfield_name%].Forexample,foracitylayerwithfieldsCITY_NAMEandZIPCODE,youcouldinsert
this:
[%‘Theareaof‘||upper(CITY_NAME)||‘,’||ZIPCODE||‘is‘format_number($area/1000000,2)||‘km2’
%]
Thatwouldresultinthegeneratedatlasas
TheareaofPARIS,75001is1.94km2”.
18.6.2 Preview
Oncetheatlassettingshavebeenconfiguredandmapitemsselected,youcancreateapreviewofallthepagesby
clickingonAtlasPreviewAtlasandusingthearrows,inthesamemenu,tonavigatethroughallthefeatures.
18.6.3 Generation
Theatlasgenerationcanbedoneindifferentways.Forexample,withAtlasPrintAtlas,youcandirectlyprint
it.YoucanalsocreateaPDFusingAtlasExportAtlasasPDF:Theuserwillbeaskedforadirectoryforsaving
allthegeneratedPDFfiles(exceptifthe
Singlefileexportwhenpossiblehasbeenselected). Ifyouneedto
printjustapageoftheatlas,simplystartthepreviewfunction,selectthepageyouneedandclickonComposer
Print(orcreateaPDF).
18.7 CreatingOutput
Figure_composer_30showsthePrintComposerwithanexampleprintlayout,includingeachtypeofmapelement
describedinthesectionsabove.
ThePrintComposerallowsyoutocreateseveraloutputformats,anditispossibletodefinetheresolution(print
quality)andpapersize:
• The
Print
iconallowsyoutoprintthelayouttoaconnectedprinteroraPostScriptfile,dependingon
installedprinterdrivers.
• The
Exportasimage
iconexportstheComposercanvasinseveralimageformats,suchasPNG,BPM,TIF,
JPG,...
ExportasPDF
savesthedefinedPrintComposercanvasdirectlyasaPDF.
• The
ExportasSVG iconsavesthePrintComposercanvasasanSVG(ScalableVectorGraphic).
Ifyouneedtoexportyourlayoutasageoreferencedimage(i.e.,toloadbackinsideQGIS),youneedtoenable
thisfeatureundertheCompositiontab.Check
Worldfileonandchoosethemapitemtouse.Withthisoption,
the‘Exportasimage’actionwillcreatealsoaworldfile.
Note: Currently,theSVGoutputisverybasic. . ThisisnotaQGISproblem,butaproblemwiththeunderlying
18.7. CreatingOutput
239
QGISUserGuide,Release2.2
Figure18.30:PrintComposerwithmapview,legend,image,scalebar,coordinates,textandHTMLframeadded
Qtlibrary.Thiswillhopefullybesortedoutinfutureversions. Exportingbigrasterscansometimesfail,evenif
thereseemstobeenoughmemory.ThisisalsoaproblemwiththeunderlyingQtmanagementofrasters.
18.8 ManagetheComposer
Withthe
Saveastemplate
and
Loadfromtemplate
icons,youcansavethecurrentstateofaPrintComposersession
asa.qpttemplateandloadthetemplateagaininanothersession.
The
ComposerManager
buttonintheQGIStoolbarandinComposerComposerManagerallowsyoutoadda
newComposertemplate,createanewcompositionbasedonapreviouslysavedtemplateortomanagealready
existingtemplates.
Bydefault,theComposermanagersearchesforusertemplatesin~/.qgis2/composer_template.
The
NewComposer
and
DuplicateComposer
buttonsintheQGIStoolbarandinComposerNewComposer
andComposerDuplicateComposerallowyoutoopenanewComposerdialog, ortoduplicateanexisting
compositionfromapreviouslycreatedone.
Finally,youcansaveyourprintcompositionwiththe
SaveProject
button.ThisisthesamefeatureasintheQGIS
mainwindow.AllchangeswillbesavedinaQGISprojectfile.
.
240
Chapter18. PrintComposer
QGISUserGuide,Release2.2
Figure18.31:ThePrintComposerManager
18.8. ManagetheComposer
241
QGISUserGuide,Release2.2
242
Chapter18. PrintComposer
CHAPTER
19
Plugins
.
19.1 QGISPlugins
QGIShasbeendesignedwithapluginarchitecture. Thisallowsmanynewfeaturesandfunctionstobeeasily
addedtotheapplication.ManyofthefeaturesinQGISareactuallyimplementedasplugins.
19.1.1 ThePluginsMenus
ThemenusinthePluginsdialogallowtheusertoinstall,uninstallandupgradepluginsindifferentways.
All
Here,alltheavailablepluginsarelisted, includingbothcoreandexternalplugins. . Use[Upgradeall]tolook
fornewversionsoftheplugins. Furthermore,youcanuse[Installplugin],ifapluginislistedbutnotinstalled,
and[Uninstallplugin]aswellas[Reinstallplugin],ifapluginisinstalled. Ifapluginisinstalled,itcanbe
de/activatedusingthecheckbox.
Installed
Inthismenu,youcanfindonlytheinstalledplugins.Theexternalpluginscanbeuninstalledandreinstalledusing
the[Uninstallplugin]and[Reinstallplugin]buttons.Youcan[Upgradeall]hereaswell.
Notinstalled
Thismenulistsallpluginsavailablethatarenotinstalled.Youcanusethe[Installplugin]buttontoimplementa
pluginintoQGIS.
Upgradeable
Ifyouactivated
Showalsoexperimentalpluginsinthe
Settingsmenu,youcanusethismenutolookfor
morerecentpluginversions.Thiscanbedonewiththe[Upgradeplugin]or[Upgradeall]buttons.
Settings
Inthismenu,youcanusethefollowingoptions:
Checkforupdatesonstartup.Wheneveranewpluginorapluginupdateisavailable,QGISwillinform
you‘everytimeQGISstarts’,‘onceaday’,‘every3days’,‘everyweek’,‘every2weeks’or‘everymonth’.
Showalsoexperimentalplugins.QGISwillshowyoupluginsinearlystagesofdevelopment,whichare
generallyunsuitableforproductionuse.
243
QGISUserGuide,Release2.2
Figure19.1:The
Allmenu
Figure19.2:The
Installedmenu
244
Chapter19. Plugins
Documents you may be interested
Documents you may be interested