<style>
    .column {
        float: left;
    }

    .left {
        width: 60%;
        font-size: 12px;
        min-height:5px;
    }

    .right {
        width: 40%;
        font-size: 14px;
        font-weight: bold;
    }

    .page_break {
        page-break-after: always;
    }
    .page_break:last-child {
        page-break-after: initial;
    }
</style>
<div class='pdf-body'>
    <% @products.each do |obj| %>
        <% (1..obj['print']).each do |i| %>
            <div class="page_break">
                <p style="margin: 0px 0px 5px 0px; padding-top:10px">
                    <%= obj['product'].name %>
                </p>
                <div class="text-center" style="margin-top:0px;padding-top:0px;">
                    <%= wicked_pdf_barcode_image("#{obj['product'].barcode}.png", options = { width: 150, height: 50 }) %>
                </div>
                <div class="row" style="padding-bottom:20px">
                    <div class="column left">
                        <ul style="list-style: none; margin:0px; padding:0px">
                            <% obj['product'].attrs_array.each do |attribute| %>
                                <li><%= attribute %></li>
                            <% end %>
                        </ul>
                    </div>
                    <div class="column right">
                        <span style="margin:auto"><%= number_to_currency(obj['price'], precision: 2) %></span>
                    </div>
                </div>
                <br>
                <br>
            </div>
        <% end %>
    <% end %>
</div>