1 / 20
文档名称:

phpword中文文档.docx

格式:docx   页数:20页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

phpword中文文档.docx

上传人:2028423509 2015/12/27 文件大小:0 KB

下载得到文件列表

phpword中文文档.docx

文档介绍

文档介绍:PHPWord Beta
Developers Guide
Table of contents
What the hell are twips? 4
Set default Font 4
Set document properties 4
Sections 4
Add a section 5
Style sections 5
Available style properties 5
Text Elements 6
Add text elements 6
Add textrun elements 6
Style text elements 7
Available style properties 7
Add text breaks 8
Add page breaks 8
List elements 8
Add list elements 8
Style list elements 9
Available list style properties 9
Hyperlinks 9
Add Hyperlinks 9
Style Hyperlinks 9
Images 10
Add images 10
Style images 10
Available style properties 10
Add memory images 11
Add watermarks 11
Add objects 12
Add titles 12
Add table-of-contents 13
Tables 14
Add tables 14
Add rows 14
Add cells 14
Style cells 15
Style tables 16
Footer 17
Header 18
Templates 18
What the hell are twips?
You'll often find the unit twips in this documentation. Twips are the base length unit in Open Office. Twip means "TWentieth of an Inch Point". So 1 twip = 1/1440 inch.
到底twips是什么?
你经常会发现这个文档单位twips是基本长度单位在开放的办公室。Twip意味着“20英寸点”。因此,1 twip = 1/1440英寸。
Set default Font
By default every text appears in Arial font with font size of 10 point. You can alter the default font by using the following two functions:
$PHPWord->setDefaultFontName('Tahoma');
$PHPWord->setDefaultFontSize(12);
Set document properties
You can set the following document properties:
Name
Type
Creator
String
Company
String
Title
String
Description
String
Category
String
Last modified by
String
Created
Datetime
Modified
Datetime
Subject
String
Keywords
String
To set these properties use the following code:
$properties = $PHPWord->getProperties();
$properties->setCreator('My name');
$properties->pany('My factory');
$properties->setTitle('My title');
$properties->setDescription('My description');
$properties->setCategory('My category');
$properties->setLastModifiedBy('My name');
$properties->setCreated( mktime(0, 0, 0, 3, 12, 2010) );
$properties->se

最近更新

二零二五年度文化产业发展入股协议范本 8页

二零二五年度教育机构收费标准合作协议书 9页

二零二五年度挖掘机二手交易与维修保养合同 9页

二零二五年度房地产股权代持与转让风险评估合.. 8页

二零二五年度房产代持与装修改造服务合同 8页

二零二五年度影视作品分红不占股份合同 8页

二零二五年度家校共筑学生网络安全防线合同 9页

二零二五年度室内外一体化装修合同书及景观清.. 9页

二零二五年度外贸服装品牌授权许可合同 8页

二零二五年度城市综合体停车位租赁及商业物业.. 8页

二零二五年度地下室租赁合同(含租赁物维护保.. 9页

二零二五年度团购白酒行业专家顾问协议 9页

二零二五年度医疗机构临床研究协调员合作评估.. 9页

二零二五年度加油站员工劳动合同(安全责任强.. 7页

光电传感器的应用 40页

二零二五年度农村别墅主体施工安全监理合同 8页

二零二五年度农家乐房屋租赁与生态旅游服务合.. 9页

二零二五年度农业节水灌溉劳务用工合同模板 9页

二零二五年度军民合作农村电商发展合同 8页

二零二五年度养猪产业养殖保险合作协议合同书.. 8页

二零二五年度公寓出租租赁合同法律援助服务合.. 9页

二零二五年度公司员工离职补偿协议合同 7页

二零二五年度全新三轮摩托车品牌转让协议书 8页

二零二五年度健身培训学校品牌授权及加盟合同.. 9页

二零二五年度健康产业联营合作协议 9页

二零二五年度俩人共同投资环保新能源发电项目.. 8页

二零二五年度住宿场所安全文化建设合作协议 8页

理发工位租赁条款 9页

雷雨剧本全文雷雨剧本雷雨 191页

北京市朝阳区六年级下册期末语文试卷及答案 18页