PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Products
WinDevWebDev - Server codeWebDev - Browser codeWinDev MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
Merges several existing PDF files into a single PDF file. The files are merged one after another. The paths of the 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 the 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 the first PDF file to merge.
<PDF File 2>: Character string (with quotes)
Name and full path of the second PDF file to merge.
<PDF File N>: Optional character string (with quotes)
Name and full path of the 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 the 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 the 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.
Components
WinDevWebDev - Server codeReports and Queries wd210wdpdf.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment