We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Doc to one page PDF

Is there a way to save a .doc file using document.save (FileName, SaveFormat.Pdf) or any other way to save to a one long continuous page in the output pdf instead of multipages.

Thanks

Hi Akram,

Thanks for your inquiry. Please note that sizes larger than 22 inches are not supported by MS Word. You can increase the page height to 22 inches using PageSetup.PageHeight property. Following code example shows how to convert just one page (first page) of the document to PDF.

Hope this helps you. Please let us know if you have any more queries.

Document doc = new Document(MyDir + "Rendering.doc");
using (Stream stream = File.Create(MyDir + "Rendering.SaveToPdfStreamOnePage Out.pdf"))
{
    PdfSaveOptions options = new PdfSaveOptions();
    options.PageIndex = 0;
    options.PageCount = 1;
    doc.Save(stream, options);
}