• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Comment intégrer un doc pdf dans un fichier ?

Contributor ,
Jan 21, 2019 Jan 21, 2019

Copy link to clipboard

Copied

Bonjour,

D'après un document PDF, comment le découper en plusieurs enregistrements :

1 - titre du chapitre

2 - texte du chapitre

et cela à partir d'un numéro de page.

Merci pour votre aide

Views

3.4K

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

correct answers 1 Correct answer

LEGEND , Apr 16, 2019 Apr 16, 2019

bien l'intention de profiter de la situation pour 


18 <---- N° de page

mettre complètement à nu deux ou trois candidats qu'il présenterait à son commanditaire, ce n'était justement pas lui qui aurait le

Votes

Translate

Translate
LEGEND ,
Dec 17, 2019 Dec 17, 2019

Copy link to clipboard

Copied

I am sorry, ZNB.  I am not sure how to proceed from here.  If you provide some error message, maybe I can help.

 

V/r,

 

^ _ ^

Votes

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
Contributor ,
Jan 15, 2020 Jan 15, 2020

Copy link to clipboard

Copied

 

1ERE PART
<CFIF Mode IS "Update">
	<CFOUTPUT>
	<cfset Auteur="Jean-Marc IRLES"> 
	<cfset Titre="Le dernier secret de Julie Finet">
	<cfset Destination="#db_dir#\SoLivres\_Ebooks\SoLivres\#Auteur#\#Titre#">
	<CFFILE 
			Action="UPLOAD" 
			Filefield="FichWord" 
			Destination="#Destination#"
			Nameconflict="Overwrite" 
			Accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document"> 
	</CFOUTPUT>
	<CFOUTPUT>File : "#Destination#/#Titre#.docx"</CFOUTPUT>


	<CFFILE 
			Action="Read" 
			File="#Destination#/#Titre#.docx" 
			Variable="Fich">

<CFOUTPUT><cfcontent type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" file="#Destination#/#Titre#.docx"></CFOUTPUT> 

<cfsilent>
 	<cfscript>
        a = "Fich";
		console.log(a);
        chapterArray = REmatchNoCase("[\t\n\r]+\d{1,3}\s+-\s+[^\t\n\r]+[\t\n\r]{1}",variables.a);
        titleAndText = arrayNew(1);
        indexList = ""; start = 1; 
        for(i = 1; variables.i lte arrayLen(variables.chapterArray); i++){
			ndx = findNoCase (variables.chapterArray[i], variables.a, variables.start);
            start = variables.ndx + 1;
            indexList = listAppend(variables.indexList,variables.ndx);
            } 
        count = 0;
        for(i = 1; variables.i lte listLen(variables.indexList); i++){
            start = listGetAt(variables.indexList,variables.i);
            if(variables.i lt listLen(variables.indexList)){
                count = listGetAt(variables.indexList,variables.i+1)-variables.start;
                }
            else{
                count = len(variables.a);
                }
            titleAndText[variables.i]['title'] = trim(chapterArray[variables.i]);
            titleAndText[variables.i]['text'] = REreplace(trim(replace(mid(variables.a,variables.start,variables.count),variables.chapterArray[i],'','all')),'[\t|\r|\n]','<br />','all');
            }
    </cfscript>
</cfsilent>

 2EME PART
	<cfdump var="#variables.chapterArray#" />
	<cfoutput>#variables.indexList#</cfoutput><cfdump var="#variables.titleAndText#" /><br /><br />
	<cfoutput>
		<cfloop index="idx" from="1" to="#arrayLen(variables.titleAndText)#">
			<cfset part1=#variables.titleAndText[variables.idx]['title']#>
			<cfset num=#find("-", "#part1#")#>
			<cfset rest=#len(part1)# -(#num#+1)>
			<cfset part2=#right(#part1#, #rest#)#>
			<cfset chr=part2>
			<CFINCLUDE template="../inc_parser.cfm">
			<cfset part2=chr> 
			<div>Titre : #part2# </div>
			<cfset Text=#variables.titleAndText[variables.idx]['text']#>
			<cfset chr=text>
			<CFINCLUDE template="../inc_parser.cfm">
			<cfset text=chr>
			<div>Texte : #Text#</div><br><br>
			<div><hr noshade /></div> 
		</cfloop>
	</cfoutput>
		c'est fini !!
	</CFIF>
    </body>
</html>

 

Bonjour,

Le retour 😉

Le problème est simple ... à poser :

Je ne sais comment passer les infos de la partie 1 à la partie 2 (voir indications dans le code).

Merci pour votre aide

 

Hello,
 The return 😉
The problem is simple ... to ask:
I do not know how to pass the infos from part 1 to part 2 (see indications in the code).
Thanks for your help

Votes

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
Contributor ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

HELP HELP HELP

Votes

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
Contributor ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

Bonsoir,

Que se passe-t-il ?  Pas une seule réponse !

Pourtant c'est le nouvel an chinois et pas américain hihihi

SVP   de l'aide

Cordialement

 

Good evening,
What is going on ? Not a single answer!
Yet it's Chinese New Year and not American hihihi
Please help
cordially

 

Votes

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
Contributor ,
Jan 28, 2020 Jan 28, 2020

Copy link to clipboard

Copied

LATEST

Bonjour,

Que se passe-t-il ??

J'ai fait une gaffe ??

Plus de réponses !

Help

Cordialement

 

Hello,
What is going on ??
I made a mistake ??
No more answers!
Help
cordially

 

Votes

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
Resources
Documentation