Tuesday, January 17, 2017

Automatiser et Convertir de nombreux fichiers doc en docx (ou ODT pdf HTML) d'un seul coup en un seul lot (batch conversion).



Il est préférable de s'appuyer sur les outils word de microsoft en automatisant.
Les autres choix sont ici indiqués pour info.

Command line or Macro

here: mac

with the app automator and word business

If you have Office:Mac 2008 Business Edition or Office:Mac 2011 Home/Business Edition, Automator actions are included with those editions.
One of the Automator actions included with those versions of Office:Mac is
"Convert Format of Word Documents",
and one of the options in that Automator action is PDF.
This page has great information about Automator and Office:Mac.
http://www.agentjim.com/MVP/Automator/IntroToAutomator.html

Cette approche est intéressante si on veut aussi ajouter du texte ou du copier/coller, extraire les images, sauvegarder que le texte...

Command line tool 

Command line tool to convert DOC and DOCX files to PDF
http://apple.stackexchange.com/questions/80791/command-line-tool-to-convert-doc-and-docx-files-to-pdf

macro VBA interne à MS Office

Utiliser la batchmacro pour appliquer une macro à tous tes documents.
Le célèbre batchmacro correspond à

"Comment exécuter sur une série de fichiers une macro créée pour un seul fichier ?"

à télécharger à
http://faqword.com/index.php/word/faq-word/vba-solutions/688-comment-executer-sur-une-serie-de-fichiers-une-macro-creee-pour-un-seul-fichier

Enregistrer une macro avec un fichier .doc en le convertissant en .docx.

La macro n'écrasera pas l'ancien fichier doc.

AppleScript

Word peut ouvrir de nombreux fichiers d'un dossier (classer par type rend la chose plus facile). Hélas il ne sauvegarde pas tous les fichiers ouverts...
puis
vous activez ce script applescript suivant.
Il faut juste le mettre dans automator en choisissant processus et applescript.
Tous les fichiers ouverts dans word sont sauvegardés:
"xx.doc" est transformé en "xx.doc.docx"

---

How about a script? 
Paste this one in AppleScript Editor and run it. It will Save As all open files into the .docx. format and add that as an extension. The resulting files are placed next to the original. Try it first with just a few files, then on increasing numbers while Word does not choke.

You can do a Finder's search for names containing .doc, open those files right there from the results window and then run the script. Finally, repeat the find operation in the Finder, Command-Click on the files you no longer need (duplicates), then trash them.


--------------APPLESCRIPT TO PASTE FOLLOWS--------------------

tell application "Microsoft Word"
   repeat with i from 1 to the count of (documents)
      save as the front document file name path of the front document & ".docx" file format format document
      close front document saving no
   end repeat
end tell

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_mac/how-can-i-batch-convert-doc-to-docx-for-my-msword/d6f8a3ac-7641-403a-984c-6f89722dbc28

macro applescript
If you have Home/Student Edition instead of Business Edition, or don't have Office at all, you can accomplish it via AppleScript. Mac OS X Hints has an article about bulk converting text files to PDF via AppleScript, and the comments to that article give some options to convert DOC/DOCX to PDF via RTF. That might result in a loss of formatting or linking if you've got very complex DOC/DOCX files, but might be sufficient for files that aren't terribly complex.
http://hints.macworld.com/article.php?story=20110605113316760

Par un outil gratuit de microsoft

Microsoft has a bulk conversion utility that can convert multiple DOC files to DOCX files.
 This utility has been around for a while, but a fair number of people don’t know of its existence.  Because it’s a powerful tool designed to convert all files on a server (or even a bunch of servers), its use is a little cryptic.  This is fine for IT professionals, but if all you want to do is bulk convert a single directory of DOC files, this post shows what you need to do.

  1. Before you can use this tool, you need to install the Microsoft Office Compatibility Pack.  While the compatibility pack is primarily used with Office 2003 to allow it to load and save Open XML files, in essence, the compatibility pack is comprised of file format converters, which the Office File Converter (OFC) uses.  To use OFC, you need to install the compatibility pack even if you only have Office 2007 installed.  Download the compatibility pack.
  2. Next, you need to download and install the Microsoft Office Migration Planning Manager (OMPM).  This contains a bunch of stuff, but for bulk file conversion, we are primarily interested in just one tool, OFC.EXE.  Download the Microsoft Office Migration Planning Manager.

When installing, as usual, you will select the installation directory.  OFC.EXE is in the Tools directory under the installation directory.  In addition, in that directory, there is a sample OFC.INI file.  To run OFC.EXE, you need to create an OFC.INI, and place it in the directory where you run OFC.EXE from.
https://www.microsoft.com/en-us/download/converting-files.aspx
https://blogs.msdn.microsoft.com/ericwhite/2008/09/18/bulk-convert-doc-to-docx/

Ouvrez, modifiez et enregistrez des documents, classeurs et présentations dans les nouveaux formats de fichier Open XML de Microsoft Office Word, Excel et PowerPoint,

télécharger le Pack de compatibilité Microsoft Office pour les formats de fichier Word, Excel et PowerPoint:
https://www.microsoft.com/fr-FR/download/details.aspx?id=3
Que windows.

---
l’objectif n’est pas de repasser sur ses 200 documents Office disséminés dans son arborescence, mais bien de faire le minimum d’opérations pour tous les convertir au format Office 2007.

J’ai trouvé la solution sur le site de Microsoft. Il s’agit de Microsoft Office Migration Manager, une petite suite d’outils très basiques contenant un outil de conversion des documents Office en ligne de commande nommé OFC.
https://www.microsoft.com/en-us/download/details.aspx?id=11454

Avant de continuer je précise que la suite Office 2007 doit être installée sur votre machine pour que vous puissiez exploiter les fichiers convertit.

http://syskb.com/convertir-en-masse-des-documents-office-2003-vers-office-2007/

avec des outils developers

https://msdn.microsoft.com/fr-fr/library/office/gg188063.aspx

par une version gratuite

doc to docx converter (here for mac):
http://download.cnet.com/s/doc-to-docx-converter/mac-free/

Doxillion Free for Mac

bof
logiciel gratuit pour un usage non commercial.
http://www.nchsoftware.com/documentconvert/
While many file converters have a clunky feel, Doxillion Free Mac Document Converter for Mac provides an easy-to-follow user interface that allows you to complete document conversions quickly. The application easily converts file types such as DOC, DOCX, ODT, and PDF to other file formats. However, the files tend to have spacing and alignment issues once converted.
From NCH Software: Doxillion is a free PDF converter to convert docx, doc, rtf, html, xml, wpd, odt, txt and other text file formats. Convert a single file or batch convert several PDFs at a time. Easily add Doxillion to your right click menu to add fast and simple conversion functionality to all supported formats

par un shareware payant

BatchOutput Office Suite

Automate printing and PDF production from
Microsoft Word, Excel and PowerPoint

Batch Docx Converter

You pay 20$
The license key will be available to you right after the purchase. This key activates the demo version.
Convert Docx <-> Doc Files
Software to convert multiple docx/doc files in seconds!

Batch Docx Converter is a desktop program that will quickly convert multiple Microsoft Office docx to doc, or doc to docx file formats on the Mac or Windows in literally seconds. The software allows you to convert those pesky .docx files into .doc format (or vice versa) without any loss of styling or formating- securely on your desktop.

Top Benefits of Batch Docx Converter:
  • Convert an unlimited number of docx/doc files
    Works both ways: docx -> doc or doc -> docx
  • No technical programming to mess with
    Batch convert your files without any loss of styling and formating.
  • Document conversion in 3 simple steps…
    Drop your files into the application's window, and hit convert - that's it!
My .docx files have complex graphics in them, will the formatting/styling and graphics remain intact after I convert them to .doc files?
Yes, using the software to convert docx to doc or doc to docx will not affect the styling or the format after conversion.



autres softs


par du web services


---

many docx and other files to pdf


NW Docx Converter

Open source

mammoth

Convert Word documents (.docx files) to HTML

DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manner. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed.

DocX is also available on GitHub.
https://github.com/WordDocX/DocX
DocX is available on both Codeplex and Github.
https://www.codeplex.com/
CodePlex is Microsoft's free open source project hosting site.
https://www.codeplex.com/site/search?query=docx&ac=2

DOCX2TEX: WORD 2007 TO TEX
Docx2tex is a small command line tool that uses standard technologies to help users of Word 2007 to publish publications where typography is relevant or only papers produced by TeX are accepted. Behind the scenes, docx2tex uses common technologies to interpret Word 2007 OOXML

des outils de libreOffice

Pour transformer les fichiers word en ODT
Sous-répertoires compris
Indique que la recherche des fichiers applicables s'effectue également dans les sous-répertoires du répertoire sélectionné.
https://help.libreoffice.org/Common/Document_Converter/fr
https://www.libreoffice.org/download/libreoffice-fresh/
---

5 comments:

  1. Very nice blog, Thanks for sharing such great information. hope you keep sharing such kind of information doc to rtf

    ReplyDelete
  2. Thanks for sharing such great information.This article is very helpful and interesting doc to rtf

    ReplyDelete
  3. its my Pleasure to read your article are very excellent thanks to give good information rtf to word converter

    ReplyDelete
  4. Great!! A useful post on DOCX - RTF Converter. Lots of efforts need to found this type of post. appreciate your word.

    ReplyDelete
  5. You've probably heard of the saying, "Work smarter, not harder." Well, in the world of email marketing, that statement couldn't be more true. With the right tools, you can automate and convert hundreds of files into different formats with just a few clicks. In this post, we'll show you how to do just that.

    ReplyDelete