we are trying to convert a document (Word 2013) in pdf, but the pdf document that we got has some different layout.
We are using version 6.12.4.0.4040.
In attach three documents, the original doc, the generated pdf and another doc where I point out the problem.
This is the code we are currently using:
- Code: Select all
Dim cc As CultureInfo = Thread.CurrentThread.CurrentCulture
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture
newDoc = New Spire.Doc.Document
newDoc.LoadFromFile(conv.DocPath, FileFormat.Doc)
Dim p As Spire.Doc.ToPdfParameterList = New Spire.Doc.ToPdfParameterList
p.PdfConformanceLevel = Spire.Pdf.PdfConformanceLevel.Pdf_A1A
p.UsePSCoversion = True
p.IsAtLast = False
p.IsEmbeddedAllFonts = True
newDoc.JPEGQuality = conv.JpgQuality
newDoc.SaveToFile(conv.PDFPath, p)
newDoc.Close()
Thread.CurrentThread.CurrentCulture = cc
Thank you for the support.
Kind regards