We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to each page convert pdf for pdf file

Hi , I have a problem with converting .pdf each page to .pdf using Aspose,pdf for C#.

@Liangsb

Thanks for contacting support.

Please use following code snippet in order to convert each PDF Page into separate PDF document:

Document doc = new Document("Input.pdf");
foreach(Page page in doc.Pages)
{
  Document newDoc = new Document();
  newDoc.Pages.Add(page);
  newDoc.Save("output_" + DateTime.Now.Millisecond + ".pdf");
}

In case you face any issue, please share your sample PDF document with us. We will test the scenario in our environment and address it accordingly.

1 Like