Skip to main content
Participant
Dec 23, 2020 1:12 AM UTC
Question

Is it possible to split an Excel sheet when converting from PDF to Excel?

 

When converting, all pages are saved in one sheet, and I want to divide this sheet by page.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

깡5C9AAuthor
Participant
Dec 23, 2020 1:13 AM UTC

ExecutionContext executionContext = ExecutionContext.Create(credentials);
ExportPDFOperation exportPdfOperation = ExportPDFOperation.CreateNew(ExportPDFTargetFormat.XLSX);

// Set operation input from a local PDF file
FileRef sourceFileRef = FileRef.CreateFromLocalFile(@"Sample.pdf");
exportPdfOperation.SetInput(sourceFileRef);

// Execute the operation.
FileRef result = exportPdfOperation.Execute(executionContext);

// Save the result to the specified location.
result.SaveAs(Directory.GetCurrentDirectory()
+ "/output/Sample.XLSX");

Translate