PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Split document, wrong sort http://forum.pdfsharp.de/viewtopic.php?f=2&t=2251 |
Page 1 of 1 |
Author: | jwe [ Fri Nov 30, 2012 7:36 am ] |
Post subject: | Split document, wrong sort |
Hello, I split a document (28 Pages) to 28 PDF files. The page 1 shell be file 0.pdf. 2 -> 1.pdf and so on. When I open the files, page 4 is not 3.pdf, the files are not conform with the page numbers. My Source: pdf_file_swx = path_input & dokuname_org inputDocument = (PdfReader.Open(pdf_file_swx, PdfDocumentOpenMode.Import)) Dim pages As Integer = inputDocument.PageCount For i = 0 To (pages - 1) Dim outputDocument As New PdfDocument() outputDocument.Version = inputDocument.Version outputDocument.Info.Creator = inputDocument.Info.Creator outputDocument.AddPage(inputDocument.Pages(i)) outputDocument.Save(path_temp & i.ToString & ".pdf") Next i Where is my mistake? Regards Jürgen |
Author: | Thomas Hoevel [ Mon Dec 03, 2012 11:26 am ] |
Post subject: | Re: Split document, wrong sort |
Hi, Jürgen! jwe wrote: Where is my mistake? I don't know. And without your PDF file I cannot try.viewtopic.php?f=2&t=832 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |