Découpage d'un fichier word en plusieurs fichiers

Participant ,
Jun 10, 2021 Jun 10, 2021

Copy link to clipboard

Copied

Bonjour,

Ayant un fichier word d'un livre, je voudrais le découper automatiquement par chapitre.

Le problème est que je ne sais pas par où commencer 😞

Est-il plus facile de la transformer avant en pdf ?

Merci pour vos idées.

Cordialement

 

Hello,

Having a word file of a book, I would like to automatically split it by chapter.

Problem is, I don't know where to start 😞

Is it easier to convert it to pdf before?

Thank you for your ideas.

cordially

TOPICS
Advanced techniques, Documentation

Views

68

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 13, 2021 Jun 13, 2021

Copy link to clipboard

Copied

Indeed. If you convert it to PDF beforehand, it will be easy to split it by chapter using ColdFusion's cfpdf.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

Bonjour,

Merci pour la réponse.

Mais quelle est l'option de CFPDF à employer pour faire cela ? (CFPDF fait tellement de choses !)

Cordialement et merci par avance.

 

Hello,

Thank you for the answer.

But what is the CFPDF option to use to do this? (CFPDF does so many things!)

Sincerely, and thank you in advance.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

LATEST

You could use action="deletepages". 🙂

In the following example, I extracted the individual chapters from Guy Kawasaki's ebook. 

<!--- Determine the chapter start and end. Preferably manually, for accuracy. --->
<cfset chapterStartPage=[15, 43, 81, 102, 119, 159, 193, 212, 239, 270, 285, 298, 318]>
<cfset chapterEndPage=[41, 80, 101, 118, 158, 191, 211, 238, 269, 284, 297, 316, 365]>

<cfset sourcePDF="C:\Users\bkbk\Desktop\kawasaki\The Art of the Start 2.0 - Guy Kawasaki.pdf">
<cfset chapterDestination="C:\Users\bkbk\Desktop\kawasaki\chapters">

<cfloop from="1" to="#arrayLen(chapterStartPage)#" index="i">
    
    <!--- 
    For example, chapter 3 corresponds to the third item in the above arrays: 
    chapterStartPage[3]=81, chapterEndPage[3]=101. 
    To extract chapter 3, delete all pages between 1 and 80 and 
    between 102 and the end of the book.  
    --->
 	<cfset pagesToBeDeleted="1-#chapterStartPage[i]-1#,#chapterEndPage[i]+1#-*">
 	
	<cfpdf
    action = "deletepages"
    pages = "#pagesToBeDeleted#"
    source = "#sourcePDF#"
    overwrite = "yes"
    destination = "#chapterDestination#\chapter #i#.pdf">
</cfloop>

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines