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 Feb 22, 2021 8:29 pm

When I want to convert a document that has "endnotes" from word to pdf, they are not displayed in the pdf.
Do I have to do any configuration to show the notes?
This is my code:
Code: Select all

            Spire.Doc.Document doc = new Spire.Doc.Document();
            string fullPath = Path.Combine(basePath, document);
            doc.LoadFromFile(fullPath);
            doc.SaveToFile(fullPath, Docx2013);
            Stream pdfStream = new MemoryStream();
            doc.SaveToStream(pdfStream, FileFormat.PDF);

            string documentoutput = fullPath.Replace(".docx", ".pdf");

            byte[] bytes = ReadBytes(pdfStream);
            File.WriteAllBytes(documentoutput, bytes);

asdproyectofinal
 
Posts: 1
Joined: Mon Feb 22, 2021 8:21 pm

Tue Feb 23, 2021 1:48 am

Hello,

Thanks for your inquiry.
I simulated a Word file and tested with the latest Spire.Doc Pack(hot fix) Version:9.2.0, but did not reproduce your issue. To help us investigate further, please provide us with your input file. You could send it to us via email ([email protected]). Thanks in advance.

Sincerely,
Brian
E-iceblue support tea,
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Mar 02, 2021 8:23 am

Hello,

Has your issue been resolved? If not, could you please provide your input file for further investigation?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF