CKANdocumentation,Release2.6.0a
DataStoreGrid
Viewplugin:recline_grid_view
Displaysafilterable,sortable,tableviewofstructureddata.
ThispluginrequiresdatatobeintheDataStore.
3.6. Datapreviewandvisualization
55
Table from pdf to powerpoint - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
convert pdf file to powerpoint; picture from pdf to powerpoint
Table from pdf to powerpoint - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
how to change pdf to powerpoint on; changing pdf to powerpoint
CKANdocumentation,Release2.6.0a
DataStoreGraph
Viewplugin:recline_graph_view
AllowstocreategraphsfromdatastoredontheDataStore.Youcanchoosethegraphtype(suchaslines,bars,columns,
etc)andrestrictthedisplayeddata,byfilteringbyacertainfieldvalueordefininganoffsetandthenumberofrows.
ThispluginrequiresdatatobeintheDataStore.
56
Chapter3. Maintainer’sguide
C# Word - Table Processing in C#.NET
C# Word - Table Processing in C#.NET. Provide C# Users with Variety of Methods to Setup and Modify Table in Word Document. Overview. Create Table in Word.
pdf to ppt converter online; convert pdf pages into powerpoint slides
C# Word - Table Row Processing in C#.NET
C# Word - Table Row Processing in C#.NET. How to Set and Modify Table Rows in Word Document with C#.NET Solutions. Overview. Create and Add Rows in Table.
pdf to powerpoint converter; how to add pdf to powerpoint
CKANdocumentation,Release2.6.0a
DataStoreMap
Viewplugin:recline_map_view
ShowsdatastoredontheDataStoreinaninteractivemap. Itsupports s plottingmarkersfromapairoflatitude/
longitudefieldsorfromafieldcontainingaGeoJSONrepresentationofthegeometries.Theconfigurationalsoallows
toclustermarkersifthereisahighdensityofthemandtozoomautomaticallytotherenderedfeatures.
ThispluginrequiresdatatobeintheDataStore.
3.6. Datapreviewandvisualization
57
C# Word - Table Cell Processing in C#.NET
C# Word - Table Cell Processing in C#.NET. Online Tutorial for Users to Set and Modify Table Cells in Word Document. Overview. Create and Add Cells in Table.
copying image from pdf to powerpoint; how to add pdf to powerpoint presentation
How to C#: Convert PDF, Excel, PPT to Word
Footnote & Endnote Processing. Table Row Processing. Table Cell Processing. VB.NET How-to, VB.NET PDF, VB.NET Word, VB.NET Excel, VB.NET PowerPoint, VB.NET Tiff
add pdf to powerpoint slide; pdf to ppt
CKANdocumentation,Release2.6.0a
Textview
Viewplugin:text_view
DisplaysfilesinXML,JSONorplaintextbasedformatswiththesyntaxhighlighted. Theformatsdetectedcanbe
configuredusingtheckan.preview.xml_formats,ckan.preview.json_formatsandckan.preview.text_formatsconfigura-
tionoptionsrespectively.
IfyouwanttodisplayfilesthatarehostedinadifferentserverfromyourCKANinstance(egthathaven’tbeen
uploadedtoCKAN)youwillneedtoenabletheResourceProxyplugin.
58
Chapter3. Maintainer’sguide
C# Word - Header & Footer Processing in C#.NET
Create and Add Table to Footer & Header. The following demo code shows how to create table in footer and header. String docFilePath
table from pdf to powerpoint; adding pdf to powerpoint slide
How to C#: Overview of Using XDoc.Word
Rapidly load, create, and edit Word document (pages) in C# class library. Able to render and convert Word document to/from supported document (PDF and ODT).
create powerpoint from pdf; how to convert pdf to ppt
CKANdocumentation,Release2.6.0a
Imageview
Viewplugin:image_view
IftheresourceformatisacommonimageformatlikePNG, JPEGorGIF,itaddsan<img>tagpointingtothe
resourceURL.YoucanprovideanalternativeURLontheeditviewform.
3.6. Datapreviewandvisualization
59
C# Word - Document Processing in C#.NET
0); //Save the document doc0.Save(@""). Create, Add, Delete or Modify Paragraph and Table in Word Document. If you want to create
convert pdf to powerpoint online for; convert pdf to ppt online
C# Word - Word Create or Build in C#.NET
Create Word Document from Existing Files Using C#. Create Word From PDF. Create Word From PowerPoint. Create Word From Open Office Files. Table Processing.
conversion of pdf to ppt online; how to change pdf to powerpoint
CKANdocumentation,Release2.6.0a
Webpageview
Viewplugin:webpage_view
Addsan<iframe>tagtoembedtheresourceURL.YoucanprovideanalternativeURLontheeditviewform.
Warning: DonotactivatethispluginunlessyoutrusttheURLsources. . Itisnotrecommendedto
enablethisviewtypeoninstanceswherealluserscancreatedatasets.
Otherviewplugins
TherearemanymoreviewpluginsdevelopedbytheCKANteamandotherswhicharehostedonseparaterepositories.
Someexamplesinclude:
• Dashboard:Allowstocombinemultipleviewsintoasingledashboard.
• PDFviewer:AllowstorenderPDFfilesontheresourcepage.
• GeoJSONmap:RendersGeoJSONfilesonaninteractivemap.
• Choroplethmap:DisplaysdataontheDataStoreonachoroplethmap.
• Basiccharts:Providesalternativegraphtypesandrenderings.
Ifyouwanttoaddanotherviewtypetothislist,editthisfilebysendingapullrequestonGitHub.
NewpluginstorendercustomviewtypescanbeimplementedusingtheIResourceViewinterface.
Todo
60
Chapter3. Maintainer’sguide
C# Word - Footnote & Endnote Processing in C#.NET
Create or Add Table in Footnote & Endnote. The following demo code shows how to create table in the footnote. String docFilePath
convert pdf slides to powerpoint; convert pdf pages to powerpoint slides
C# Word - Convert Word to PDF in C#.NET
Word: Convert Word to PDF. C# Word - Convert Word to PDF in C#.NET. Online C# Tutorial for Converting Word to PDF (.pdf) Document. Word to PDF Conversion Overview
convert pdf pages into powerpoint slides; convert pdf document to powerpoint
CKANdocumentation,Release2.6.0a
Linktoapropertutorialforwritingcustomviews
3.6.5 ResourceProxy
Asresourceviewsarerenderedonthebrowser,ifthefiletheyareaccessingislocatedinadifferentdomainthanthe
oneCKANishosted,thebrowserwillblockaccesstoitbecauseofthesame-originpolicy.Forinstance,fileshosted
onwww.example.comwon’tbeabletobeaccessedfromthebrowserifCKANishostedondata.catalog.com.
Toallowviewpluginsaccesstoexternalfilesyouneedtoactivatetheresource_proxypluginonyourconfigura-
tionfile:
ckan.plugins = = resource_proxy y ...
ThiswillrequestthefileontheserversideandserveitfromthesamedomainasCKAN.
Youcanmodifythemaximumallowedsizeforproxiedfilesusingtheckan.resource_proxy.max_file_sizeconfiguration
setting.
3.6.6 MigratingfrompreviousCKANversions
IfyouareupgradinganexistinginstancerunningCKANversion2.2.xorlowertoCKAN2.3orhigher,youneedto
performamigrationprocessinorderfortheresourceviewstoappear. Ifthemigrationdoesnottakeplace,resource
viewswillonlyappearwhencreatingorupdatingdatasetsorresources,butnotonexistingones.
Themigrationprocessinvolvescreatingthenecessaryviewobjectsinthedatabase, whichcanbedoneusingthe
paster views createcommand.
Note: Thepaster r views createcommandusesthesearchAPItogetallnecessarydatasetsandresources,so
makesureyoursearchindexisuptodatebeforestartingthemigrationprocess.
Thewaythepaster views createcommandsworksisgettingallorasubsetoftheinstancedatasetsfromthe
searchindex,andforeachofthemcheckingagainstalistofviewpluginsifitisnecessarytocreateaviewobject.
Thisgetsdeterminedbyeachoftheindividualviewpluginsdependingonthedataset’sresourcesfields.
Beforeeachrun,youwillbepromptedwiththenumberofdatasetsaffectedandaskedifyouwanttocontinue(unless
youpassthe-yoption):
You are e about to check 3336 datasets for the e following view w plugins: ['image_view', , 'recline_view', , 'text_view']
Do you u want to o continue? [Y/n]
Note: OnlargeCKANinstancesthemigrationprocesscantakeasignificanttimeifusingthedefaultoptions. . It
isworthplanninginadvanceandsplittheprocessusingthesearchparameterstoonlycheckrelevantdatasets. The
followingdocumentationprovidesguidanceonhowtodothis.
Ifnoviewtypesareprovided,thedefaultonesareused(checkDefiningviewstoappearbydefaulttoseehowthese
aredefined):
paster views create
Specificviewtypescanbealsoprovided:
paster views create image_view recline_view w pdf_view
3.6. Datapreviewandvisualization
61
CKANdocumentation,Release2.6.0a
Forcertainviewtypes(theoneswithpluginsincludedinthemainCKANcore), defaultfiltersareappliedtothe
searchtoonlygetrelevantresources.Forinstanceifimage_viewisdefined,filtersareaddedtothesearchtoonly
getdatasetswithresourcesthathaveimageformats(png,jpg,etc).
Youcanalsoprovidearbitrarysearchparametersliketheonessupportedbypackage_search(). Thiscanbe
usefulforinstancetoonlyincludedatasetswithresourcesofacertainformat:
paster views create geojson_view w -s s '{"fq": : "res_format:GEOJSON"}'
Toinsteadavoidcertainformatsyoucando:
paster views create -s '{"fq": "-res_format:HTML"}'
Ofcoursethisisnotlimitedtoresourceformats,youcanfilteroutorinusinganyfield,asinanormaldatasetsearch:
paster views create -s '{"q": "groups:visualization-examples"}'
Tip: Ifyousettheckan_loggerleveltoDEBUGonyourconfigurationfileyoucanseethefullsearchparameters
beingsenttoSolr.
Forconvenience,thereisalsoanoptiontocreateviewsonaparticulardatasetordatasets:
paster views create -d dataset_id
paster views create -d dataset_name -d d dataset_name
3.6.7 Commandlineinterface
Thepaster viewscommandallowstocreateandremoveresourceviewsobjectsfromthedatabaseinbulk.
Checkthecommandhelpforthefulloptions:
paster views create -h
Todo
Tutorialforwritingcustomviewtypes.
3.7 FileStoreandfileuploads
Whenenabled,CKAN’sFileStoreallowsuserstouploaddatafilestoCKANresources,andtouploadlogoimagesfor
groupsandorganizations.Userswillseeanuploadbuttonwhencreatingorupdatingaresource,groupororganization.
Newinversion2.2:UploadinglogoimagesforgroupsandorganizationswasaddedinCKAN2.2.
Changedinversion2.2: PreviousversionsofCKANusedtoallowuploadstoremotecloudhostingbutwehave
simplifiedthistoonlyallowlocalfileuploads(seeMigrationfrom2.1to2.2fordetailsonhowtomigrate).Thisisto
giveCKANmorecontroloverthefilesandmakeaccesscontrolpossible.
Seealso:
DataStoreextension
Resourcefileslinked-tofromCKANoruploadedtoCKAN’sFileStorecanalsobepushedintoCKAN’s
DataStore,whichthenenablesdatapreviewsandadataAPIfortheresources.
62
Chapter3. Maintainer’sguide
CKANdocumentation,Release2.6.0a
3.7.1 Setupfileuploads
TosetupCKAN’sFileStorewithlocalfilestorage:
1. CreatethedirectorywhereCKANwillstoreuploadedfiles:
sudo mkdir -p /var/lib/ckan/default
2. AddthefollowinglinetoyourCKANconfigfile,afterthe[app:main]line:
ckan.storage_path = /var/lib/ckan/default
3. Set t the permissions s of your ckan.storage_path directory. . For r example e if you’re running CKAN N with
Apache,thenApache’suser(www-dataonUbuntu)musthaveread, writeandexecutepermissionsforthe
ckan.storage_path:
sudo chown www-data /var/lib/ckan/default
sudo chmod u+rwx /var/lib/ckan/default
4. Restartyourwebserver,forexampletorestartApache:
sudo service apache2 reload
3.7.2 FileStoreAPI
Changedinversion2.2:TheFileStoreAPIwasredesignedforCKAN2.2.ThepreviousAPIhasbeendeprecated.
FilescanbeuploadedtotheFileStoreusingtheresource_create()andresource_update()actionAPI
functions. Youcanpostmultipart/form-datatotheAPIandthekey,valuepairswilltreatedasasiftheyareaJSON
object.Theextrakeyuploadisusedtoactuallypostthebinarydata.
Forexample,tocreateanewCKANresourceanduploadafiletoitusingcurl:
curl -H'Authorization: your-api-key' 'http://yourhost/api/action/resource_create' --form upload=@filetoupload --form package_id=my_dataset
(Curlautomaticallysendsamultipart-form-dataheadingwithyouusethe--formoption.)
TocreateanewresourceanduploadafiletoitusingthePythonlibraryrequests:
import requests
requests.post('http://0.0.0.0:5000/api/action/resource_create',
data={"package_id":"my_dataset"},
headers={"X-CKAN-API-Key""21a47217-6d7b-49c5-88f9-72ebd5a4d4bb"},
files=[('upload'file('/path/to/file/to/upload.csv'))])
(Requestsautomaticallysendsamultipart-form-dataheadingwhenyouusethefiles=parameter.)
Tooverwriteanuploadedfilewithanewversionofthefile,posttotheresource_update()actionandusethe
uploadfield:
curl -H'Authorization: your-api-key' 'http://yourhost/api/action/resource_update' --form upload=@newfiletoupload d --form id=resourceid
ToreplaceanuploadedfilewithalinktoafileataremoteURL,usetheclear_uploadfield:
curl -H'Authorization: your-api-key' 'http://yourhost/api/action/resource_update' --form url=http://expample.com m --form clear_upload=true e --form id=resourceid
3.7.3 Migrationfrom2.1to2.2
Ifyouareusingpairtreelocalfilestoragethenyoucankeepyourcurrentsettingswithoutissue.Thepairtreeandnew
storagecanlivesidebysidebutyouarestillencouragedtomigrate. Ifyouchangeyourconfigoptionstotheones
specifiedinthisdocsyouwillneedtorunthemigrationbelow.
3.7. FileStoreandfileuploads
63
CKANdocumentation,Release2.6.0a
Ifyouarerunningremotestoragethenallpreviouslinkswillstillbeaccessiblebutifyouwanttomovetheremote
storagedocumentstothelocalstorageyouwillrunthemigrationalso.
InordertomigratemakesureyourCKANinstanceisrunningasthescriptwillrequestthedatafromtheinstance
usingAPIs.Youneedtorunthefollowingonthecommandlinetodothemigration:
paster db b migrate-filestore
Thismaytakealongtimeespeciallyifyouhavealotoffilesremotely.Iftheremotehostinggoesdownorthejobis
interrupteditissavetorunitagainanditwilltryalltheunsuccessfulonesagain.
3.7.4 CustomInternetmediatypes(MIMEtypes)
Newinversion2.2.
CKANusesthedefaultPythonlibrarymimetypestodetectthemediatypeofanuploadedfile. Ifsomeparticular
formatisnotincludedintheonesguessedbythemimetypeslibrary,adefaultapplication/octet-stream
valuewillbereturned.
Userscanstillregisteramoreappropiatemediatypebyusingthemimetypeslibrary.Agoodwaytodosoistouse
theIConfigurerinterfacesothecustomtypesgetregisteredonstartup:
import mimetypes
import ckan.plugins as p
class MyPlugin(p.SingletonPlugin):
p.implements(p.IConfigurer)
def update_config(self, config):
mimetypes.add_type('application/json''.geojson')
# ...
3.8 DataStoreextension
TheCKANDataStoreextensionprovidesanadhocdatabaseforstorageofstructureddatafromCKANresources.
DatacanbepulledoutofresourcefilesandstoredintheDataStore.
WhenaresourceisaddedtotheDataStore,youget:
• Automaticdatapreviewsontheresource’spage,usingtheDataExplorerextension
• TheDataStoreAPI:search,filterandupdatethedata,withouthavingtodownloadanduploadtheentiredata
file
TheDataStoreisintegratedintotheCKANAPIandauthorizationsystem.
TheDataStoreisgenerallyusedalongsidetheDataPusher,whichwillautomaticallyuploaddatatotheDataStorefrom
suitablefiles,whetheruploadedtoCKAN’sFileStoreorexternallylinked.
• RelationshiptoFileStore
• SettinguptheDataStore
• DataPusher:AutomaticallyAddDatatotheDataStore
• TheDataStoreAPI
64
Chapter3. Maintainer’sguide
Documents you may be interested
Documents you may be interested