我有以下数组:
Array (
[1] => Array (
[spubid] => A00319
[sentered_by] => pubs_batchadd.php
[sarticle] => Lateral mixing of the waters of the Orinoco, Atabapo
[spublication] => Acta Cientifica Venezolana
[stags] => acta,confluence,orinoco,rivers,venezuela,waters
[authors] => Array (
[1] => Array (
[stype] => Author
[iorder] => 1
[sfirst] => A
[slast] => Andersen )
[2] => Array (
[stype] => Author
[iorder] => 2
[sfirst] => S.
[slast] => Johnson )
[3] => Array (
[stype] => Author
[iorder] => 3 …Run Code Online (Sandbox Code Playgroud) 我正在使用FPDF(1.7)将TXT文件转换为PDF.我想在PDF产品中强制分页.文本文件是使用php创建的,并成功使用回车符(\ r).但是我无法在PDF中显示换页符(\ f).
有没有其他方法通过更改原始文本文件或PHP代码强制FPDF中的分页符?也许是另一个角色?现在,我有一个波浪形标记页面应该打破.
如果有任何兴趣,我会发布用于调用FPDF的简单php:
<?php
require('fpdf.php');
$pdf = new FPDF('P','mm','A5');
$pdf->AddPage('P');
$pdf->SetDisplayMode(real,'default');
$pdf->SetFont('Arial','',10);
$txt = file_get_contents('comments.txt', true);
$pdf->Write(8, $txt);
$pdf->Output();
?>
Run Code Online (Sandbox Code Playgroud)
感谢您的关注.