{"id":21,"date":"2026-09-16T20:49:47","date_gmt":"2026-09-16T20:49:47","guid":{"rendered":"https:\/\/filejp.in\/?page_id=21"},"modified":"2026-09-16T22:08:46","modified_gmt":"2026-09-16T22:08:46","slug":"pdf-merge","status":"publish","type":"page","link":"https:\/\/filejp.in\/index.php\/pdf-merge\/","title":{"rendered":"PDF Merge"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-21\" data-postid=\"21\" class=\"themify_builder_content themify_builder_content-21 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_yknf517 tb_first tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_dzz7517 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_w82i543   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>Marge PDF Online &#8211; Free Image Compressor | File JP<\/p>    <\/div>\n<\/div>\n<!-- \/module text -->        <\/div>\n                        <\/div>\n        <\/div>\n                        <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_ny4y274 tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_qjyu275 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_999i452 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <!-- Load pdf-lib Library for Merging PDFs -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pdf-lib\/1.17.1\/pdf-lib.min.js\"><\/script>\n\n<div style=\"max-width: 480px; margin: 30px auto; padding: 25px; border: 1px solid #e0e0e0; border-radius: 12px; text-align: center; font-family: Arial, sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background-color: #ffffff;\">\n\n    <h2 style=\"margin-top: 0; color: #333333; font-size: 22px;\">PDF Merger<\/h2>\n    <p style=\"color: #666666; font-size: 14px; margin-bottom: 20px;\">Multiple PDF files ek saath select karein aur ek single PDF me merge karein.<\/p>\n    \n    <!-- File Input (Multiple PDFs allowed) -->\n    <input type=\"file\" id=\"pdfMergeInput\" accept=\"application\/pdf\" multiple style=\"display: none;\" onchange=\"handlePdfFiles(this)\">\n    <label for=\"pdfMergeInput\" style=\"background-color: #2271b1; color: #ffffff; padding: 12px 20px; border-radius: 6px; cursor: pointer; display: inline-block; font-weight: bold; font-size: 14px;\">Select Multiple PDFs<\/label>\n    \n    <!-- Selected Files List -->\n    <div id=\"pdfFileListContainer\" style=\"margin-top: 20px; display: none; text-align: left; border-top: 1px solid #eee; padding-top: 15px;\">\n        <p style=\"font-weight: bold; color: #444; font-size: 13px; margin-bottom: 8px;\">Selected Files:<\/p>\n        <ul id=\"pdfFileList\" style=\"font-size: 13px; color: #555; padding-left: 20px; margin-bottom: 20px;\"><\/ul>\n        \n        <!-- Merge Action Button -->\n        <div style=\"text-align: center;\">\n            <button id=\"mergeActionBtn\" onclick=\"processPdfMerge()\" style=\"background-color: #46b450; color: #ffffff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; margin-bottom: 15px;\">\u26a1 Merge PDFs Now<\/button>\n        <\/div>\n    <\/div>\n\n    <!-- Download Result Area -->\n    <div id=\"pdfMergeResult\" style=\"margin-top: 15px; display: none; border-top: 1px dashed #ccc; padding-top: 15px;\">\n        <p style=\"font-size: 14px; color: #333; font-weight: bold; margin-bottom: 15px;\">PDFs Successfully Merged!<\/p>\n        <button id=\"downloadMergedPdfBtn\" onclick=\"downloadMergedFile()\" style=\"background-color: #e2401c; color: #ffffff; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 15px; box-shadow: 0 3px 6px rgba(0,0,0,0.1);\">\ud83d\udcc4 Download Merged PDF<\/button>\n    <\/div>\n\n<\/div>\n\n<script>\nvar selectedPdfFiles = [];\nvar mergedPdfBytes = null;\n\nfunction handlePdfFiles(input) {\n    if (!input.files || input.files.length < 2) {\n        alert(\"Kam se kam 2 PDF files select karein merge karne ke liye!\");\n        return;\n    }\n\n    selectedPdfFiles = Array.from(input.files);\n    var listElement = document.getElementById('pdfFileList');\n    listElement.innerHTML = '';\n\n    selectedPdfFiles.forEach(function(file) {\n        var li = document.createElement('li');\n        li.textContent = file.name + ' (' + (file.size \/ 1024).toFixed(1) + ' KB)';\n        listElement.appendChild(li);\n    });\n\n    document.getElementById('pdfFileListContainer').style.display = 'block';\n    document.getElementById('pdfMergeResult').style.display = 'none';\n}\n\nasync function processPdfMerge() {\n    if (selectedPdfFiles.length < 2) return;\n\n    const { PDFDocument } = PDFLib;\n    const mergedPdfDoc = await PDFDocument.create();\n\n    for (const file of selectedPdfFiles) {\n        const arrayBuffer = await file.arrayBuffer();\n        const pdfDoc = await PDFDocument.load(arrayBuffer);\n        const copiedPages = await mergedPdfDoc.copyPages(pdfDoc, pdfDoc.getPageIndices());\n        copiedPages.forEach((page) => mergedPdfDoc.addPage(page));\n    }\n\n    mergedPdfBytes = await mergedPdfDoc.save();\n    document.getElementById('pdfMergeResult').style.display = 'block';\n}\n\nfunction downloadMergedFile() {\n    if (!mergedPdfBytes) return;\n\n    var blob = new Blob([mergedPdfBytes], { type: 'application\/pdf' });\n    var link = document.createElement('a');\n    link.href = URL.createObjectURL(blob);\n    link.download = 'merged-document.pdf';\n    link.click();\n}\n<\/script>    <\/div>\n<\/div>\n<!-- \/module plain text -->        <\/div>\n                        <\/div>\n        <\/div>\n                        <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_877u226 tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_lwh5227 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_ecco574   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>Marge PDF online while reducing file size. Free and easy image compression tool.<\/p>    <\/div>\n<\/div>\n<!-- \/module text -->        <\/div>\n                        <\/div>\n        <\/div>\n        <\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"<p>Marge PDF Online &#8211; Free Image Compressor | File JP PDF Merger Multiple PDF files ek saath select karein aur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":7,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}