AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

¡Nueva funcionalidad de WINDEV, WEBDEV y WINDEV Mobile 2024!
Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones PDF
  • Conversion from PDF to text
  • Special cases
Extract the text contained in an Document PDF.
Ejemplo
WINDEVWEBDEV - Código ServidoriPhone/iPad
MonPDF is pdfDocument = PDFOpen("test.pdf")
MaChaîne = MonPDF.VersTexte("1-2")
// Affichage dans un champ de saisie multiligne
SAI_SaisieTexteMulti = MaChaîne
Sintaxis
<Result> = <PDF document>.ToText([<Pages to extract>])
<Result>: Cadena de caracteres
Text of PDF file.
<PDF document>: Variable de tipo pdfDocument
Name of the pdfDocument variable to be used.
<Pages to extract>: Cadena de caracteres opcional
Range of pages the text must be extracted form. The format used is identical to the one used in the standard printout boxes: individual page numbers of range of pages separated by semi-colons. For example, "1;3;4;6-10;12" means that pages 1, 3, 4, 6 to 10, and 12 will be processed.
If this parameter is not specified or if it corresponds to an empty string (""), all the pages are extracted.
Observaciones

Conversion from PDF to text

  • The formatting of the document is lost when the conversion is performed from PDF to text.
  • The text is extracted in the order or appearance of the PDF commands and it is sequentially written into the result string. The organization of the text in paragraphs and in blocks is kept (as well as the CR characters).
  • The Unicode characters are not returned.
  • The data found in a PDF form is not extracted (this data is not stored in the PDF file).

Special cases

  • PDFIsProtected is used to find out whether a password is required to open a PDF file.
  • PDFNumberOfPages returns the total number of pages found in a PDF file.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd290wdpdf.dll
Versión mínima requerida
  • Versión 2024
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 19/12/2023

Señalar un error o enviar una sugerencia | Ayuda local