Author Francois MAROT ( Francois d.o.t Marot a/t/ gmail.com ) - http://fraaargh.wordpress.com/

PDF2Word V1.0 released 2007-11-24

-------------------------------------------
---------------- PDF 2 Word ---------------
-------------------------------------------

Convert a PDF file into a printable Word document

--------- WHAT --------
This method (composed of a Word doc, a .bat file & this readme) enable you to create a word file from a pdf file.
The pdf file is first extracted to images (thanks to ImageMagik & Ghostscript). Then a Word macro can import at once all the mages into the .doc file.

This is usefull for exemple if your girlfriend has published an article in a magazine and would like to include it into its own thesis report, and she has only the pdf file. This was my case. Another utility would be to be able to print pdf file protected against printing... No, I didn't tell you anything !

------- REQUIREMENTS -------

- Works on Windows computers, tested with Word 2003.
You need to install the 2 following programms to extract the images:
- Ghostscript (tested with gs854w32.exe) - http://sourceforge.net/project/showfiles.php?group_id=1897
- ImageMagick (tested with ImageMagick-6.3.5-10-Q16-windows-dll.exe) - www.imagemagick.org


------ HOW TO Convert the PDF file to Word file ----

1/ Make sure you have ExtractImages.bat & AddImages.doc files

2/ Run ExtractImages.bat

- enter the name of the pdf file if in the same directory, or enter the full path to this file BUT do not enter the '.pdf' extension.

- enter the number of pages (number of pages -1 to be exact, so at worst you'll have more pictures than expected)

3/ Open AddImages.doc

- in menu Tool->Macro->Macros... choose the "AddImages" macro and execute it (click on "run")

- in the message box enter the FULL PATH & file name of the images, but without the trailing number and .jpeg extension.

4/ Click "OK". That's it, Word will automatically import all the images.


----- CUSTOMIZATION -----

You can modify the word macro to automatically resize the images, or the layout in order to suit your needs.


----- LAST REMARK -----

I would be glad if anybody could provide an OpenOffice script as I didn't took the time to do it myself.



-------------------------------------------

--------- INSTRUCTION EN FRANCAIS ---------

-------------------------------------------

PDF2Word PDF2Doc. Comment transformer un fichier pdf en fichier .doc ?


1/ Installer les 2 programmes suivant en commencant par ghostscript.

- gs854w32.exe
- ImageMagick-6.3.5-10-Q16-windows-dll.exe


2/ Pour extraire les images d'un PDF, mettre le pdf dans le meme repertoire que le fichier ExtactionImages.bat

Puis faire clic droit-> "Modifier" sur le .bat et vérifier que le nombre de pages max est bien superieur a celui du pdf.
Ensuite, entrer le bon nom du fichier pdf, et le nom désiré pour les fichiers images qui seront créées.


3/ Sauvegarder le .bat, fermer la fenetre et double cliquer sur le .bat

La creation des images peut durer un petit moment


4/Ouvrir dans word le fichier "InsererSuiteImages.doc"

Aller dans outils->macro->macros... Choisir la macro "AddImages" et cliquer sur "éxécuter"
Entrer dans la boite le CHEMIN EXACT de la base du nom du fichier pdf (c'est a dire sans le numéro ni l'extension .jpg).

Cliquer sur OK

Toutes les images devraient etres importées dans word. Plus qu'a copier coller dans un autre doc !