ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Merges several PDF files into a single PDF file. Files are merged one after the other. The paths of the PDF files can be included 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 PDF files present 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 the PDF file to be created. This file will contain the PDF files that have been merged.
<PDF file 1>: Character string
Name and full path of the first PDF file to be merged.
<PDF file 2>: Character string
Name and full path of the second PDF file to be merged.
<PDF file 3>: Optional character string
Name and full path of the 3rd PDF file to be merged.
<PDF file N>: Optional character string
Name and full path of the Nth PDF file to be merged.

Merging several PDF files present 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 the PDF file to be created. 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 the PDF files to be merged.
Remarks
  • Until version 18:
    • This function only generates PDF files in version 1.4.
    • Merging PDFs is not supported in version 1.5 and later.
  • As of version 19, PDF files in version 1.5 are supported by WINDEV and WEBDEV.
  • Bookmarks are lost when merging PDF files.
  • Starting with version 23, the process speed has been improved and the size of the merged file has been 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: wd300wdpdf.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: 11/21/2024

Send a report | Local help