ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
PDFMergeWithPassword (Function)
In french: PDFFusionneAvecMotDePasse
Merges several existing PDF files into a single PDF file. The passwords of different PDF files are supported. The files are merged one after another.
Example
PDFMergeWithPassword("C:\PDF Doc\pdf_merge.pdf", ...
"C:\PDF Doc\ReportQuery.pdf", "pwd", "C:\PDF Doc\Concepts.pdf", "pwd2")
Syntax
<Result> = PDFMergeWithPassword(<Result PDF file> , <PDF file 1> , <PDF Password 1> , <PDF file 2> , <PDF Password 2> [, <PDF file 3> , <PDF password 3> [... [, <PDF file N> , <PDF Password N>]]])
<Result>: Boolean
  • True if the result file was generated,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Result PDF file>: Character string
Name and full path of PDF file to create. This file will contain the PDF files that have been merged.
<PDF file 1>: Character string
Name and full path of first PDF file to merge.
<PDF Password 1>: Character string
  • Password for opening the first PDF file,
  • Empty string ("") if the file has no password.
<PDF file 2>: Character string
Name and full path of second PDF file to merge.
<PDF Password 2>: Character string
  • Password for opening the second PDF file,
  • Empty string ("") if the file has no password.
<PDF file 3>: Optional character string
Name and full path of 3rd PDF file to merge.
<PDF password 3>: Optional character string
  • Password to open the third PDF file.
  • Empty string ("") if the file has no password.
<PDF file N>: Optional character string
Name and full path of Nth PDF file to merge.
<PDF Password N>: Optional character string
  • Password for opening the Nth PDF file,
  • Empty string ("") if the file has no password.
Remarks
  • The PDF files protected by an admin password cannot be merged.
  • Up to version 18:
    • This function only generates PDF files in version 1.4.
    • The merge is not supported by the PDF files in version 1.5 and later.
  • From version 19, the PDF files in version 1.5 are supported by WINDEV and WEBDEV.
  • The bookmarks found in the PDF files are not kept by the merge operation.
  • Android Starting with version 28, this function is not supported by 32-bit ARM processors. New PDF features require a 64-bit execution mode.
    If an application is to be run on devices with 32-bit ARM processors, it must be generated with WINDEV Mobile 27.
Business / UI classification: Business Logic
Component: wd290wdpdf.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/15/2023

Send a report | Local help