Hi, I’ve just downloaded the new 9.6 release of Aspose.Words and when saving to PDF I’m still unable to have a floating image.
I have attached both the PDF and the Docx and the code used to generate the file.
If you’re able to help me out that would be great as this issue is affection several of our customers.
Nolan
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Printing;
using System.Drawing;
using Aspose.Words;
using HSL.Utils;
using System.IO;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
new Aspose.Words.License().SetLicense("Aspose.Words.DEV.lic");
inputFiles.Add(@"D:\Temp\MergeDocumentTest\InputDoc1.docx");
string outputFile = @"D:\Temp\MergeDocumentTest\Output.docx";
string outputFile1 = @"D:\Temp\MergeDocumentTest\Output.pdf";
if (File.Exists(outputFile))
File.Delete(outputFile);
if (File.Exists(outputFile1))
File.Delete(outputFile1);
doc.Save(outputFile);
doc.Save(outputFile1, SaveFormat.Pdf);
}
}
internal class DocumentLoader
{
public static Document Execute(string fileName)
{
switch (Path.GetExtension(fileName))
{
case ".docx":
case ".doc":
case ".dotx":
return new Document(fileName);
default:
return new Document();
}
}
}
}