PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 N>]])
<Result>: Boolean
  • True if the result file was generated,
  • False otherwise. To find out the error details, use ErrorInfo.
<Result PDF File>: Character string (with quotes)
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 (with quotes)
Name and full path of first PDF file to merge.
<PDF File 2>: Character string (with quotes)
Name and full path of second PDF file to merge.
<PDF File N>: Optional character string (with quotes)
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 find out the error details, use ErrorInfo.
<Result PDF File>: Character string (with quotes)
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.
  • Versions 23 and later
    From version 23, the process speed was improved and the size of result file was optimized.
    New in version 23
    From version 23, the process speed was improved and the size of result file was optimized.
    From version 23, the process speed was improved and the size of result file was optimized.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230pdf.dll
Minimum required version
  • 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
Jul. 30 2018