{"id":107,"date":"2026-09-17T05:27:37","date_gmt":"2026-09-17T05:27:37","guid":{"rendered":"https:\/\/filejp.in\/?page_id=107"},"modified":"2026-09-17T05:36:28","modified_gmt":"2026-09-17T05:36:28","slug":"doc-to-pdf","status":"publish","type":"page","link":"https:\/\/filejp.in\/index.php\/doc-to-pdf\/","title":{"rendered":"DOC to PDF"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-107\" data-postid=\"107\" class=\"themify_builder_content themify_builder_content-107 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_4t5n710 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_lw9n710 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_eevs887   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>Docx to PDF Converter Online \u2013 Free | 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_id87632 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_s3w0632 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_8tn3204 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\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;\">Office File to PDF<\/h2>\n    <p style=\"color: #666666; font-size: 14px; margin-bottom: 20px;\">Apni Word (.doc, .docx) file select karke PDF me convert karein.<\/p>\n    \n    <!-- File Input -->\n    <input type=\"file\" id=\"officeInput\" accept=\".doc,.docx\" style=\"display: none;\" onchange=\"processOfficeFile(this)\">\n    <label for=\"officeInput\" style=\"background-color: #2271b1; color: #ffffff; padding: 12px 20px; border-radius: 6px; cursor: pointer; display: inline-block; font-weight: bold; font-size: 14px;\">Select Word File<\/label>\n    \n    <div id=\"loaderArea\" style=\"display:none; margin-top: 15px; color: #0073aa; font-weight: bold; font-size: 14px;\">\n        Converting document&#8230; Please wait.\n    <\/div>\n\n    <!-- Hidden Printable Area -->\n    <div id=\"officePrintable\" style=\"display:none; text-align: left; padding: 20px; color: #000; background: #fff;\"><\/div>\n\n    <!-- Output Box -->\n    <div id=\"officeResultContainer\" style=\"margin-top: 25px; display: none; border-top: 1px solid #eee; padding-top: 20px;\">\n        <p style=\"font-size: 14px; color: #46b450; font-weight: bold; margin-bottom: 15px;\">\u2713 File Ready for PDF Download!<\/p>\n        \n        <button onclick=\"printDocToPdf()\" 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 Save \/ Print as PDF<\/button>\n    <\/div>\n\n<\/div>\n\n<!-- CDN Scripts -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mammoth\/1.4.21\/mammoth.browser.min.js\"><\/script>\n\n<script>\nfunction processOfficeFile(input) {\n    if (!input.files || !input.files[0]) return;\n\n    document.getElementById('loaderArea').style.display = 'block';\n    document.getElementById('officeResultContainer').style.display = 'none';\n\n    var file = input.files[0];\n    var reader = new FileReader();\n\n    reader.onload = function(e) {\n        var arrayBuffer = e.target.result;\n\n        \/\/ Raw text & HTML extraction with style mapping to prevent blank page\n        mammoth.convertToHtml({ arrayBuffer: arrayBuffer }, {\n            includeDefaultStyleMap: true,\n            ignoreEmptyParagraphs: false\n        })\n        .then(function(result) {\n            var html = result.value;\n            \n            \/\/ Fallback: Agar formatting ki wajah se blank aaye toh simple text extract karein\n            if (!html || html.trim() === \"\") {\n                return mammoth.extractRawText({ arrayBuffer: arrayBuffer }).then(function(textResult) {\n                    document.getElementById('officePrintable').innerHTML = '<pre style=\"white-space: pre-wrap; font-family: Arial;\">' + textResult.value + '<\/pre>';\n                    showSuccess();\n                });\n            } else {\n                document.getElementById('officePrintable').innerHTML = html;\n                showSuccess();\n            }\n        })\n        .catch(function(err) {\n            alert('File padhne me error aayi. Kripya normal .docx file use karein.');\n            document.getElementById('loaderArea').style.display = 'none';\n        });\n    };\n\n    reader.readAsArrayBuffer(file);\n}\n\nfunction showSuccess() {\n    document.getElementById('loaderArea').style.display = 'none';\n    document.getElementById('officeResultContainer').style.display = 'block';\n}\n\nfunction printDocToPdf() {\n    var content = document.getElementById('officePrintable').innerHTML;\n    var printWindow = window.open('', '', 'height=600,width=800');\n    \n    printWindow.document.write('<html><head><title>Convert to PDF<\/title>');\n    printWindow.document.write('');\n    printWindow.document.write('<\/head><body>');\n    printWindow.document.write(content);\n    printWindow.document.write('<\/body><\/html>');\n    \n    printWindow.document.close();\n    printWindow.focus();\n    \n    setTimeout(function() {\n        printWindow.print();\n        printWindow.close();\n    }, 500);\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_04w1245 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_dt1g246 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_sfza236   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>Convert Docx , PNG and other images to PDF online for free. Fast, simple and easy-to-use Image to PDF converter.<\/p>    <\/div>\n<\/div>\n<!-- \/module text -->        <\/div>\n                        <\/div>\n        <\/div>\n        <\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"<p>Docx to PDF Converter Online \u2013 Free | File JP Office File to PDF Apni Word (.doc, .docx) file select [&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-107","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/107","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=107"}],"version-history":[{"count":7,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/107\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/107\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}