Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jul 11, 2019 6:58 am

Please find attached image having a comparison between the source (docx) and generated pdf from spire.doc. The highlighted in yellow on the right side is generated pdf where table: Section 3 & section 3.1 are missing. (EOC-Page…..png) If I do not use s, then generated pdf looks good (doc.SaveToFile(tempFileName, Spire.Doc.FileFormat.PDF);) but we want pdf to be X1a compliance

For your troubleshooting, I am attaching source (docx) file and generated print-x pdf


Below is the code snipped

var wordPath ="..\..\H2563005002 (2) - Copy.Docx";
using (Document doc = new Document())
{

doc.LoadFromFile(wordPath);

ToPdfParameterList toPdf = new ToPdfParameterList();
toPdf.IsEmbeddedAllFonts = true;
toPdf.PdfConformanceLevel = Spire.Pdf.PdfConformanceLevel.Pdf_X1A2001;
toPdf.DisableLink = true;

// doc.SaveToFile(tempFileName, Spire.Doc.FileFormat.PDF);
doc.SaveToFile(tempFileName, toPdf);
}

Simplify19
 
Posts: 2
Joined: Wed Mar 20, 2019 5:33 pm

Thu Jul 11, 2019 8:18 am

Hi,

Thanks for your inquiry.
As for missing content issue, please add following code. But I found the page break was incorrect. Attached is the result file for your kind reference.
Code: Select all
           //use PS conversion
            toPdf.UsePSCoversion = true;
            document.SaveToFile("18198-Ps.pdf", toPdf);

I have logged the page break issue in our bug tracking system. We will let you know once there is any update. Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Aug 22, 2019 8:03 am

Hi,

Thanks for waiting.
Glad to inform you we officially release Spire.Doc Pack(hot fix) Version:7.8.12.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet: https://www.nuget.org/packages/Spire.Doc/

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc