calibreUserManual,Release2.55.0
--isbn
SettheISBNofthebook.
--language-l
Setthelanguage.
--lrf-bookid
SettheBookIDinLRFfiles
--publisher-p
Settheebookpublisher.
--rating-r
Settherating.Shouldbeanumberbetween1and5.
--series-s
Settheseriesthisebookbelongsto.
--tags
Setthetagsforthebook.Shouldbeacommaseparatedlist.
--title-t
Setthetitle.
--title-sort
Theversionofthetitletobeusedforsorting. Ifunspecified,andthetitleisspecified,itwillbeauto-generated
fromthetitle.
--to-opf
SpecifythenameofanOPFfile.ThemetadatawillbewrittentotheOPFfile.
--version
showprogram’sversionnumberandexit
ebook-polish
ebook-polish [options] input_file [output_file]
Polishingbooksisallaboutputtingtheshineofperfectionontoyourcarefullycraftedebooks.
Polishingtriestominimizethechangestotheinternalcodeofyourebook.Unlikeconversion,itdoesnotflattenCSS,
renamefiles,changefontsizes,adjustmargins,etc. Everyactionperformsonlytheminimumsetofchangesneeded
forthedesiredeffect.
Youshouldusethistoolasthelaststepinyourebookcreationprocess.
NotethatpolishingonlyworksonfilesintheAZW3orEPUBformats.
Wheneveryoupassargumentstoebook-polishthathavespacesinthem,enclosethearguments inquotation
marks.Forexample“C:somepathwithspaces”
[options]
--compress-images-i
Losslesslycompressimagesinthebook,toreducethefilesize,withoutaffectingimagequality.
--cover-c
Pathtoacoverimage. Changesthecoverspecifiedintheebook. Ifnocoverispresent,orthecoverisnot
properlyidentified,insertsanewcover.
1.11. CommandLineInterface
267
Pdf to ppt converter online - 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
how to convert pdf file to powerpoint presentation; convert pdf to powerpoint presentation
Pdf to ppt converter online - 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
adding pdf to powerpoint; convert pdf into powerpoint online
calibreUserManual,Release2.55.0
--embed-fonts-e
Embedallfontsthatarereferencedinthedocumentandarenotalreadyembedded.Thiswillscanyourcomputer
forthefonts,andiftheyarefound,theywillbeembeddedintothedocument. Pleaseensurethatyouhavethe
properlicenseforembeddingthefontsusedinthisdocument.
--help-h
showthishelpmessageandexit
--jacket-j
Inserta"bookjacket"pageatthestartofthebookthatcontainsallthebookmetadatasuchastitle,tags,authors,
series,comments,etc.Anypreviousbookjacketwillbereplaced.
--opf-o
PathtoanOPFfile.ThemetadatainthebookisupdatedfromtheOPFfile.
--remove-jacket
Removeapreviousinsertedbookjacketpage.
--remove-unused-css-u
RemoveallunusedCSSrulesfromstylesheetsand<style>tags.Somebookscreatedfromproductiontemplates
canhavealargenumberofextraCSSrulesthatdontmatchanyactualcontent.Theseextrarulescanslowdown
readersthatneedtoparsethemall.
--smarten-punctuation-p
Convertplaintextdashes,ellipsis,quotes,multiplehyphens,etc.intotheirtypographicallycorrectequivalents.
Notethatthealgorithmcansometimesgenerateincorrectresults,especiallywhensinglequotesatthestartof
contractionsareinvolved.
--subset-fonts-f
Subsettingfontsmeansreducinganembeddedfonttocontainonlythecharactersusedfromthatfontinthe
book.Thisgreatlyreducesthesizeofthefontfiles(halvingthefontfilesizesiscommon). Forexample,ifthe
bookusesaspecificfontforheaders,thensubsettingwillreducethatfonttocontainonlythecharacterspresent
intheactualheadersinthebook. Orifthebookembedstheboldanditalicversionsofafont,butboldand
italictextisrelativelyrare,orabsentaltogether,thentheboldanditalicfontscaneitherbereducedtoonlyafew
charactersorcompletelyremoved.Theonlydownsidetosubsettingfontsisthatif,atalaterdateyoudecideto
addmoretexttoyourbooks,thenewlyaddedtextmightnotbecoveredbythesubsetfont.
--verbose
Producemoreverboseoutput,usefulfordebugging.
--version
showprogram’sversionnumberandexit
ebook-viewer
ebook-viewer [options] file
Viewanebook.
Wheneveryoupassargumentstoebook-viewerthathavespacesinthem,enclosethearguments inquotation
marks.Forexample“C:somepathwithspaces”
[options]
--continue
Continuereadingatthepreviouslyopenedbook
268
Chapter1. Sections
Online Convert PowerPoint to PDF file. Best free online export
Online Powerpoint to PDF Converter. Download Free Trial. Convert a PPTX/PPT File to PDF. Just upload your file by clicking on the blue
how to change pdf to powerpoint on; adding pdf to powerpoint slide
C# PDF Convert: How to Convert MS PPT to Adobe PDF Document
Our XDoc.Converter for .NET can help you to easily achieve high performance PDF conversion from Microsoft PowerPoint (.ppt and .pptx).
drag and drop pdf into powerpoint; export pdf to powerpoint
calibreUserManual,Release2.55.0
--debug-javascript
Printjavascriptalertandconsolemessagestotheconsole
--detach
Detachfromthecontrollingterminal,ifany(linuxonly)
--full-screen-f
Ifspecified,viewerwindowwilltrytoopenfullscreenwhenstarted.
--help-h
showthishelpmessageandexit
--open-at
Thepositionatwhichtoopenthespecifiedbook.Thepositionisalocationasdisplayedinthetopleftcornerof
theviewer.
--raise-window
Ifspecified,viewerwindowwilltrytocometothefrontwhenstarted.
--version
showprogram’sversionnumberandexit
fetch-ebook-metadata
fetch-ebook-metadata [options]
Fetchbookmetadatafromonlinesources.Youmustspecifyatleastoneoftitle,authorsorISBN.
Wheneveryoupassargumentstofetch-ebook-metadatathathavespacesinthem,enclosetheargumentsin
quotationmarks.Forexample“C:somepathwithspaces”
[options]
--authors-a
Bookauthor(s)
--cover-c
Specifyafilename.Thecover,ifavailable,willbesavedtoit.Withoutthisoption,nocoverwillbedownloaded.
--help-h
showthishelpmessageandexit
--isbn-i
BookISBN
--opf-o
OutputthemetadatainOPFformatinsteadofhumanreadabletext.
--timeout-d
Timeoutinseconds.Defaultis30
--title-t
Booktitle
--verbose-v
Printthelogtotheconsole(stderr)
--version
showprogram’sversionnumberandexit
1.11. CommandLineInterface
269
How to C#: Convert PDF, Excel, PPT to Word
How to for XImage. All Formats. XDoc.HTML5 Viewer. XDoc.Windows Viewer. XDoc.Converter. View & Process. XImage.Raster. How to C#: Convert PDF, Excel, PPT to Word
how to change pdf to powerpoint; converting pdf to ppt
VB.NET PowerPoint: Process & Manipulate PPT (.pptx) Slide(s)
This VB.NET online tutorial page can help you processing control add-on can do PPT creating, loading powerful & profession imaging controls, PDF document, image
pdf picture to powerpoint; create powerpoint from pdf
calibreUserManual,Release2.55.0
lrf2lrs
lrf2lrs book.lrf
ConvertanLRFfileintoanLRS(XMLUTF-8encoded)file
Wheneveryoupassargumentstolrf2lrsthathavespacesinthem,enclosetheargumentsinquotationmarks.For
example“C:somepathwithspaces”
[options]
--dont-output-resources
Donotsaveembeddedimageandfontfilestodisk
--help-h
showthishelpmessageandexit
--output-o
OutputLRSfile
--verbose
Bemoreverbose
--version
showprogram’sversionnumberandexit
lrfviewer
lrfviewer [options] ] book.lrf
ReadtheLRFebookbook.lrf
Wheneveryoupassargumentstolrfviewerthathavespacesinthem,enclosetheargumentsinquotationmarks.
Forexample“C:somepathwithspaces”
[options]
--disable-hyphenation
Disablehyphenation.Shouldsignificantlyspeeduprendering.
--help-h
showthishelpmessageandexit
--profile
ProfiletheLRFrenderer
--verbose
Printmoreinformationabouttherenderingprocess
--version
showprogram’sversionnumberandexit
--visual-debug
Turnonvisualaidstodebuggingtherenderingengine
--white-background
BydefaultthebackgroundisoffwhiteasIfindthiseasierontheeyes.Usethisoptiontomakethebackground
purewhite.
270
Chapter1. Sections
VB.NET PowerPoint: Convert PowerPoint to BMP Image with VB PPT
NET PPT document converter allows for PowerPoint conversion to both images and documents, like rendering PowerPoint to BMP, GIF, PNG, TIFF, JPEG, SVG or PDF.
convert pdf into ppt online; convert pdf to ppt online
How to C#: Convert Word, Excel and PPT to PDF
All Formats. XDoc.HTML5 Viewer. XDoc.Windows Viewer. XDoc.Converter. View & Process. XImage.Raster. Adobe PDF. How to C#: Convert Word, Excel and PPT to PDF.
how to convert pdf to powerpoint slides; how to convert pdf slides to powerpoint presentation
calibreUserManual,Release2.55.0
lrs2lrf
lrs2lrf [options] file.lrs
CompileanLRSfileintoanLRFfile.
Wheneveryoupassargumentstolrs2lrfthathavespacesinthem,enclosetheargumentsinquotationmarks.For
example“C:somepathwithspaces”
[options]
--help-h
showthishelpmessageandexit
--lrs
ConvertLRStoLRS,usefulfordebugging.
--output-o
Pathtooutputfile
--verbose
Verboseprocessing
--version
showprogram’sversionnumberandexit
web2disk
web2disk URL
WhereURLisforexamplehttp://google.com
Wheneveryoupassargumentstoweb2diskthathavespacesinthem,enclosetheargumentsinquotationmarks.For
example“C:somepathwithspaces”
[options]
--base-dir-d
BasedirectoryintowhichURLissaved.Defaultis.
--delay
Minimumintervalinsecondsbetweenconsecutivefetches.Defaultis0s
--dont-download-stylesheets
DonotdownloadCSSstylesheets.
--encoding
Thecharacterencodingforthewebsitesyouaretryingtodownload.Thedefaultistotryandguesstheencoding.
--filter-regexp
Anylinkthatmatchesthisregularexpressionwillbeignored. Thisoptioncanbespecifiedmultipletimes,in
whichcaseaslongasanyregexpmatchesalink,itwillbeignored. Bydefault,nolinksareignored. . Ifboth
filterregexpandmatchregexparespecified,thenfilterregexpisappliedfirst.
--help-h
showthishelpmessageandexit
1.11. CommandLineInterface
271
VB.NET PowerPoint: Read & Scan Barcode Image from PPT Slide
VB.NET PPT PDF-417 barcode scanning SDK to detect PDF-417 barcode image from PowerPoint slide. VB.NET APIs to detect and decode
embed pdf into powerpoint; copying image from pdf to powerpoint
VB.NET PowerPoint: Use .NET Converter to Convert PPT to Raster
VB.NET PPT to raster images converter very well. Check PPT to PNG image converting sample code in VB powerful & profession imaging controls, PDF document, image
convert pdf file to ppt online; how to convert pdf slides to powerpoint
calibreUserManual,Release2.55.0
--match-regexp
Onlylinksthatmatchthisregularexpressionwillbefollowed. Thisoptioncanbespecifiedmultipletimes,in
whichcaseaslongasalinkmatchesanyoneregexp,itwillbefollowed.Bydefaultalllinksarefollowed.
--max-files-n
The maximum number of files to download. . This s only applies s to o files s from <a href> > tags. . Default t is
9223372036854775807
--max-recursions-r
Maximumnumberoflevelstorecursei.e.depthoflinkstofollow.Default1
--timeout-t
Timeoutinsecondstowaitforaresponsefromtheserver.Default:10.0s
--verbose
Showdetailedoutputinformation.Usefulfordebugging
--version
showprogram’sversionnumberandexit
1.11.2 UndocumentedCommands
• ebook-device
• markdown-calibre
Youcanseeusageforundocumentedcommandsbyexecutingthemwithoutargumentsinaterminal.
1.12 Settingupacalibredevelopmentenvironment
calibreiscompletelyopensource, licensedundertheGNUGPLv397. Thismeansthatyouarefreetodownload
andmodifytheprogramtoyourheart’scontent. Inthissection,youwilllearnhowtogetacalibredevelopment
environmentsetupontheoperatingsystemofyourchoice.calibreiswrittenprimarilyinPython98withsomeC/C++
codeforspeedandsysteminterfacing.NotethatcalibreisnotcompatiblewithPython3andrequiresatleastPython
2.7.9.
97
http://www.gnu.org/copyleft/gpl.html
98
https://www.python.org
272
Chapter1. Sections
calibreUserManual,Release2.55.0
Contents
• Designphilosophy(page273)
– Codelayout(page273)
• Gettingthecode(page274)
– Submittingyourchangestobeincluded(page274)
• Windowsdevelopmentenvironment(page275)
• OSXdevelopmentenvironment(page276)
• Linuxdevelopmentenvironment(page277)
• Havingseparate“normal”and“development”calibreinstallsonthesamecomputer(page277)
• Debuggingtips(page278)
– Usingprintstatements(page278)
– Usinganinteractivepythoninterpreter(page278)
– Usingthepythondebuggerasaremotedebugger(page278)
– UsingthedebuggerinyourfavoritepythonIDE(page279)
– Executingarbitraryscriptsinthecalibrepythonenvironment(page279)
• Usingcalibreinyourprojects(page279)
– Binaryinstallofcalibre(page279)
– SourceinstallonLinux(page279)
• APIdocumentationforvariouspartsofcalibre(page280)
1.12.1 Designphilosophy
calibrehasitsrootsintheUnixworld,whichmeansthatitsdesignishighlymodular.Themodulesinteractwitheach
otherviawelldefinedinterfaces. Thismakesaddingnewfeaturesandfixingbugsincalibreveryeasy,resultingin
afreneticpaceofdevelopment. Becauseofitsroots,calibrehasacomprehensivecommandlineinterfaceforallits
functions,documentedinCommandLineInterface(page228).
ThemodulardesignofcalibreisexpressedviaPlugins. Thereisatutorial(page192)onwritingcalibreplugins.
Forexample,addingsupportforanewdevicetocalibretypicallyinvolveswritinglessthana100linesofcodeinthe
formofadevicedriverplugin. Youcanbrowsethebuilt-indrivers
99
. Similarly,addingsupportfornewconversion
formatsinvolveswritinginput/outputformatplugins. Anotherexampleofthemodulardesignistherecipesystem
(page23)forfetchingnews.Formoreexamplesofpluginsdesignedtoaddfeaturestocalibre,seethepluginindex
100
.
Codelayout
Allthecalibrepythoncodeisinthecalibrepackage.Thispackagecontainsthefollowingmainsub-packages
• devices-Allthedevicedrivers.Justlookthroughsomeofthebuilt-indriverstogetanideaforhowtheywork.
– Fordetails, , see: : devices.interfacewhichdefinestheinterfacesupportedbydevicedriversand
devices.usbmswhichdefinesagenericdriverthatconnectstoaUSBMSdevice.AllUSBMSbased
driversincalibreinheritfromit.
• ebooks s - - All the
ebook
conversion/metadata
code.
A
good
starting
point is
calibre.ebooks.conversion.cli which h is s the e module powering g the ebook-convert com-
mand.Theconversionprocessiscontrolledviaconversion.plumber.Theformatindependentcodeisall
inebooks.oebandtheformatdependentcodeisinebooks.format_name.
– Metadatareading,writing,anddownloadingisallinebooks.metadata
99
https://github.com/kovidgoyal/calibre/tree/master/src/calibre/devices
100
http://www.mobileread.com/forums/showthread.php?p=1362767#post1362767
1.12. Settingupacalibredevelopmentenvironment
273
calibreUserManual,Release2.55.0
– Conversionhappensinapipeline,forthestructureofthepipeline,seeIntroduction(page55).Thepipeline
consistsofaninputplugin,varioustransformsandanoutputplugin. Thecodethatconstructsanddrives
thepipelineisinplumber.py. Thepipelineworks s onarepresentationofanebookthatislikean
unzippedepub, withmanifest, spine, , toc, , guide, htmlcontent, etc. . Theclass s thatmanagesthis rep-
resentationisOEBBookinebooks.oeb.base. Thevarioustransformationsthatareappliedtothe
bookduringconversionsliveinoeb/transforms/
*
.py. Andtheinputandoutputpluginslivein
conversion/plugins/
*
.py.
– Ebookeditinghappensusingadifferentcontainerobject. . ItisdocumentedinAPIDocumentationforthe
ebookeditingtools(page286).
• db-Thedatabaseback-end.SeeAPIDocumentationforthedatabaseinterface(page280)fortheinterfaceto
thecalibrelibrary.
• contentserver:library.serveristhecalibreContentServer.
• gui2-TheGraphicalUserInterface. GUIinitializationhappensingui2.mainandgui2.ui. . Theebook-
viewerisingui2.viewer.Theebookeditorisingui2.tweak_book.
Ifyouwanttolocatetheentrypointsforallthevariouscalibreexecutables,lookattheentry_pointsstructurein
linux.py
101
.
Ifyouneedhelpunderstandingthecode,postinthedevelopmentforum
102
andyouwillmostlikelygethelpfromone
ofcalibre’smanydevelopers.
1.12.2 Gettingthecode
Youcangetthecalibresourcecodeintwoways,usingaversioncontrolsystemordirectlydownloadingatarball
103
.
calibreusesGit
104
,adistributedversioncontrolsystem. Gitisavailableonalltheplatformscalibresupports. After
installingGit,youcangetthecalibresourcecodewiththecommand:
git clone git://github.com/kovidgoyal/calibre.git
On Windows s you u will need the e complete path h name, , that t will l be something like C:\Program
Files\Git\git.exe.
calibreisaverylargeprojectwithaverylongsourcecontrolhistory,sotheabovecantakeawhile(10minstoanhour
dependingonyourinternetspeed).
Ifyouwanttogetthecodefaster,thesourcecodeforthelatestreleaseisalwaysavailableasanarchive
105
.
Toupdateabranchtothelatestcode,usethecommand:
git pull --no-edit
Submittingyourchangestobeincluded
Ifyouonlyplantomakeafewsmallchanges,youcanmakeyourchangesandcreatea“mergedirective”whichyou
canthenattachtoaticketinthecalibrebugtracker
106
.Todothis,makeyourchanges,thenrun:
101
https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py
102
http://www.mobileread.com/forums/forumdisplay.php?f=240
103
https://calibre-ebook.com/dist/src
104
http://www.git-scm.com/
105
https://calibre-ebook.com/dist/src
106
https://bugs.launchpad.net/calibre
274
Chapter1. Sections
calibreUserManual,Release2.55.0
git commit -am "Comment describing your changes"
git format-patch h origin/master --stdout my-changes
Thiswillcreateamy-changesfileinthecurrentdirectory,simplyattachthattoaticketonthecalibrebugtracker107.
Notethatthiswillincludeallthecommitsyouhavemade.Ifyouonlywanttosendsomecommits,youhavetochange
origin/masterabove.Tosendonlythelastcommit,use:
git format-patch h HEAD~--stdout my-changes
Tosendthelastncommits,replace1withn,forexample,forthelast3commits:
git format-patch h HEAD~--stdout my-changes
BecarefultonotincludemergeswhenusingHEAD~n.
Ifyouplantodoalotofdevelopmentoncalibre,thenthebestmethodistocreateaGitHub
108
account. Belowisa
basicguidetosettingupyourownforkofcalibreinawaythatwillallowyoutosubmitpullrequestsforinclusion
intothemaincalibrerepository:
• Setupgitonyourmachineasdescribedinthisarticle:SetupGit
109
• SetupsshkeysforauthenticationtoGitHub,asdescribedhere:GeneratingSSHkeys
110
• Gotohttps://github.com/kovidgoyal/calibreandclicktheForkbutton.
• InaTerminaldo:
git clone git@github.com:<username>/calibre.git
git remote add d upstream m https://github.com/kovidgoyal/calibre.git
Replace<username>abovewithyourgithubusername.Thatwillgetyourforkcheckedoutlocally.
• Youcanmakechangesandcommitthemwheneveryoulike. . Whenyouarereadytohaveyourworkmerged,
doa:
git push
andgotohttps://github.com/<username>/calibreandclickthePullRequestbuttontogenerate
apullrequestthatcanbemerged.
• Youcanupdateyourlocalcopywithcodefromthemainrepoatanytimebydoing:
git pull l upstream
Youshouldalsokeepaneyeonthecalibredevelopmentforum
111
.Beforemakingmajorchanges,youshoulddiscuss
themintheforumorcontactKoviddirectly(hisemailaddressisalloverthesourcecode).
1.12.3 Windowsdevelopmentenvironment
Note: Youmustalsogetthecalibresourcecodeseparatelyasdescribedabove.
Installcalibrenormally,usingtheWindowsinstaller. ThenopenaCommandPromptandchangetothepreviously
checkedoutcalibrecodedirectory.Forexample:
107
https://bugs.launchpad.net/calibre
108 https://github.com
109 https://help.github.com/articles/set-up-git
110 https://help.github.com/articles/generating-ssh-keys
111 http://www.mobileread.com/forums/forumdisplay.php?f=240
1.12. Settingupacalibredevelopmentenvironment
275
calibreUserManual,Release2.55.0
cd C:\Users\kovid\work\calibre
calibreisthedirectorythatcontainsthesrcandresourcessub-directories.
ThenextstepistosettheenvironmentvariableCALIBRE_DEVELOP_FROMtotheabsolutepathofthesrcdirectory.
So,followingtheexampleabove,itwouldbeC:\Users\kovid\work\calibre\src.Hereisashortguide
112
tosettingenvironmentvariablesonWindows.
Onceyouhavesettheenvironmentvariable,openanewcommandpromptandcheckthatitwascorrectlysetbyusing
thecommand:
echo %CALIBRE_DEVELOP_FROM%
SettingthisenvironmentvariablemeansthatcalibrewillnowloadallitsPythoncodefromthespecifiedlocation.
That’s it!
You are now w ready to o start t hacking g on the calibre code.
For example, , open n the e file
src\calibre\__init__.pyinyourfavoriteeditorandaddtheline:
print ("Hello, world!")
nearthe topofthefile. . Nowrunthecommandcalibredb. TheveryfirstlineofoutputshouldbeHello,
world!.
YoucanalsosetupacalibredevelopmentenvironmentinsidethefreeMicrosoftVisualStudio,ifyoulike,following
theinstructionshere
113
.
1.12.4 OSXdevelopmentenvironment
Note: Youmustalsogetthecalibresourcecodeseparatelyasdescribedabove.
Installcalibrenormallyusingtheprovided.dmg. ThenopenaTerminalandchangetothepreviouslycheckedout
calibrecodedirectory,forexample:
cd /Users/kovid/work/calibre
calibreisthedirectorythatcontains thesrcandresources sub-directories. . Ensureyouhaveinstalledthecalibre
commandlinetoolsviaPreferences->Advanced->MiscellaneousinthecalibreGUI.
ThenextstepistocreateabashscriptthatwillsettheenvironmentvariableCALIBRE_DEVELOP_FROMtothe
absolutepathofthesrcdirectorywhenrunningcalibreindebugmode.
Createaplaintextfile:
#!/bin/sh
export CALIBRE_DEVELOP_FROM="/Users/kovid/work/calibre/src"
calibre-debug -g
Savethisfileas/usr/bin/calibre-develop,thensetitspermissionssothatitcanbeexecuted:
chmod +/usr/bin/calibre-develop
Onceyouhavedonethis,run:
calibre-develop
YoushouldseesomediagnosticinformationintheTerminalwindowascalibrestartsup,andyoushouldseeanasterisk
aftertheversionnumberintheGUIwindow,indicatingthatyouarerunningfromsource.
112
https://docs.python.org/2/using/windows.html#excursus-setting-environment-variables
113
http://www.mobileread.com/forums/showthread.php?t=251201
276
Chapter1. Sections
Documents you may be interested
Documents you may be interested