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.

Mon Sep 20, 2021 12:21 pm

Hello,
we are having problems with converting the xlsx document to pdf file. Output pdf document has unexpected vertical bold line in the end of sheet. There is no line in the end of input document.Can you help me to find a problem?

In the example.zip :
- Input file: source.xlsx
- Output file: result.pdf

Converting code:
Code: Select all
       private static void ConvertToPfd(Stream source)
        {
            var workbook = new Workbook();
           workbook.LoadFromStream(excel);

            using var result = new FileStream("result.pdf", FileMode.Create, FileAccess.Write);
            workbook.SaveToStream(result, Spire.Xls.FileFormat.PDF);
        }


Version of product: Spire.XLS, Version=11.7.0.0
OS: Windows 10, 64bit

Thanks!

burz00m21
 
Posts: 12
Joined: Thu Sep 16, 2021 12:20 pm

Tue Sep 21, 2021 5:26 am

Dear Igor,

Thanks for your inquiry.
I tested your source.xlsx and indeed found the vertical bold line behavior you mentioned. After investigating, I found the issue is related to the element structure of your source itself, it is not a bug of our product. To verify it, you can use the Microsoft Excel to save your source to Pdf file, you will get the same vertical bold line. Here I attached the Pdf saved by Microsoft Excel for your better reference.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1385
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.PDF