When converted pdf from a doc file 19 pages converted. it gives the error with page count

Hi,
We have a customer evaluating the ASPOSE words java component. we need some more info to complete the evaluation

  1. when we converted pdf from a doc file we got only 19 pages converted. If more pages then it gives the error with page count.
  2. do Aspose support page ranges to print a word document.
    If so please share some sample code so that we can test.
  3. docx is not supported by Aspose during evaluation. Do you support docx also? also please share list of document that supported by ASPOSE.

Thanks.
M.Irfan.

Hi M.Irfan,

Thanks for your inquiry. Please note
that in evaluation mode there are some limitations applied. To avoid this you can request a free 30-day
trial license which removes these evaluation restrictions. You can
request this from here:
https://purchase.aspose.com/temporary-license

*mediatrendit:

  1. when we converted pdf from a doc file we got only 19 pages converted. If more pages then it gives the error with page count.*

Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

*mediatrendit:

  1. do Aspose support page ranges to print a word document.*

Yes, you can achieve your requirement using Aspose.Words. Please use PdfSaveOptions.PageCount to get or set the number of pages to save and use PdfSaveOptions.PageIndex to get or set the 0-based index of the first page to save.

Following code example converts just one page (third page in this example) of the document to PDF.

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

*mediatrendit:

  1. docx is not supported by Aspose during evaluation. Do you support docx also? also please share list of document that supported by ASPOSE.*

Aspose.Words for .NET is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®.

With Aspose.Words, you can load file formats mentioned at following documentation link into Aspose.Words DOM.
https://reference.aspose.com/words/net/aspose.words/loadformat

Once you have loaded a file of LoadFormat into Aspose.Words DOM, you can easily convert loaded document to following SaveFormat.
https://reference.aspose.com/words/net/aspose.words/saveformat/