[Info-vax] splitting a PDF file
Abigail111
abigailklinton at yahoo.com
Sun Feb 2 19:40:40 EST 2014
Of course.You can just split the pdf files follow the demo code:
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Basic.Codec;
using RasterEdge.Imaging.PDF;
namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public static string FolderName = "c:/";
private void button1_Click(object sender, EventArgs e)
{
string fileName = FolderName + "Sample.pdf";
REDocument doc = REFile.OpenDocumentFile(fileName, new PDFDecoder());//use PDFDecoder open a pdf file
List<BaseDocument> baseDocs = doc.SplitDocument(1);
int index = 0;
foreach (BaseDocument baseDoc in baseDocs)
{
// REImage reimage = (REImage)baseDoc.GetPage(0).ToImage();
index++;
REFile.SaveDocumentFile((REDocument)baseDoc, "c:/reDoc" + index + ".pdf", new PDFEncoder());
}
http://www.rasteredge.com/how-to/csharp-imaging/pdf-split/
More information about the Info-vax
mailing list