New WINDEV, WEBDEV and WINDEV Mobile 28 feature!
Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures

WLanguage includes different types of variables to handle PDF files:
pdfAttachmentThe pdfAttachment type is used to define all the advanced characteristics of an attachment in a PDF document.
pdfDocumentThe pdfDocument type gets all the characteristics of a PDF file: author, date created, page content, etc.
pdfPageThe pdfPage type is used to define all the advanced characteristics of a page from a PDF document loaded in memory.
pdfParameterThe pdfParameter type defines all the characteristics of the PDF file to be generated.
pdfSignatureThe pdfSignature type is used to define the advanced characteristics of the signature that will be applied to a PDF file when signing an existing PDF (via PDFSign).
pdfTextElementThe pdfTextElement type is used to find out all the characteristics of a text element in a PDF page.

The following functions are used to handle PDF files, using prefix syntax:
<pdfDocument variable>.AddWatermarkAdds a watermark to all the pages of an existing PDF file.
<pdfDocument variable>.GetSignatureGets the signature of a PDF document as a buffer.
<pdfDocument variable>.GetSignatureDateGets the date of one of the signatures of a PDF document.
<pdfDocument variable>.NbSignaturesGets the number of signatures in a PDF document.
<pdfDocument variable>.SaveSaves the content of a pdfDocument variable in a ".PDF" file.
<pdfPage variable>.AddImageAdds an image to a page in an existing PDF file.
<pdfPage variable>.AddWatermarkAdds a watermark to a page of an existing PDF file.

Remark: The following functions can be used to handle PDF files directly:
PDFExtractPageExtracts a page from a PDF file in a variable of type Image.
PDFIsProtectedChecks whether the PDF file requires a password in order to be read.
PDFMergeMerges several existing PDF files into a single PDF file. The files are merged one after another. The paths of PDF files can be found in an array.
PDFMergeWithPasswordMerges several existing and password-protected PDF files into a single PDF file.
PDFNumberOfPagesReturns the total number of pages found in a PDF file.
PDFPasswordProtects a PDF document with a password.
PDFSignApplies an approval signature to an existing PDF.
PDFToTextExtracts the text found in a PDF file.
Minimum version required
  • Version 28
This page is also available for…
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help