doc

javadoc生成API文档

霸气de小男生 提交于 2019-12-22 17:19:32
生成命令 E:\workspace\springbootdemo>javadoc -d E:\workspace\springbootdemo\doc -encoding utf-8 -sourcepath src\main\java -subpackages com 参数选项 参数 解释 -d 用来指定生成doc存放的目录 -encoding 用来指定使用什么编码格式进行编码(一般需要指定使用utf-8,不指定就使用默认系统默认编码) -sourcepath 指定需要执行doc文档的目录 -subpackages 指定需要递归循环的包名 常见错误 src\main\java\com\example\demo\entity\DemoData.java:15: 错误: 编码GBK的不可映射字符 出现这个错误就是因为上面没有指定 -encoding utf-8 参数,javadoc使用了默认的系统gbk编码了。 其他参数 javadoc的options选项还挺多的… 来源: CSDN 作者: madman1990 链接: https://blog.csdn.net/u010316188/article/details/103652714

PDF转成txt

大兔子大兔子 提交于 2019-12-22 12:25:33
#Author:Alex.Zhang import pyocr import importlib import sys import time importlib.reload( sys ) time1 = time.time() # print("初始时间为:",time1) import os.path from pdfminer.pdfparser import PDFParser , PDFDocument from pdfminer.pdfinterp import PDFResourceManager , PDFPageInterpreter from pdfminer.converter import PDFPageAggregator from pdfminer.layout import LTTextBoxHorizontal , LAParams from pdfminer.pdfinterp import PDFTextExtractionNotAllowed text_path = r'parameters in cryo-EM.pdf' # text_path = r'photo-words.pdf' def parse(): '''解析PDF文本,并保存到TXT文件中''' fp = open( text_path , 'rb' ) #

Convert PDF to .docx with Python

£可爱£侵袭症+ 提交于 2019-12-22 11:19:18
问题 I'm trying very hard to find the way to c onvert a PDF file to a .docx file with Python . I have seen other posts related with this, but none of them seem to work correctly in my case. I'm using specifically import os import subprocess for top, dirs, files in os.walk('/my/pdf/folder'): for filename in files: if filename.endswith('.pdf'): abspath = os.path.join(top, filename) subprocess.call('lowriter --invisible --convert-to doc "{}"' .format(abspath), shell=True) This gives me Output[1], but

PDF or Word creation documents with Yii?

大城市里の小女人 提交于 2019-12-22 10:36:57
问题 Hello I'm building an application with Yii that will now generate reports. My client wants to edit the reports after these are generated. I think the best option is creating a Word document so my client will be able to edit it, but I can't find information or extensions to create Word documents with Yii Framework. I've also seen but not test yet a couple of PDF extensions such as DOMPDF, tcpdf and Zend_PDF. But if I generate a PDF report, then, how is my client going to edit this file? Guys I

about python __doc__ docstring

為{幸葍}努か 提交于 2019-12-22 08:34:26
问题 i want to show docstring of my function, but if i use like this @cost_time def func(): "define ...." blabla print func.__doc__ it will not show the docstring,just because i use some meta programming tricky, how can fix this? 回答1: Your wrapped function returned from the cost_time decorator must have the docstring instead of func . Therefore, use functools.wraps which correctly sets __name__ and __doc__ : from functools import wraps def cost_time(fn): @wraps(fn) def wrapper(): return fn()

Revit二次开发之梁随板

扶醉桌前 提交于 2019-12-22 03:23:49
Revit二次开发之梁随板 这个demo实现了梁随斜板的功能: using System ; using System . Collections . Generic ; using System . Linq ; using System . Text ; using System . Threading . Tasks ; using Autodesk . Revit . DB ; using Autodesk . Revit . UI . Selection ; using Autodesk . Revit . UI ; using Autodesk . Revit . Attributes ; namespace 梁随板 { [ Autodesk . Revit . Attributes . Transaction ( TransactionMode . Manual ) ] [ Autodesk . Revit . Attributes . Regeneration ( RegenerationOption . Manual ) ] [ Autodesk . Revit . Attributes . Journaling ( JournalingMode . UsingCommandData ) ] public class Command :

XmlDocument类

走远了吗. 提交于 2019-12-22 02:13:22
  XmlDocument类是.NET框架的DOC解析器。XmlDocument将XML视为树状结构,它装载XML文档,并在内存中构建该文档的树状结构。下面来看下XmlDocument提供了哪些功能。   一、属性: Attributes      获取一个 XmlAttributeCollection,它包含该节点的属性。 (继承自 XmlNode。) BaseURI        获取当前节点的基 URI。 (重写 XmlNode..::.BaseURI。) ChildNodes      获取节点的所有子节点。 (继承自 XmlNode。) DocumentElement   获取文档的根 XmlElement。 DocumentType    获取包含 DOCTYPE 声明的节点。 FirstChild       获取节点的第一个子级。 (继承自 XmlNode。) HasChildNodes     获取一个值,该值指示节点是否有任何子节点。 (继承自 XmlNode。) Implementation    获取当前文档的 XmlImplementation 对象。 InnerText       获取或设置节点及其所有子节点的串联值。 (继承自 XmlNode。) InnerXml       获取或设置表示当前节点子级的标记。 (重写 XmlNode..::

How can i convert html to word docx in python?

岁酱吖の 提交于 2019-12-21 22:31:16
问题 import pypandoc output = pypandoc.convert_file('file.html', 'docx', outputfile="file1.docx") assert output == "" It is generating new docx file but ignoring styles. Can any one tell me how to generate new docx file with styles? Thanks in advance for your answers. 回答1: In Windows the easiest way will be to use MS Word using pywin32 plugin. Here is good answer with example code. Using pypandoc: output = pypandoc.convert(source='/path/to/file.html', format='html', to='docx', outputfile='/path/to

Read Microsoft Word Documents into Plain Text (DOC, DOCX) in Java

故事扮演 提交于 2019-12-21 16:46:52
问题 I'm looking for something in Java to read in Word documents to process their text.. all I need is there text, nothing fancy. I know about Apache POI, however it doesn't include support for DOCX right now, anything out there? 回答1: If you don't require formatting information, images and all other fancy stuff, then the job is lot easier. Just some 5 to 10 lines of code will do. Treat DOCX as a zip file. It consists a bunch of files which includes 'document.xml'. Use ZipInputStream and extract

Is it possibile get thumbail image from .doc or .xls document?

﹥>﹥吖頭↗ 提交于 2019-12-21 06:17:32
问题 I'm looking for create an image thumbnail from a MS doc/xls document's page, but I found nothing about it. For pdf documents I used Quarz framework, but I can't in this case. Some help? 回答1: A web view can be used for making a MS doc preview. I've tried once to do that with this piece of code. It works ... but ... the web view need to work in graphical thread, so when this operation is running your interface is slower. Maybe can you optimized that. Header @interface