Как преобразовать «html-код» в .doc или .rtf или другой формат офисного файла в php для unix os?convert html to ms_word format
0
A
ответ
1
Существует PEAR library to read/write OpenDocument Format, который также поддерживается MS-Office 2007 (или MS-Office 2000/2003 через плагины). И here is an RTF library для PHP. Я не знаю никаких библиотек, которые могут напрямую писать файлы .doc, но это, вероятно, потому, что файлы .doc очень сложны для записи.
Вы также можете написать ODF или OOXML вручную. В конце концов, это всего лишь zip-файл с кучей XML-файлов. PHP имеет отличную поддержку для управления zip-файлами. Я не читал спецификацию OOXML, но это не так сложно создать простой файл ODF вручную.
Смежные вопросы
- 1. Convert AsymmetricKeyParameter to der format key
- 2. Convert geo: 0,0? Q = format to GeoPoint
- 3. parse/convert cookie to JSON format
- 4. CONVERT decimal DAYS to TIME format
- 5. convert RFC3999 date to R DateTime format
- 6. Convert NSDate in12 Hour Format To 24 Hour Format
- 7. convert Html to Cshtml
- 8. asp.net to html convert
- 9. Convert html to aspx
- 10. convert html to javascript
- 11. Convert Markdown To HTML Symbols
- 12. Convert .html file to image
- 13. Convert html view to image
- 14. QtWidget Convert HTML to PDF
- 15. Convert NodeList BACK to HTML
- 16. Convert web html to e-mail Html
- 17. python convert string time to sql datetime format
- 18. jQuery UI DatePicker date convert to RFC 3339 format
- 19. Convert mysql timestamp's time to am/pm format
- 20. Convert WriteableBitmap pixel format to Bgra32 in C# wpf
- 21. Convert String "20130310" ex. to Date Format в Android
- 22. libreoffice --convert-to xls пишет OpenDocument format вместо
- 23. Convert String to date format with содержит символы month
- 24. python convert from unkown format
- 25. C Convert to Farhenheit Convert to Celsius
- 26. Render string to HTML format - YUI
- 27. Convert range to image
- 28. php convert irc colors to html
- 29. Qt convert QTextEdit HTML to QByteArray
- 30. convert class.phpmailer.php html email to class.smtp.php
Dupe: http://stackoverflow.com/questions/688524/html-to-word-in-php-problem-in-open-office-output –