Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iText移动到下一页_Itext - Fatal编程技术网

iText移动到下一页

iText移动到下一页,itext,Itext,我正在使用itext生成带有图像和该图像的一些描述的pdf文件 我想在一页中打印一张图像和该图像的描述 要在下一页打印下一张图像,请使用itext。如何移动到下一页?方法很多。我从你的问题中了解到,如何在Pdf文档中生成新页面。Algo将是这样的 for each image{ /*manipulation logic for image and text goes here */ document.newPage(); } 检查循环最

我正在使用itext生成带有图像和该图像的一些描述的pdf文件

我想在一页中打印一张图像和该图像的描述


要在下一页打印下一张图像,请使用itext。如何移动到下一页?

方法很多。我从你的问题中了解到,如何在Pdf文档中生成新页面。Algo将是这样的

for each image{     
     /*manipulation logic for image and text goes here */     
     document.newPage();    
}     

检查循环最后一次迭代的时间,否则将创建额外的空白页。

有很多方法可以做到这一点。我从你的问题中了解到,如何在Pdf文档中生成新页面。Algo将是这样的

for each image{     
     /*manipulation logic for image and text goes here */     
     document.newPage();    
}     

检查循环最后一次迭代的时间,否则将创建额外的空白页。

对于iTextSharp用法,请检查其document.NewPage;对于iTextSharp的用法,请使用其document.NewPage;