I use Spire.doc v8.2.9
I have a table with dotted horizontal borders which are poorly rendered in PDF format.
See attachment
- Code: Select all
// Test simple avec des bordures en pointillé, mal rendues dans la version PDF
private readonly string fileNameBorduresTableau = "BorduresTableau.docx";
internal void DoTestBorduresPointille()
{
Document document = new Document(fileNameBorduresTableau);
string outputDocx = Path.GetFileNameWithoutExtension(fileNameBorduresTableau) + $"{DateTime.Now:yyyy-MM-dd-HH-mm-ss}.docx";
string outputPDF = Path.GetFileNameWithoutExtension(fileNameBorduresTableau) + $"{DateTime.Now:yyyy-MM-dd-HH-mm-ss}.pdf";
document.SaveToFile(outputDocx, FileFormat.Docx);
Process.Start(outputDocx);
ToPdfParameterList toPdfParameterList = new ToPdfParameterList { UsePSCoversion = true };
document.SaveToFile(outputPDF, toPdfParameterList);
Process.Start(outputPDF);
}