Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Oct 17, 2024 6:49 am

Dear Sir/Madam,

When converting PDF document (which was originaly in XLS) to XLS is breaking into multiple sheets instead of single sheet. Also, multiple columns are shown for single column of PDF document. The PDF document is attached for your reference.

Kindly suggest to convert with proper formatting.

dayachaubey
 
Posts: 6
Joined: Wed Aug 14, 2024 4:47 pm

Thu Oct 17, 2024 8:43 am

Hello,

Thanks for your inquiry. You can refer to the code below to set conversion options. If you have any further questions, please feel free to provide feedback.
Code: Select all
 PdfDocument pdf = new PdfDocument();
        pdf.getConvertOptions().setPdfToXlsxOptions(new XlsxLineLayoutOptions(false, true, false, true));
        pdf.loadFromFile("tech-eval-sheet-desktops.pdf");
        pdf.saveToFile("out.xlsx", FileFormat.XLSX);

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 306
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.PDF

cron