先将PDF中所有图片导出来,然后转到HTML中,再用JS调高宽和边距
关键代码:
<script> $('img').each(function(i){ $(this).css('height','1750px'); $(this).css('margin-top','-80px'); var index = (i+1)%4; if (index == 1) { $(this).css('margin-left','-150px'); } else if (index == 2) { $(this).css('margin-left','-1350px'); } else if (index == 3) { $(this).css('margin-left','-70px'); } else { $(this).css('margin-left','-1200px'); } }); </script>
再打开HTML文件打印
标签:index,笔记,else,A3,A4,margin,css,left From: https://www.cnblogs.com/waw/p/17397057.html