{"id":115,"date":"2026-09-17T05:37:39","date_gmt":"2026-09-17T05:37:39","guid":{"rendered":"https:\/\/filejp.in\/?page_id=115"},"modified":"2026-09-17T05:39:44","modified_gmt":"2026-09-17T05:39:44","slug":"doc-to-jpg","status":"publish","type":"page","link":"https:\/\/filejp.in\/index.php\/doc-to-jpg\/","title":{"rendered":"DOC To JPG"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-115\" data-postid=\"115\" class=\"themify_builder_content themify_builder_content-115 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_4in6748 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_c4nn748 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_zodz660   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>DOC to JPG 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_1nlu246 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_88o1246 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_rrci373 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <!-- Load Mammoth.js & html2canvas Libraries -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mammoth\/1.4.21\/mammoth.browser.min.js\"><\/script>\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/html2canvas\/1.4.1\/html2canvas.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;\">DOCX to JPG Converter<\/h2>\n    <p style=\"color: #666666; font-size: 14px; margin-bottom: 20px;\">Apni Word (.docx) file select karein aur JPG format me convert karein.<\/p>\n    \n    <!-- File Input -->\n    <input type=\"file\" id=\"docJpgInput\" accept=\".docx\" style=\"display: none;\" onchange=\"convertDocToJpg(this)\">\n    <label for=\"docJpgInput\" 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=\"docJpgLoader\" style=\"display:none; margin-top: 15px; color: #0073aa; font-weight: bold; font-size: 14px;\">\n        Converting file to JPG&#8230; Please wait.\n    <\/div>\n\n    <!-- Hidden Render Area -->\n    <div id=\"docJpgRenderArea\" style=\"position: absolute; left: -9999px; width: 700px; padding: 30px; background: #ffffff; color: #000000; font-family: Arial, sans-serif; line-height: 1.6; text-align: left;\"><\/div>\n\n    <!-- Output Section -->\n    <div id=\"docJpgResultContainer\" style=\"margin-top: 25px; display: none; border-top: 1px solid #eee; padding-top: 20px;\">\n        <p style=\"font-weight: bold; color: #444; font-size: 14px; margin-bottom: 10px;\">Converted JPG Preview:<\/p>\n        <img id=\"docJpgPreviewImg\" style=\"max-width: 100%; max-height: 250px; border-radius: 6px; border: 1px solid #ddd; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);\">\n        <br>\n        <a id=\"downloadDocJpgAnchor\" download=\"converted-document.jpg\" style=\"background-color: #46b450; color: #ffffff; padding: 12px 25px; text-decoration: none; border-radius: 6px; display: inline-block; font-weight: bold; font-size: 15px; box-shadow: 0 3px 6px rgba(0,0,0,0.1);\">\ud83d\udce5 Download JPG Image<\/a>\n    <\/div>\n\n<\/div>\n\n<script>\nfunction convertDocToJpg(input) {\n    if (!input.files || !input.files[0]) return;\n\n    var file = input.files[0];\n    var baseName = file.name.substring(0, file.name.lastIndexOf('.')) || 'converted';\n\n    document.getElementById('docJpgLoader').style.display = 'block';\n    document.getElementById('docJpgResultContainer').style.display = 'none';\n\n    var reader = new FileReader();\n    reader.onload = function(e) {\n        var arrayBuffer = e.target.result;\n\n        \/\/ Parse DOCX to HTML\n        mammoth.convertToHtml({ arrayBuffer: arrayBuffer })\n            .then(function(result) {\n                var renderArea = document.getElementById('docJpgRenderArea');\n                renderArea.innerHTML = result.value;\n\n                \/\/ Render HTML to JPG Image Canvas\n                html2canvas(renderArea, { scale: 2, backgroundColor: \"#ffffff\" }).then(function(canvas) {\n                    var jpgDataUrl = canvas.toDataURL('image\/jpeg', 0.92);\n\n                    \/\/ Set Preview and Download Link\n                    document.getElementById('docJpgPreviewImg').src = jpgDataUrl;\n                    \n                    var downloadBtn = document.getElementById('downloadDocJpgAnchor');\n                    downloadBtn.href = jpgDataUrl;\n                    downloadBtn.setAttribute('download', baseName + '.jpg');\n\n                    document.getElementById('docJpgLoader').style.display = 'none';\n                    document.getElementById('docJpgResultContainer').style.display = 'block';\n                });\n            })\n            .catch(function(err) {\n                alert('DOCX file read karne me problem aayi. Kripya valid .docx file use karein.');\n                document.getElementById('docJpgLoader').style.display = 'none';\n            });\n    };\n    reader.readAsArrayBuffer(file);\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_bg07354 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_d9r2355 first\">\n                    <!-- module text -->\n<div  class=\"module module-text tb_r2ad21   \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n        <p>Convert DOC, JPG 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>DOC to JPG Converter Online \u2013 Free | File JP DOCX to JPG Converter Apni Word (.docx) file select karein [&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-115","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/115","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=115"}],"version-history":[{"count":3,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/115\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/pages\/115\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/filejp.in\/index.php\/wp-json\/wp\/v2\/media?parent=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}