1import{_ as o}from"./DykrsQrp.js";import{H as r,e as i}from"./CzjMoEVF.js";import"./HbmSTGGi.js";import"./DgGwozkI.js";import"./DKgBNiHd.js";import"./CDZ3QvUt.js";const e="https://e.customjs.io/<your-function-id>",g={__name:"merge-pdfs",setup(n){const t={slug:"merge-pdfs",title:"Merge PDFs API",intro:"Combine multiple PDF documents into a single file. Great for stitching invoices, reports, and attachments together in one automated step.",util:"PDF_MERGE",responseType:"PDF",code:`const { PDF_MERGE } = require('./utils'); 2 3const pdfInputs = [...(input.urls || []), ...(input.files || [])].filter(Boolean); 4 5return PDF_MERGE(pdfInputs);`,params:[{field:"urls",type:"string[]",required:!1,desc:'Array of public PDF URLs, merged in order. Combine with <code class="bg-gray-100 rounded px-1">files</code> if needed.'},{field:"files",type:"string[]",required:!1,desc:"Array of Base64-encoded PDFs (total payload max 6 MB)."}],urlExample:`curl -X POST ${e} \\ 6 -H "Content-Type: application/json" \\ 7 -H "x-api-key: YOUR_API_KEY" \\ 8 -d '{ 9 "urls": [ 10 "https://css4.pub/2017/newsletter/drylab.pdf", 11 "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" 12 ] 13 }' --output merged.pdf`,fileExample:`curl -X POST ${e} \\ 14 -H "Content-Type: application/json" \\ 15 -H "x-api-key: YOUR_API_KEY" \\ 16 -d '{ 17 "files": [ 18 "JVBERi0x..........EyNzg3CiUlRU9GCg==", 19 "JVBERi0x..........EyNzg3CiUlRU9GCg==" 20 ] 21 }' --output merged.pdf`,seoTitle:"Merge PDFs API: Combine Multiple PDFs into One | CustomJS",seoDescription:"Merge multiple PDF files into a single document via API. Pass URLs or Base64 strings (or both) and get one combined PDF back. 600 free operations per month with CustomJS.",faqs:[{question:"In what order are the PDFs merged?",answer:"In the order they appear in the array, <code>urls</code> first, then <code>files</code>. Arrange the array to control the final page order."},{question:"Can I mix URLs and Base64 files?",answer:"Yes. Provide both <code>urls</code> and <code>files</code>; they are concatenated and merged into a single PDF."},{question:"Is there a size limit?",answer:"The request payload is capped at 6 MB. For large files, host them and pass URLs instead of Base64 strings."}]};return(a,p)=>{const s=o;return i(),r(s,{tool:t})}}};export{g as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.