1
我一直在使用pdfCrowd API将HTML转换为PDF,但为转换设置的默认页面方向是纵向。那么,有什么方法可以将页面方向设置为横向。使用pdfcrowd API在横向模式下转换pdf
我一直在使用pdfCrowd API将HTML转换为PDF,但为转换设置的默认页面方向是纵向。那么,有什么方法可以将页面方向设置为横向。使用pdfcrowd API在横向模式下转换pdf
这是代码尝试
header("Content-Type: application/pdf");
header("Cache-Control: max-age=0");
header("Landscape-mode: 3pdf,'L'");
检查此链接:http://pdfcrowd.com/web-html-to-pdf-php/ –