PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Procedure to Extract text from PDF files with Windev (Procedimento para Extrair texto de arquivos PDF com Windev)
Procedure to Extract text from PDF files with Windev (Procedimento para Extrair texto de arquivos PDF com Windev)
Started by adrianoboller, Dec., 10 2014 3:52 PM - 2 replies
Connect yourself…
adrianoboller
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on December, 10 2014 - 3:52 PM
//Procedure to Extract text from PDF files with Windev
//Procedimento para Extrair texto de arquivos PDF com Windev
#########################################################################################
tmpArq is
string
tmpArq
=
fImageSelect
(
EdtArqPdf
,
""
,
"Selecione PDF..."
,
"PDFs"
+
TAB
+
"*.PDF"
)
IF
tmpArq
<
>
""
THEN
EdtArqPdf
=
tmpArq
// mostra o nome do arquivo na tela
ImgPDF
=
tmpArq
// mostra o PDF na tela
StaTextoDoPDF
=
PDFToText
(
tmpArq
,
"1"
)
// extrai texto pg 1
END
#########################################################################################
Report
0
0
BOLLER
#2
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on March, 05 2020 - 9:50 PM
Procedure
Pdf_Extrair_Txt
(
)
IF
YesNo
(
"Total de Número de págs no PDF é de: "
+
E
DT_Pag_Final
+
", deseja prosseguir?"
)
THEN
x
is int
s
Texto
is string
LOOP
(
E
DT_Pag_Final
)
x
+
+
IF
x
<
=
E
DT_Pag_Final
s
Texto
+
=
PDFToText
(
E
DT_Path
,
""
+x+
""
) +
CR
ELSE
BREAK
END
END
fSaveText
(
"c:\temp\extraido.txt"
,
s
Texto
)
ShellExecute
(
"c:\temp\extraido.txt"
)
END
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
Boller
#3
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on April, 06 2021 - 1:17 PM
s
Fichier
is string
=
fSelect
(
""
,
""
,
"Selecione uma imagem ou um pdf ..."
,
fGraphicFilter
(
)
,
ExtractString
(
ExtractString
(
fGraphicFilter
(
)
,
2
,
TAB
)
,
1
,
CR
)
)
IF
s
Fichier
<
>
""
SetFocus
(
E
DT_Text
)
ExtraitTexte
(
s
Fichier
)
IF
StringCount
(
s
Fichier
,
"pdf"
,
IgnoreCase
) >
0
x
is int
=
0
LOOP
(
10
)
// 10 páginas
x
+
+
E
DT_Text1
+
=
PDFToText
(
s
Fichier
,
""
+x+
""
)
END
END
IF
E
DT_Text1
=
"<RC>"
THEN
END
END
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text