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

CFPDF

Contributor ,
May 22, 2019 May 22, 2019

Copy link to clipboard

Copied

Bonjour,

Je voudrais prendre un pdf d'un livre pour l'insérer dans un fichier mais je voudrais aussi la mise en page basique.

Voici mon code :

<cfpdf action = "extracttext" source = "chemin" name = "myXML"/> <cfcontent type = "text/html" />

<cfoutput> #myXML# </cfoutput>

J'arrive à récupérer le texte mais sans la mise en page !

Merci par avance pour votre aide.

Views

2.5K

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
LEGEND ,
May 22, 2019 May 22, 2019

Copy link to clipboard

Copied

Bonjour,

Compte tenu de la façon dont un PDF est formaté, je ne suis pas sûr que ce que vous voulez soit possible. Mais je n'ai pas beaucoup d'expérience avec CFPDF. Les PDF ne sont pas formatés comme une page HTML. Je pense que le formatage PDF ne fonctionne que dans les documents PDF et les plug-ins de navigateur PDF (s'il en reste).

Considering how a PDF is formatted, I'm not sure that what you want is possible.  But I'm not very experienced with CFPDF.  PDFs are not formatted the way an HTML page is formatted.  I believe the PDF formatting only works in PDF documents and PDF browser plugins (if there are any remaining.)

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 ,
May 23, 2019 May 23, 2019

Copy link to clipboard

Copied

Bonjour,

Merci pour votre réponse

J'ai essayé de rajouter useStructure="true" honourspaces="true" mais sans résultat.

J'ai essayé aussi action:"import". Je n'ai pas trouvé beaucoup de documents mais je crois que c'est réservé pour importer le contenu des champs interactifs.

Si vous ne savez pas, 😞

Où m'adresser ?

Cordialement

Hello,

thank you for your reply

I tried to add useStructure = "true" honourspaces = "true" but without result.

I tried also action: "import". I did not find many documents but I think it's reserved to import the contents of the interactive fields.

If you do not know, 😞

Where to go?

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
LEGEND ,
May 23, 2019 May 23, 2019

Copy link to clipboard

Copied

Selon la page d’aide de CFPDF, "extracttext" ne saisira que le texte d’un document PDF, rien d’autre.

'read' prendra le contenu d'un PDF et vous pourrez l'enregistrer dans une variable. Mais je ne suis pas sûr que ça va garder le formatage. Je ne sais pas non plus si cela vous permettra de spécifier des pages.

According to the CFPDF help page, 'extracttext' will grab only the text of a PDF document, nothing else.

'read' will take the content of a PDF and you can save it into a variable.  But I'm not sure if it will keep the formatting.  Nor do I know if it will allow you to specify pages.

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 ,
May 24, 2019 May 24, 2019

Copy link to clipboard

Copied

Merci pour votre réponse.

J'ai essayé avec read :

<cfpdf action="read" source="chemin" name="PDFInfo">

<cfoutput> #PDFInfo# </cfoutput>

Pour toute réponse, j'ai cela :

coldfusion.pdf.PDFDocWrapper@70f86573

Et je sais quoi en faire 😉

Thank you for your reply.

I tried with read:

<cfpdf action = "read" source = "path" name = "PDFInfo">

<cfoutput> # PDFInfo # </ cfoutput>

For any answer, I have this:

coldfusion.pdf.PDFDocWrapper@70f86573

And I know what to do with it 😉

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
Advocate ,
May 24, 2019 May 24, 2019

Copy link to clipboard

Copied

PDFInfo is an object. If you want to see its properties, don't output it that way, use <cfdump var="#PDFInfo#">

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 ,
May 24, 2019 May 24, 2019

Copy link to clipboard

Copied

Merci de votre réponse. - Thank you for your reply.

Voici le résultat - Here is the result

PDFDocument
ApplicationMicrosoft® Word pour Office 365 
Author***** 
CenterWindowOnScreenno 
ChangingDocumentAllowed 
CommentingAllowed 
ContentExtractionAllowed 
CopyContentAllowed 
CreatedD:20190415140334+02'00' 
DocumentAssemblyAllowed 
EncryptionNo Security 
FilePath[empty string] 
FillingFormAllowed 
FitToWindowno 
HideMenubarno 
HideToolbarno 
HideWindowUIno 
KeywordsJEAN MOSTARAN 
Languagefr-FR 
ModifiedD:20190415140334+02'00' 
PageLayoutSinglePage 
PageRotations
PDFDocumentarray 
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
25 0
26 0
27 0
28 0
29 0
30 0
31 0
32 0
33 0
34 0
35 0
36 0
37 0
38 0
39 0
40 0
41 0
42 0
43 0
44 0
45 0
46 0
47 0
48 0
49 0
50 0
51 0
52 0
53 0
54 0
55 0
56 0
57 0
58 0
59 0
60 0
61 0
62 0
63 0
64 0
65 0
66 0
67 0
68 0
69 0
70 0
71 0
72 0
73 0
74 0
75 0
76 0
77 0
78 0
79 0
80 0
81 0
82 0
83 0
84 0
85 0
86 0
87 0
88 0
89 0
90 0
91 0
92 0
93 0
94 0
95 0
96 0
97 0
98 0
99 0
100 0
101 0
102 0
103 0
104 0
105 0
106 0
107 0
PageSizes
PDFDocumentarray 
1
PDFDocument - struct
height595.4 
width419.6 
2
PDFDocument - struct
height595.4 
width419.6 
3
PDFDocument - struct
height595.4 
width419.6 
4
PDFDocument - struct
height595.4 
width419.6 
5
PDFDocument - struct
height595.4 
width419.6 
6
PDFDocument - struct
height595.4 
width419.6 
7
PDFDocument - struct
height595.4 
width419.6 
8
PDFDocument - struct
height595.4 
width419.6 
9
PDFDocument - struct
height595.4 
width419.6 
10
PDFDocument - struct
height595.4 
width419.6 
11
PDFDocument - struct
height595.4 
width419.6 
12
PDFDocument - struct
height595.4 
width419.6 
13
PDFDocument - struct
height595.4 
width419.6 
14
PDFDocument - struct
height595.4 
width419.6 
15
PDFDocument - struct
height595.4 
width419.6 
16
PDFDocument - struct
height595.4 
width419.6 
17
PDFDocument - struct
height595.4 
width419.6 
18
PDFDocument - struct
height595.4 
width419.6 
19
PDFDocument - struct
height595.4 
width419.6 
20
PDFDocument - struct
height595.4 
width419.6 
21
PDFDocument - struct
height595.4 
width419.6 
22
PDFDocument - struct
height595.4 
width419.6 
23
PDFDocument - struct
height595.4 
width419.6 
24
PDFDocument - struct
height595.4 
width419.6 
25
PDFDocument - struct
height595.4 
width419.6 
26
PDFDocument - struct
height595.4 
width419.6 
27
PDFDocument - struct
height595.4 
width419.6 
28
PDFDocument - struct
height595.4 
width419.6 
29
PDFDocument - struct
height595.4 
width419.6 
30
PDFDocument - struct
height595.4 
width419.6 
31
PDFDocument - struct
height595.4 
width419.6 
32
PDFDocument - struct
height595.4 
width419.6 
33
PDFDocument - struct
height595.4 
width419.6 
34
PDFDocument - struct
height595.4 
width419.6 
35
PDFDocument - struct
height595.4 
width419.6 
36
PDFDocument - struct
height595.4 
width419.6 
37
PDFDocument - struct
height595.4 
width419.6 
38
PDFDocument - struct
height595.4 
width419.6 
39
PDFDocument - struct
height595.4 
width419.6 
40
PDFDocument - struct
height595.4 
width419.6 
41
PDFDocument - struct
height595.4 
width419.6 
42
PDFDocument - struct
height595.4
width419.6 
43
PDFDocument - struct
height595.4 
width419.6 
44
PDFDocument - struct
height595.4 
width419.6 
45
PDFDocument - struct
height595.4 
width419.6 
46
PDFDocument - struct
height595.4 
width419.6 
47
PDFDocument - struct
height595.4 
width419.6 
48
PDFDocument - struct
height595.4 
width419.6 
49
PDFDocument - struct
height595.4 
width419.6 
50
PDFDocument - struct
height595.4 
width419.6 
51
PDFDocument - struct
height595.4 
width419.6 
52
PDFDocument - struct
height595.4 
width419.6 
53
PDFDocument - struct
height595.4 
width419.6 
54
PDFDocument - struct
height595.4 
width419.6 
55
PDFDocument - struct
height595.4 
width419.6 
56
PDFDocument - struct
height595.4 
width419.6 
57
PDFDocument - struct
height595.4 
width419.6 
58
PDFDocument - struct
height595.4 
width419.6 
59
PDFDocument - struct
height595.4 
width419.6 
60
PDFDocument - struct
height595.4 
width419.6 
61
PDFDocument - struct
height595.4 
width419.6 
62
PDFDocument - struct
height595.4 
width419.6 
63
PDFDocument - struct
height595.4 
width419.6 
64
PDFDocument - struct
height595.4 
width419.6 
65
PDFDocument - struct
height595.4 
width419.6 
66
PDFDocument - struct
height595.4 
width419.6 
67
PDFDocument - struct
height595.4 
width419.6 
68
PDFDocument - struct
height595.4 
width419.6 
69
PDFDocument - struct
height595.4 
width419.6 
70
PDFDocument - struct
height595.4 
width419.6 
71
PDFDocument - struct
height595.4 
width419.6 
72
PDFDocument - struct
height595.4 
width419.6 
73
PDFDocument - struct
height595.4 
width419.6 
74
PDFDocument - struct
height595.4 
width419.6 
75
PDFDocument - struct
height595.4 
width419.6 
76
PDFDocument - struct
height595.4 
width419.6 
77
PDFDocument - struct
height595.4 
width419.6 
78
PDFDocument - struct
height595.4 
width419.6 
79
PDFDocument - struct
height595.4 
width419.6 
80
PDFDocument - struct
height595.4 
width419.6 
81
PDFDocument - struct
height595.4 
width419.6 
82
PDFDocument - struct
height595.4 
width419.6 
83
PDFDocument - struct
height595.4 
width419.6 
84
PDFDocument - struct
height595.4 
width419.6 
85
PDFDocument - struct
height595.4 
width419.6 
86
PDFDocument - struct
height595.4 
width419.6 
87
PDFDocument - struct
height595.4 
width419.6 
88
PDFDocument - struct
height595.4 
width419.6 
89
PDFDocument - struct
height595.4 
width419.6 
90
PDFDocument - struct
height595.4 
width419.6 
91
PDFDocument - struct
height595.4 
width419.6 
92
PDFDocument - struct
height595.4 
width419.6 
93
PDFDocument - struct
height595.4 
width419.6 
94
PDFDocument - struct
height595.4 
width419.6 
95
PDFDocument - struct
height595.4 
width419.6 
96
PDFDocument - struct
height595.4 
width419.6 
97
PDFDocument - struct
height595.4 
width419.6 
98
PDFDocument - struct
height595.4 
width419.6 
99
PDFDocument - struct
height595.4 
width419.6 
100
PDFDocument - struct
height595.4 
width419.6 
101
PDFDocument - struct
height595.4 
width419.6 
102
PDFDocument - struct
height595.4 
width419.6 
103
PDFDocument - struct
height595.4 
width419.6 
104
PDFDocument - struct
height595.4 
width419.6 
105
PDFDocument - struct
height595.4 
width419.6 
106
PDFDocument - struct
height595.4 
width419.6 
107
PDFDocument - struct
height595.4 
width419.6 
PrintingAllowed 
ProducerMicrosoft® Word pour Office 365 
Properties[] 
SecureAllowed 
ShowDocumentsOptioncom.adobe.internal.pdftoolkit.pdf.page.PDFPageMode@21717c90 
ShowWindowsOptionDocuent Title 
SigningAllowed 
SubjectALEAS DE LA VIE 
TitleLAMES DE FOND 
TotalPages107 
Trapped[empty string] 
Version1.7 

Je ne sais où le texte se cache 😉  - I do not know where the text is hiding 😉

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 ,
May 25, 2019 May 25, 2019

Copy link to clipboard

Copied

Bonjour,

Un ami m'a parlé de PDFbox. Connaissez-vous ?  Cela marche avec CF? et comment ?

Nous ne trouvons pas de tutos pour "extract text".

Merci pour votre avis

Hello,

A friend told me about PDFbox. Do you know? It works with CF? and how ?

We do not find tutorials for "extract text".

thank you for your opinion

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 ,
May 25, 2019 May 25, 2019

Copy link to clipboard

Copied

Rebonjour,

Nous avons trouvé ceci :

[Updated] PDFBox Example Code - How to Extract Text From PDF file with java - YouTube

Mais très compliqué pour mon niveau 😞

Hello again,

We found this:

[Updated] PDFBox Example Code - How to Extract Text From PDF file with Java - YouTube

But very complicated for my level 😞

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 ,
May 28, 2019 May 28, 2019

Copy link to clipboard

Copied

Bonjour,

Pas d'avis sur PDFbox ?

C'est compatible avec CF ?

Connaissez-vous une autre solution … plus simple ?

Merci pour votre aide

Hello,

No opinion on PDFbox?

It is compatible with CF?

Do you know another solution ... simpler?

Thank you 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
LEGEND ,
May 28, 2019 May 28, 2019

Copy link to clipboard

Copied

Je suis désolé de prendre si longtemps pour répondre. Hier était un jour férié pour les Américains.

Je ne suis pas familier avec PDFbox, je ne peux donc pas donner d'avis de toute façon.

J'ai créé des fichiers PDF à l'aide de CFPDF, mais je n'ai jamais eu besoin de lire à partir d'un fichier PDF existant. Je ne peux donc pas vous aider. Je ne connais personne sur les forums qui ait l'expérience de CFPDF.

I am sorry for taking so long to respond.  Yesterday was a holiday for Americans.

I am not familiar with PDFbox, so I cannot provide an opinion either way.

I have created PDFs using CFPDF, but I have never had a need to read from an existing PDF, so I am unable to assist.  I don't know anyone on the forums who is experienced with CFPDF. 

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 ,
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

Merci pour la réponse et avant tout j'espère que vous avez passé une bonne fête 😉

Est-il possible de s'adresser directement à Adobe pour avoir une solution ?

A vous lire

Thanks for the answer and above all I hope you had a good holiday 😉

Is it possible to go directly to Adobe for a solution?

To read you

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
LEGEND ,
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

Adobe a payé l'assistance, mais ce n'est pas bon marché. Leur assistance technique peut coûter des centaines de dollars, en fonction du temps passé au téléphone avec vous.

Votre meilleure option serait de trouver quelqu'un ici qui puisse vous aider.

J'essaie de penser à quiconque est familier avec CFPDF.

Adobe does have paid support, but it is not inexpensive.  Their tech support can cost hundreds of dollars, depending upon how long they are on the phone with you.

Your best option would be to find someone here who can help you.  I am trying to think of anyone who might be familiar with CFPDF.

V/r,

^ _ ^

Preran​ can you think of anyone who is experienced with CFPDF, and might be able to help ZNB​?

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
Adobe Employee ,
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

The capabilities of CFPDF are mentioned in these articles

ColdFusion Help | cfpdfform

cfpdf

I do not see any mention of the PDF layout being retained in any of these docs. Having said that, I will reach out to a team member to see if they have anything to add.

Thanks,

Preran

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
Community Expert ,
Jun 02, 2019 Jun 02, 2019

Copy link to clipboard

Copied

<!--- Get the info: myDocinfo --->

<cfpdf action="getinfo" source="C:\Users\BKBK\Desktop\MyDoc.pdf" name="myDocInfo"/>

<cfdump var="#myDocinfo#" label="myDocinfo">

<!--- Get the text, myDocXML, and save it as an XML file --->

<cfpdf action="extracttext" source="C:\Users\BKBK\Desktop\MyDoc.pdf" name="myDocXML"/>

<cffile action="write" file="C:\Users\BKBK\Desktop\myDocXML.xml" output="#myDocXML#">

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 ,
Jun 04, 2019 Jun 04, 2019

Copy link to clipboard

Copied

LATEST

Merci pour votre réponse.

Mais j'ai déjà essayé cela !

Malheureusement, il n'y a aucun retour à la ligne.

Thank you for your reply.

But I already tried that!

Unfortunately, there is no return to the line.

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