javascript - CSS HTML Generate PDF file from image with text under it -
i want generate pdf file using xeponline.jqplugin.js plugin.
i have image (on "background") , html text under image. capable generate pdf file there 2 different elements: image and, after image (and not under image), comes text.
<!doctype html> <html> <head> ... <script src="xeponline.jqplugin.js"></script> </head> <body> <div id="page-show"> <div class="image"> <img src="img/card.png" > <h3>text</h3> </div> <button id="printbutton" onclick="return xeponline.formatter.format('page-show',{render:'download'});"/> </div> </body> </html>
the css relevant elements following:
#page-show{ /* main container div */ width:355px; margin:90px auto 0; } div.img { height: 165px; text-align: center; } div.img img { display: inline; } .image { position: relative; width: 100%; /* ie 6 */ text-align: center; } h3 { position: absolute; top: 164px; width: 100%; font-size: 16px; }
is possible generate pdf file of image text under it? (with same format appears in html page)
Comments
Post a Comment