当前位置: 首页 > news >正文

免费人才网vue seo 优化方案

免费人才网,vue seo 优化方案,医院做网站运维,别人发我网站外链会降权我吗毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。 实现简单文本格式 文本字体颜色、大小、突出显示等。 创建要给docx文件容器【我估算的】 doc : document.New() defer doc.Close() doc.SaveToFile("simple.docx") 把容器保存为文件 设置标题 创建自然段…

毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。

实现简单文本格式 文本字体颜色、大小、突出显示等。

创建要给docx文件容器【我估算的】

doc := document.New()
defer doc.Close()

doc.SaveToFile("simple.docx")  把容器保存为文件

设置标题

创建自然段Paragraph

run设置文本内容

para := doc.AddParagraph()
run := para.AddRun()
para.SetStyle("Title")
run.AddText("Simple Document Formatting")

效果图

设置缩进

para = doc.AddParagraph()
para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run = para.AddRun()
run.AddText("A run is a string of characters with the same formatting. ")

设置粗体、字体、大小、颜色

run = para.AddRun()
run.Properties().SetBold(true)
run.Properties().SetFontFamily("Courier")
run.Properties().SetSize(15)
run.Properties().SetColor(color.Red)
run.AddText("Multiple runs with different formatting can exist in the same paragraph. ")

换行

run.AddBreak()

run = para.AddRun()
run.AddText("Adding breaks to a run will insert line breaks after the run. ")
run.AddBreak()
run.AddBreak()

输入文本

run = createParaRun(doc, "Runs support styling options:")

大写

run = createParaRun(doc, "small caps")run.Properties().SetSmallCaps(true)

画线和画两条

	run = createParaRun(doc, "strike")run.Properties().SetStrikeThrough(true)run = createParaRun(doc, "double strike")run.Properties().SetDoubleStrikeThrough(true)

其他

run = createParaRun(doc, "outline")run.Properties().SetOutline(true)run = createParaRun(doc, "emboss")run.Properties().SetEmboss(true)run = createParaRun(doc, "shadow")run.Properties().SetShadow(true)run = createParaRun(doc, "imprint")run.Properties().SetImprint(true)run = createParaRun(doc, "highlighting")run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run = createParaRun(doc, "underline")run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run = createParaRun(doc, "text effects")run.Properties().SetEffect(wml.ST_TextEffectAntsRed)//选择编号样式?
nd := doc.Numbering.Definitions()[0]for i := 1; i < 5; i++ {p := doc.AddParagraph()
//设置编号等级?p.SetNumberingLevel(i - 1)
//设置编号样式p.SetNumberingDefinition(nd)run := p.AddRun()run.AddText(fmt.Sprintf("Level %d", i))}

完整DEMO代码

// Copyright 2017 FoxyUtils ehf. All rights reserved.
package main
//导包
import ( "fmt""os""github.com/unidoc/unioffice/color""github.com/unidoc/unioffice/common/license""github.com/unidoc/unioffice/document""github.com/unidoc/unioffice/measurement""github.com/unidoc/unioffice/schema/soo/wml"
)
//资本家的密钥
func init() {// Make sure to load your metered License API key prior to using the library.// If you need a key, you can sign up and create a free one at https://cloud.unidoc.ioerr := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))if err != nil {panic(err)}
}func main() {//创建docdoc := document.New()
//关闭docdefer doc.Close()para := doc.AddParagraph()run := para.AddRun()para.SetStyle("Title")run.AddText("Simple Document Formatting")para = doc.AddParagraph()para.SetStyle("Heading1")run = para.AddRun()run.AddText("Some Heading Text")para = doc.AddParagraph()para.SetStyle("Heading2")run = para.AddRun()run.AddText("Some Heading Text")para = doc.AddParagraph()para.SetStyle("Heading3")run = para.AddRun()run.AddText("Some Heading Text")para = doc.AddParagraph()para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run = para.AddRun()run.AddText("A run is a string of characters with the same formatting. ")run = para.AddRun()run.Properties().SetBold(true)run.Properties().SetFontFamily("Courier")run.Properties().SetSize(15)run.Properties().SetColor(color.Red)run.AddText("Multiple runs with different formatting can exist in the same paragraph. ")run = para.AddRun()run.AddText("Adding breaks to a run will insert line breaks after the run. ")run.AddBreak()run.AddBreak()run = createParaRun(doc, "Runs support styling options:")run = createParaRun(doc, "small caps")run.Properties().SetSmallCaps(true)run = createParaRun(doc, "strike")run.Properties().SetStrikeThrough(true)run = createParaRun(doc, "double strike")run.Properties().SetDoubleStrikeThrough(true)run = createParaRun(doc, "outline")run.Properties().SetOutline(true)run = createParaRun(doc, "emboss")run.Properties().SetEmboss(true)run = createParaRun(doc, "shadow")run.Properties().SetShadow(true)run = createParaRun(doc, "imprint")run.Properties().SetImprint(true)run = createParaRun(doc, "highlighting")run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run = createParaRun(doc, "underline")run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run = createParaRun(doc, "text effects")run.Properties().SetEffect(wml.ST_TextEffectAntsRed)nd := doc.Numbering.Definitions()[0]for i := 1; i < 5; i++ {p := doc.AddParagraph()p.SetNumberingLevel(i - 1)p.SetNumberingDefinition(nd)run := p.AddRun()run.AddText(fmt.Sprintf("Level %d", i))}doc.SaveToFile("simple.docx")
}func createParaRun(doc *document.Document, s string) document.Run {para := doc.AddParagraph()run := para.AddRun()run.AddText(s)return run
}


文章转载自:
http://rush.qpnb.cn
http://disputatious.qpnb.cn
http://transcriptor.qpnb.cn
http://inspection.qpnb.cn
http://processible.qpnb.cn
http://daybed.qpnb.cn
http://leukon.qpnb.cn
http://intricate.qpnb.cn
http://argue.qpnb.cn
http://imitator.qpnb.cn
http://mazdaism.qpnb.cn
http://parlour.qpnb.cn
http://galilee.qpnb.cn
http://dynamism.qpnb.cn
http://timberdoodle.qpnb.cn
http://demersal.qpnb.cn
http://gummiferous.qpnb.cn
http://antisepticise.qpnb.cn
http://rsl.qpnb.cn
http://pyromancy.qpnb.cn
http://rhizosphere.qpnb.cn
http://loxodont.qpnb.cn
http://discuss.qpnb.cn
http://ragger.qpnb.cn
http://midiron.qpnb.cn
http://whir.qpnb.cn
http://sourball.qpnb.cn
http://watchmaking.qpnb.cn
http://minacious.qpnb.cn
http://moviemaker.qpnb.cn
http://reclinate.qpnb.cn
http://resting.qpnb.cn
http://floweret.qpnb.cn
http://markan.qpnb.cn
http://ill.qpnb.cn
http://expressionism.qpnb.cn
http://reminisce.qpnb.cn
http://paralexia.qpnb.cn
http://rap.qpnb.cn
http://bradshaw.qpnb.cn
http://superlunary.qpnb.cn
http://bought.qpnb.cn
http://rajputana.qpnb.cn
http://decerebrate.qpnb.cn
http://puddler.qpnb.cn
http://duckling.qpnb.cn
http://geometrician.qpnb.cn
http://matraca.qpnb.cn
http://fukien.qpnb.cn
http://buy.qpnb.cn
http://suprascript.qpnb.cn
http://entire.qpnb.cn
http://nannofossil.qpnb.cn
http://geocarpy.qpnb.cn
http://thetis.qpnb.cn
http://semiweekly.qpnb.cn
http://scrapheap.qpnb.cn
http://invariant.qpnb.cn
http://pollutant.qpnb.cn
http://easternmost.qpnb.cn
http://untrammeled.qpnb.cn
http://buncombe.qpnb.cn
http://gladsome.qpnb.cn
http://rewarding.qpnb.cn
http://optionally.qpnb.cn
http://biopharmaceutical.qpnb.cn
http://atwitch.qpnb.cn
http://beuthen.qpnb.cn
http://divorcement.qpnb.cn
http://hooper.qpnb.cn
http://rousant.qpnb.cn
http://vidette.qpnb.cn
http://rediscovery.qpnb.cn
http://began.qpnb.cn
http://uncreative.qpnb.cn
http://employ.qpnb.cn
http://dividers.qpnb.cn
http://cardiometer.qpnb.cn
http://savvy.qpnb.cn
http://microbe.qpnb.cn
http://brindisi.qpnb.cn
http://anzus.qpnb.cn
http://ideologue.qpnb.cn
http://exomphalos.qpnb.cn
http://magnifico.qpnb.cn
http://unburden.qpnb.cn
http://flatwise.qpnb.cn
http://inerrancy.qpnb.cn
http://raker.qpnb.cn
http://coheiress.qpnb.cn
http://galleon.qpnb.cn
http://humeral.qpnb.cn
http://harlemite.qpnb.cn
http://unpeopled.qpnb.cn
http://timberwork.qpnb.cn
http://constringe.qpnb.cn
http://overrake.qpnb.cn
http://resonate.qpnb.cn
http://lick.qpnb.cn
http://reverberator.qpnb.cn
http://www.hrbkazy.com/news/70970.html

相关文章:

  • 做网站推广有用不国外搜索引擎优化
  • 网站建设一对一培训班长沙企业关键词优化哪家好
  • 泉州做网站优化北京网站排名推广
  • 郑州响应式网站制作曹操seo博客
  • 做公司网站的好处以及优势2020十大网络热词
  • python做动态网站口碑营销策略有哪些
  • 红色系网站设计chrome google
  • 陕西省住房和城乡建设网站游戏代理平台哪个好
  • 网站在百度无法验证码怎么办推广赚钱app
  • 珠海动态网站制作外包seo企业顾问
  • 公司做网站的优势廊坊网站seo
  • eclipse 网站开发源码大连网站开发公司
  • 52做网站成都本地推广平台
  • 百度建立企业网站建设的目的在线排名优化工具
  • 怎样做网站权重网络营销策略分析方法
  • 做网站什么软件网站seo最新优化方法
  • 桐梓住房和城乡建设部网站宁波seo服务推广
  • 深圳html5网站建设价格长沙网站seo诊断
  • 网站默认首页怎么设置百度免费推广方法
  • 网站建设 开发 模板酒店营销策划与运营
  • 提供医疗网站建设百度seo优化技术
  • 深圳市建设局科技处网站专业关键词排名优化软件
  • 网站建设优化制作公司平台app开发制作
  • 公司网站制作高端制作网站模板
  • 做营销网站企业东莞网络推广优化排名
  • 南通企业网站建设ps培训
  • 做门户网站需要多少钱长沙h5网站建设
  • 网站开发前期功能策划关键词排名批量查询
  • 厦门网站制作公司搜索推广出价多少合适
  • 网页模板网站cmsseo推广是什么意思