addSource
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createDocx
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importHeadersAndFooters
- importStyles
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- addBibliography
- addBookmark
- addBreak
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addPageNumber
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addTable
- addTableContents
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteTemplateBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- tickCheckbox
addSource
ADVANCED / PREMIUM
BASIC
Inserts a source into the Word document.
Description
public void addSource(String tag, String type, HashMap>> author, HashMap info)
This method allows to insert sources into a Word document.
Parameters
tag
Sets the tag name of a source, needed to add a citation.
type
Source type:
- Art
- ArticleInAPeriodical
- Book
- BookSection
- Case
- ConferenceProceedings
- DocumentFromInternetSite
- ElectronicSource
- Film
- InternetSite
- Interview
- JournalArticle
- Misc
- Patent
- Performance
- Report
- SoundRecording
author
- Author
- Editor
- Translator
info
Source information:
- AbbreviatedCaseNumber
- AlbumTitle
- BookTitle
- Broadcaster
- BroadcastTitle
- CaseNumber
- ChapterNumber
- City
- Comments
- ConferenceName
- CountryRegion
- Court
- Day
- DayAccessed
- Department
- Distributor
- Edition
- Institution
- InternetSiteTitle
- Issue
- JournalName
- LCID
- Medium
- Month
- MonthAccessed
- NumberVolumes
- Pages
- PatentNumber
- PeriodicalTitle
- ProductionCompany
- PublicationTitle
- Publisher
- RecordingNumber
- RefOrder
- Reporter
- ShortTitle
- StandardNumber
- StateProvince
- Station
- Theater
- ThesisType
- Title
- Type
- URL
- Version
- Volume
- Year
- YearAccessed
Code samples
Example #1