ब्लॉगर पोस्ट को कैसे प्रिंट करें how to print in blogger post

 किसी पोस्ट को pdf के रूप में डाउनलोड करने के लिए थीम में जाकर search करे <data:post.body/>

  एक थीम में कई <data:post.body/> हो सकते है तो सटीक के निचे में निचे दिए code को पेस्ट करे बस हो गया 

      <b:if cond='data:blog.pageType == &quot;item&quot;'>

    <style>

      .print-button {

        display: inline-block;

        padding: 10px 20px;

        margin: 10px 0;

        background-color: #4b5563;

        color: white;

        text-align: center;

        text-decoration: none;

        border-radius: 5px;

        cursor: pointer;

        font-family: &#39;Roboto&#39;, sans-serif;

      }

      .print-button:hover {

        opacity: 0.9;

      }

      @media print {

        .blog-pager, .footer, #question-form, .widget-content, #navbar-iframe-container, .header-inner, .sidebar, 

        .question-form, .comments, .feed-links, .comment-form, .post-footer, .post-labels, .post-comment-link, 

        .post-share-buttons, .post-actions {

          display: none !important;

        }

        .main-wrapper {

          margin: 0;

          padding: 0;

          position: relative;

        }

        .post-body {

          margin: 0;

          padding: 0;

          width: 100%;

        }

        /* द&#2379;हर&#2366;य&#2366; ज&#2366;न&#2375; व&#2366;ल&#2366; ट&#2375;क&#2381;स&#2381;ट व&#2366;टरम&#2366;र&#2381;क */

        body::before {

          content: &#39;&#39;;

          position: fixed;

          top: 0;

          left: 0;

          width: 100%;

          height: 100%;

          background-image: url(&quot;data:image/svg+xml;utf8,<svg height='100' width='300' xmlns='http://www.w3.org/2000/svg'><text fill='%23666' font-family='Arial' font-size='20' transform='rotate(-45 10 50)' x='10' y='50'>aaryanchiram@gmail.com</text></svg>&quot;);

          background-repeat: repeat; /* ट&#2375;क&#2381;स&#2381;ट क&#2379; प&#2370;र&#2375; प&#2375;ज पर द&#2379;हर&#2366;ए&#2305; */

          opacity: 0.3; /* ट&#2375;क&#2381;स&#2381;ट क&#2379; हल&#2381;क&#2366; कर&#2375;&#2306; */

          z-index: -1; /* क&#2306;ट&#2375;&#2306;ट क&#2375; प&#2368;छ&#2375; रख&#2375;&#2306; */

          -webkit-print-color-adjust: exact;

          print-color-adjust: exact;

        }

        /* म&#2370;ल छव&#2367; व&#2366;टरम&#2366;र&#2381;क */

        body::after {

          content: &#39;&#39;;

          position: fixed;

          top: 50%;

          left: 50%;

          width: 100%;

          height: 100%;

          background-image: url(&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTH5qJyr8y1SnWcpPmMdvLuiO6tMC2qwQT71g-ccw7SizY-Zcw0pZo_yaoxGgFKdzZEagAQvWjHKIEwNuhKh97eSrgly-2VXSOEJcToexJjdhE3K0qXGTMWbrsItlIPYDkxr084ygLiY-G2h-Td6KaOfccNBZmNBaU7fV7lMrFgtPwVWShcnclqAF0uNo/s299/1.png&#39;);

          background-repeat: no-repeat;

          background-position: center;

          background-size: 50%; /* छव&#2367; क&#2366; आक&#2366;र */

          opacity: 0.4; /* छव&#2367; क&#2379; हल&#2381;क&#2366; कर&#2375;&#2306; */

          transform: translate(-50%, -50%);

          z-index: -1; /* क&#2306;ट&#2375;&#2306;ट क&#2375; प&#2368;छ&#2375; रख&#2375;&#2306; */

          -webkit-print-color-adjust: exact;

          print-color-adjust: exact;

        }

      }

    </style>

  </b:if>



<!-- ब&#2381;ल&#2377;गर प&#2379;स&#2381;ट ल&#2370;प म&#2375;&#2306; प&#2381;र&#2367;&#2306;ट बटन ज&#2379;ड&#2364;&#2375;&#2306; -->

<b:loop values='data:posts' var='post'>

  <!-- प&#2381;र&#2367;&#2306;ट बटन -->

  <b:if cond='data:blog.pageType == &quot;item&quot;'>

    <button class='print-button' onclick='window.print()'>

      <i class='fas fa-print'/> प&#2381;र&#2367;&#2306;ट

    </button>

  </b:if>

</b:loop>


प्रिंट बटन दबाने 


पर ऐसा शो होगा  











No comments:

Powered by Blogger.