我正在尝试在同一行中创建包含两个不同QR码的PDF,但是我正在获取另一个具有不同尺寸的QR码,请检查下面的代码和图片。
<div class="panel panel-default">
<div class="panel-heading">Pick up
<span class="pull-right" ng-value="month">{{month.m}} - {{month.y}}</span>
</div>
<div class="panel-body">
<label class="control-label selectShiftLable">Select Shift For Each Date</label>
<div class="pull-right">
<span style="color:green;" class="glyphicon glyphicon-check"></span>  Accepted Shifts  
<span style="color:orange;" class="glyphicon glyphicon-edit"></span>  Under Review  
<span style="color:red;" class="glyphicon glyphicon-random"></span>  Modified Shifts  
</div>
<div ng-repeat="(key, value) in pickupdata">
<div class="col-xs-2 form-group">
<div class="input-group">
<div class="input-group-addon" style=" font-size:13px;width: 47%;" ng-value="daysArray">{{($index+1)}}-{{daysArray[$index]}}
<a href="#" id="show-option" title="Shift was approved by Team Lead">
<span ng-if="acceptedpickupdata[$index+1]" style="color:green;" class="glyphicon glyphicon-check"></span>
</a>
<a href="#" id="show-option" title="Shift is under Review by Team Lead">
<span ng-if="underreviewpickupdata[$index+1]" style="color:orange;" class="glyphicon glyphicon-edit"></span>
</a>
<a href="#" id="show-option" title="Shift has been modified by the Team Lead">
<span ng-if="modifiedpickupdata[$index+1]" style="color:red;" class="glyphicon glyphicon-random"></span>
</a>
</div>
<select class="form-control " style="font-size:10px;display: inline;padding:0px" ng-options="shift.code as shift.name for shift in shiftList"
ng-model="pickupdata[$index+1]" ng-disabled="blockedPickupList[$index+1]">
<option value="">
Select Shift
</option>
</select>
<!--<input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount">-->
</div>
</div>
</div>
</div>
</div>
如何解决?
谢谢
答案 0 :(得分:0)
确保第二个二维码没有推断出页边距。
您可以使用以下方法修改页边距:
$pdf->SetMargins(0,0, 0);
$pdf->SetHeaderMargin(0);
$pdf->SetFooterMargin(0);