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
Merges 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.
Example
// Merges 2 PDF files into a single one
PDFMerge("C:\PDF Doc\pdf_merge.pdf", "C:\PDF Doc\ReportQuery.pdf", "C:\PDF Doc\Concepts.pdf")
// Merges the files in PDF format found in an array
MyPDFArray is array of 3 strings
MyPDFArray[1] = "C:\Doc\Functions1.pdf"
MyPDFArray[2] = "C:\Doc\Functions2.pdf"
MyPDFArray[3] = "C:\Doc\Functions3.pdf"
PDFMerge("C:\Doc\pdf_merge.pdf", MyPDFArray)
Syntax

Merging several PDF files Hide the details

<Result> = PDFMerge(<Result PDF file> , <PDF file 1> , <PDF file 2> [, <PDF file 3> [... [, <PDF file 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 file 2>: Character string
Name and full path of second PDF file to merge.
<PDF file 3>: Optional character string
Name and full path of 3rd PDF file to merge.
<PDF file N>: Optional character string
Name and full path of Nth PDF file to merge.

Merging several PDF files found in an array Hide the details

<Result> = PDFMerge(<Result PDF file> , <PDF files to merge>)
<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 files to merge>: Array
Name of the array of strings containing the paths of PDF files to merge.
Remarks
  • 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.
  • From version 23, the process speed was improved and the size of result file was optimized.
  • 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
Syntax with array of documents.
The instruction generates an undefined error if the array consists of only one document.
Mister PAOLO
30 Jul. 2018

Last update: 12/15/2023

Send a report | Local help