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);
}