angularjs - How to break pdf content on next page on angular js -


i converted html pdf in angular js using kendo ui. things working fine. want add content on multiple pages. using kendo ui content not aligned messed , content hide between pages.

me script -

<script>             var generatepdf = function() {                           kendo.drawing.drawdom($("#printplanid"), {papersize: "a4"}).then(function(group) {                 kendo.drawing.pdf.saveas(group, "converted pdf.pdf");                 });              }            </script> 

my content shown like:- enter image description here

what can export html pdf?

try code , think more.. reference link : [http://dojo.telerik.com/uqoqu/4][1]

  <html>     <head>         <meta charset="utf-8"/>         <title>kendo ui snippet</title>          <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.common.min.css"/>         <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.rtl.min.css"/>         <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.silver.min.css"/>         <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.mobile.all.min.css"/>          <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>         <script src="http://kendo.cdn.telerik.com/2016.3.1028/js/kendo.all.min.js"></script>     </head>     <body>          <style>             /*                 use dejavu sans font display , embedding in pdf file.                 standard pdf fonts have no support unicode characters.             */             .k-grid {                 font-family: "dejavu sans", "arial", sans-serif;             }         </style>          <script>             // import dejavu sans font embedding              // note: required if kendo ui stylesheets loaded             // different origin, e.g. kendo.cdn.telerik.com             kendo.pdf.definefont({                 "dejavu sans"             : "http://kendo.cdn.telerik.com/2016.3.1028/styles/fonts/dejavu/dejavusans.ttf",                 "dejavu sans|bold"        : "http://kendo.cdn.telerik.com/2016.3.1028/styles/fonts/dejavu/dejavusans-bold.ttf",                 "dejavu sans|bold|italic" : "http://kendo.cdn.telerik.com/2016.3.1028/styles/fonts/dejavu/dejavusans-oblique.ttf",                 "dejavu sans|italic"      : "http://kendo.cdn.telerik.com/2016.3.1028/styles/fonts/dejavu/dejavusans-oblique.ttf"             });         </script>          <!-- load pako zlib library enable pdf compression -->         <script src="//kendo.cdn.telerik.com/2016.3.1028/js/pako_deflate.min.js"></script>          <div id="grid"></div>       <div id="printplanid">contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32.      standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.         er</div>       <div id="ssdd" ><input type="button" name="save" onclick="xard();" /> </div>         <script>             function xard() {                               kendo.drawing.drawdom($("#printplanid"),                                           { papersize: "a4",                                           margin:"3cm"} ).then(function(group) {                     kendo.drawing.pdf.saveas(group, "converted pdf.pdf");                     });                  }            </script>     </body>     </html>     [1]: http://dojo.telerik.com/uqoqu/4 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -