<style type="text/css">
/* Kode CSS Untuk PAGE ini dibuat oleh http://jsfiddle.net/2wk6Q/1/ */
    .page {
        width: 210mm;
        min-height: 297mm;
        padding: 8mm;
        margin: 20mm auto;
        border: 1px #D3D3D3 solid;
        border-radius: 5px;
        background: white;
        zoom : 50%;
    }
    .subpage {
        padding: 1cm;
        height: 257mm;
        outline: 1cm #ededed solid;
    }
    
    @page {
        size: A4;
        margin: 0;
    }
    @media print {
        html, body {
            width: 210mm;
            height: 297mm;        
        }
        .page {
            margin: 0;
            border: initial;
            border-radius: initial;
            width: initial;
            min-height: initial;
            box-shadow: initial;
            background: initial;
            page-break-after: always;
        }
    }
</style>
<div id="pdf">
    <div class="page">
			<div class="row">
     		<?php 
		$ambil=$koneksi->query("SELECT * FROM genvoucher WHERE IdMember='$_SESSION[IdMember]' AND StaVoucher='1' ORDER BY IdGenVoucher DESC LIMIT 32 ");
		while ($pecah =$ambil->fetch_assoc())
			{

			$data = $pecah['Voucher'];
			?>
        <img src="imgqrcode/imagevoucher/<?php echo $data; ?>.png" style="width: 5cm;">
<?php
}
     ?>
			</div>
		</div>
</div>
<div class="card-body">
    <a class="btn btn-block btn-warning" href="intent://mekarmanah.my.id/hs-mekar/html2pdf/downloadvoucher.php?id=<?php echo $_SESSION['IdMember']; ?>#Intent;scheme=http;package=com.android.chrome;end
    " target="_blank">Download File PDF</a>
</div>
