First I would like to thank you for providing a temporary license so quickly.
When converting from docx to pdf I've encountered two issues. Please see the attachment.
1. A full 2 page document conversion has 3 pages. This is a problem for us because we've got a lot of dynamic templates and some content controls must not change position.
2. On some png images with transparency the background color is ignored.
Are there any options that I can set in order to fix these or are they bugs?
Thank you,
Sebastian
- Code: Select all
var inputFolder = @"C:\SpireTests";
var files = Directory.GetFiles(inputFolder, "*.docx", SearchOption.TopDirectoryOnly);
foreach (var file in files)
{
var document = new Document();
document.LoadFromFile(file);
var newFile = Path.ChangeExtension(file, "pdf");
document.SaveToFile(newFile, FileFormat.PDF);
}