I have requirement in one of our applications where we need to convert MS Word ALL Versions(.doc,.docx etc) and MS Excel documents ALL Versions(.xsl,.xslx etc) documents into PDF.I would like to know whether Aspose would support this?
If so what products should I buy. Also I would like to know some technical details regarding the implementation. Would ASPOSE be providing the API’s in form of JAR or LIB’s that I would be integrating into my application or would ther be any Server Configuration Changes that I would need to perform. I would like to know these details before I can go ahead and consider your product.
My Application is Java Based Web Portal hosted on JBoss Server and Unix Environment. So I would like to know if your products would be supporting both Windows and Unix systems as well as have complete support for Java API.
Also I would like to get more information on Licensing and Support for these products.
Hello,
Thanks for your request. I’m a representative for Aspose.Words. Using Aspose.Words you can convert any Word documents to PDF. Please follow the link to learn how to convert Word document to PDF:
https://docs.aspose.com/words/java/convert-a-document-to-pdf/
Please see the following link to learn more about Aspose.Words for Java:
https://docs.aspose.com/words/java/product-overview/
How to install Aspose.Words:
https://docs.aspose.com/words/java/installation/
System requirements:
https://docs.aspose.com/words/java/system-requirements/
Aspose.Words does not work with MS Excel documents; it works only with MS Word documents. So please ask your question regarding Excel in the Aspose.Cells forum:
https://forum.aspose.com/c/cells/9
All questions regarding licensing you can ask in Aspose.Purchase forum.
Please let me know in case of any issue. I will be glad to help you.
Best regards,
Hi,
Checked the trail version Jar’s.But were not able to completely convert the .doc or .docx file into PDF,there were some Formatting Issues.Can we have a solution for this.Untill we get complete docx or doc into PDF,we can’t purchase it.
Thanks
DocuFindUser
Hi
Thanks for your request. Could you please attach the document you are getting problem with? I will check it on my side and provide you more information.
Best regards,
Please find the Attached Docs.
Sample.doc is the document which was converted to Sample.pdf using Aspose trail version.Here document contains some images which were not completely converted to PDF.
Please review the document and let me know,if aspose support these features.
Code Used:
com.aspose.words.Document doc = new com.aspose.words.Document("C:\\Users\\gs97782\\Desktop\\sample.doc");
doc.save("C:\\Users\\gs97782\\Desktop\\sample.pdf");
Thanks
Docufind User.
Hi,
Thanks for the additional information and considering Aspose.Words.
While using the latest version of Aspose.Words i.e 10.6.0, I was unable to reproduce any such issue on my side. For your reference, I have attached the PDF (sample_out.pdf) i.e. generated on my side and it looks perfectly fine.
Moreover, your attached PDF (sample.pdf) file had only eight pages and was truncated by the trial version of Aspose.Words as the evaluation version of Aspose.Words limits the maximum document size to several hundred paragraphs (see limitations here).
If you want to test Aspose.Words without the evaluation version limitations, you can request a 30-day Temporary License. Please refer to the following link:
https://purchase.aspose.com/temporary-license
I hope, this will help.
Best Regards,
I had checked it.It is Converting the images also.But our requirement is to merge MS-Word all versions files into PDF.
Programatically:
//This code is for writing the Text into PDF.
com.itextpdf.text.Document document ;
document.open();
document.write(data from MS-word doc);
document.close();
Can we read the Word document and write it to PDF or Can we convert a word document into PDF and merge into already present PDF.
Can you let us know how can we acheive this through aspose?.
Hi
Thanks for your request. You can convert MS Word document to PDF using Aspose.Words:
https://docs.aspose.com/words/net/convert-a-document-to-pdf/
Then you can append the generated PDF to the existing PDF using Aspose.Pdf:
https://docs.aspose.com/pdf/net/key-features/
Hope this helps.
Best regards,
Can you please provide a sample code.It would be easy for us to integrate into our Application.
Also I have a question,Does Aspose Support All features of MS-Word,While Converting into PDF?
If No,Please let us know what are the features which are not supported by Aspose in MS-Word?
Hello
Thanks for your inquiry. Please follow the links from the previous post to find the code examples.
Please let me know in case of any issues. I will be glad to help you.
Best regards,
I had tested some other docs.I found errors with some docs.Please find the attachment
Java heap mem error occured couple of times.
Can you help us.
Our requirement is to Integrate / Merge MS-Word doc on the FLY to PDF.
Code Snippet used:
com.itextpdf.text.Document document = new com.itextpdf.text.Document();
com.itextpdf.text.pdf.PdfWriter writer = com.itextpdf.text.pdf.PdfWriter.getInstance(
document,resourceResponse.getPortletOutputStream());
document.open();
//Here Aspose need to get the data from MS-Word Doc write it to document instance of IText.Can this be done
document.write(" word text");
document.close();
Please let us know can aspose support this.
Hi
Thanks for your inquiry. When you open any document, Aspose.Words reads this document into DOM (Document Object Model). It is always requires more memory to build DOM in memory than the original file size.
Size of the document in memory depends on original file size, document complexity and file format.
I think, in your case, you should just increase memory heap.
Regarding the second question, yes of course you can use Aspose.Words to get data from MS Word document, please see the following link to learn how to get text:
https://docs.aspose.com/words/java/extract-selected-content-between-nodes/
Then you can write this text to string and use this string with IText.
Best regards.
You did not answer my first Question where Attached doc is not completely converted to PDF.Can you please let us know does aspose convert the Document to PDF.Please check the attachment.
Hello
Thanks for your request. The problem occurs because unfortunately, Aspose.Words does not support OOXML Diagrams and Charts during rendering. Your request has been linked to the appropriate issue. We will let you know once this feature is supported.
Best regards,
HI,
I had checked with following code
FileOutputStream fos = new FileOutputStream(new File("D:\\aspose\\Testfiles\\files\\Aspose test files\\convertedWordExcel.pdf"));
FileInputStream fis = new FileInputStream(new File("D:\\aspose\\Testfiles\\files\\Aspose test files\\DocuFind_FMEA.xls"));
Workbook workbook = new Workbook(fis);
workbook.save(fos,SaveFormat.PDF);
com.aspose.words.Document doc = new com.aspose.words.Document("D:\\aspose\\Testfiles\\files\\Aspose test files\\sample.doc");
doc.save(fos,SaveFormat.PDF);
but following error is displayed.Can you please help to solve the issue.
Exception in thread "main" java.lang.IllegalArgumentException: Invalid save format requested.
at com.aspose.words.SaveOptions.createSaveOptions(SaveOptions.java:152)
at com.aspose.words.Document.h(Document.java:765)
at com.aspose.words.Document.save(Document.java:756)
at Example.main(Example.java:17)
Hi
Thanks for your request. I suppose, you should use the following code:
FileOutputStream fos = new FileOutputStream(new File("D:\\aspose\\Testfiles\\files\\Aspose test files\\convertedWordExcel.pdf"));
FileInputStream fis = new FileInputStream(new File("D:\\aspose\\Testfiles\\files\\Aspose test files\\DocuFind_FMEA.xls"));
Workbook workbook = new Workbook(fis);
workbook.save(fos, com.aspose.cells.SaveFormat.PDF);
com.aspose.words.Document doc = new com.aspose.words.Document("D:\\aspose\\Testfiles\\files\\Aspose test files\\sample.doc");
doc.save(fos, com.aspose.words.SaveFormat.PDF);
Best regards,
HI,
I need this information.Our’s is an web application and I need to print the document using below code.Currently PDF docs are printed. now i need to add word doc also. or is there any other method to solve the below issue using aspose and print should work.
com.itextpdf.text.pdf.PdfWriter writer = com.itextpdf.text.pdf.PdfWriter.getInstance(document,resourceResponse.getPortletOutputStream());
document.open();
writer.addJavaScript("this.print(false);", false);
//presently adding the pdf document
page = writer.getImportedPage(reader, i);
Image instance = Image.getInstance(page);
document.add(instance);
document.close();
now i need to add word with no loss of data.
please help me in solving this issue.
Thanks
Docufinduser
Hello
Thanks for your request. As I mentioned you earlier, Aspose.Words does not support OOXML Diagrams and Charts during printing/rendering. So there is no way to print it using Aspose.Words without losing OOXML Diagrams and Charts.
Best regards,