document

Converting HTML to odt, doc, docx

丶灬走出姿态 提交于 2019-12-04 19:17:21
问题 Is there an easy way to convert HTML(with CSS styles and embedded images) to ODT, DOCX, DOC from the command line on linux server. I searched a lot but have not found a good option. There was a problem the same way to convert to PDF, decided by wkhtmltopdf. Perhaps there are ways to convert the resulting PDF documents to other formats? 回答1: To convert to odt it's pretty easy after installing pandoc. After the relatively hard part: from odt (or even html ) you can script (Open|Libre)Office via

How to Create a Document-Based OS X App that Launches with “Open…” Dialog

给你一囗甜甜゛ 提交于 2019-12-04 15:54:46
I am used to developing non-document-based applications with a single window, but now I am working on a document based application that I created using the document-based template in Xcode 5. When I run my application, it opens a new untitled document upon launch. Instead of automatically creating a new document, I would like my application to display an "Open..." dialog much like Xcode, TextEdit, and other Apple apps do. How do I go about implementing this? Is there a flag somewhere that I can set to show the dialog instead of a new document, or do I have to create an application delegate

Patterns for Schema Changes in Document Databases

纵然是瞬间 提交于 2019-12-04 13:00:38
问题 before I start I'd like to apologize for the rather generic type of my questions - I am sure a whole book could be written on that particular topic. Lets assume you have a big document database with multiple document schemas and millions of documents for each of these schemas. During the life time of the application the need arises to change the schema (and content) of the already stored documents frequently. Such changes could be adding new fields recalculating field values (split Gross into

iOS Open Document with External App from UIWebVIew

无人久伴 提交于 2019-12-04 13:00:06
I have a UIWebView . When a link which contains a document is clicked, I want to open that document in a external app (office, openoffice, etc) but not inside the UIWebView . I know how to do it for emails: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([[[request URL] scheme] isEqual:@"mailto"]) { [[UIApplication sharedApplication] openURL:[request URL]]; return NO; } return YES; } Is there any way to do this but for documents? Thanks! EDIT: That's what I have done: - (BOOL)webView:(UIWebView

How to get `thumbnails document` like google doc?

≡放荡痞女 提交于 2019-12-04 12:56:08
How to get thumbs document (doc, docx, pdf, pptx, ppt,.....)? May be use C#, php, ..... Please help me! Thanks you very much! Baba This has been asked before ... please see Live Thumbnails/Large Image for some examples It only capture web sites but its the same for every other document types .... all you need to do is convert (doc, docx, pptx, ppt,.....) to pdf or HTML or image ... PDF is easier to work with but some online tools can also convert doc to image directly .. When you have it pdf you can easy convert it to jpg then create a thumbnails form jpg See more tools you can use See http:/

Understanding the different type of SOLR commits

江枫思渺然 提交于 2019-12-04 11:46:36
I want to clarify my understanding about different type of Solr commits. Please correct me if I am wrong. commits : all type of commits including SOFT and HARD commits. autoCommit : does a HARD commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other pending documents. autoSoftCommit - does a SOFT commit . After a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost. autocommit maxTime : Maximum time between two autocommits execution (in my case it is set as 15000s ) soft autocommit maxTime :Maximum

How can I count words in complex documents (.rtf, .doc, .odt, etc)?

限于喜欢 提交于 2019-12-04 09:27:59
I'm trying to write a Python function that, given the path to a document file, returns the number of words in that document. This is fairly easy to do with .txt files, and there are tools that allow me to hack support for a few more complex document formats together, but I want a really comprehensive solution. Looking at OpenOffice.org's py-uno scripting interface and list of supported formats, it would seem ideal to load the documents in a headless OOo and call its word-count function. However, I can't find any py-uno tutorials or sample code that go beyond basic document generation, and even

Document Types vs. Exported and Imported UTIs

[亡魂溺海] 提交于 2019-12-04 07:34:16
问题 Can anyone explain to me the difference between Document Types, Exported UTIs and Imported UTIs in Xcode 5.1? I want to be able to have my app automatically detect file type based on file extension. Which of these three would I need to implement in order to do that? 回答1: You add a Document Type to register that your app can open that Document Type, this is simple when you select a known file type, but if the file type is not known, you must also define it in Imported UTIs . And if you are the

Limiting Length of Input in JTextField is not working

徘徊边缘 提交于 2019-12-04 06:57:16
I am trying to limit the max length of character a user can input in a textfield but It seems to be not working. Here is the code: text2 = new JTextField("Enter text here",8); Is there anything I am doing wrong? How can I make the limit to work properly? Reimeus The constructor new JTextField("Enter text here",8); sets the number of visible columns to 8 but doesn't restrict you from entering more. You could use a DocumentFilter to restrict the input length. You current code is not setting the maximum length, rather it is defining the number of visible columns. To restrict the maximum length of

character encoding of a framed document was not declared

萝らか妹 提交于 2019-12-04 06:28:50
I get this warning in FF when developing a site of mine. I can't find any real info about it and how to fix this. the character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. ...e)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.... jquery....min.js (line 4) You need to put <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> In the head of the iframe or whatever charset encoding you are using. 来源: https://stackoverflow.com/questions/13491641/character-encoding-of-a-framed