Hi,
This still doesn't seem to be working for me.
Using the original "InsurerQuoteSchedule.pdf" file i uploaded and the code below, the output Word document does not have a header. Also, I attached a second file "Sample.pdf" that has a header and a footer and it doesn't have either when converted to Word.
using System;
using System.Collections.Specialized;
using System.Data;
using System.IO;
using System.Data.SqlClient;
using System.Xml;
using System.Net;
using System.Net.Mail;
using System.Threading;
using Aspose.Words;
using ASPOSEPDF = global::Aspose.Pdf;
using global::Aspose.Pdf.Generator;
namespace AsposePdfWords
{
public class StartRun
{
///
/// The main entry point for the application.
///
static int Main(string[] args)
{
String outputFile1 = "DocFromAsposePDF.doc";
// PROBLEM 1 - PDF file with Headers and Footers doesn't have any headers and footers when converted to Doc file
{
ASPOSEPDF.Document PDFdoc = new ASPOSEPDF.Document("InsurerQuoteSchedule.pdf");
ASPOSEPDF.DocSaveOptions saveOptions = new ASPOSEPDF.DocSaveOptions();
saveOptions.Mode = ASPOSEPDF.DocSaveOptions.RecognitionMode.Flow;
PDFdoc.Save(outputFile1, saveOptions);
}
Console.WriteLine("Press any key to continue...");
Console.ReadKey(true);
return 0;
}}}