Hello,
Does the Java Components allow existing PDF file to be converted to RTF?
Thank you,
Gerald
Hello,
Does the Java Components allow existing PDF file to be converted to RTF?
Thank you,
Gerald
Hi Gerald,
Thanks for your inquiry. No, you can’t load a Pdf document into Aspose.Words’ DOM (document object modal). You can find a list of file formats that can be loaded with Aspose.Words below:
However, you can use Aspose.PDF + Aspose.Words components to convert PDF to RTF in two steps. First you need to convert Pdf to Doc by using Aspose.PDF. Once you have converted Pdf to Doc, please use Aspose.Words to convert .Doc to RTF file format.
Please read the following documentation link to convert Pdf to Document file format by using Aspose.Pdf:
Please use the following code snippet to convert Document to RTF by using Aspose.Words:
Document doc = new Document("in.doc");
doc.save("out.rtf", SaveFormat.RTF);
Tahir,
It appears that conversion from PDF to DOC is not supported and fails with following exception ...
Exception in thread "main" class com.aspose.ms.System.c: Save a document to a doc format is not supported.
com.aspose.pdf.Document.a(Unknown Source)
com.aspose.pdf.Document.a(Unknown Source)
com.aspose.pdf.Document.save(Unknown Source)
...
following is my code snippet ...
com.aspose.pdf.Document pdfDocument =
new com.aspose.pdf.Document("C:\\portal\\aspose\\Input\\dualColumn.pdf");
pdfDocument.save(
"C:\\portal\\aspose\\output\\test.doc",com.aspose.pdf.SaveFormat.Doc);
Please advice
Thanks,
Gerald
Hi Gerald,
Hi Gerald,
Thanks for contacting support.
I am afraid the requested feature to convert PDF file to DOC format is currently not supported. However, for the sake of implementation, it has already been logged in our issue tracking system under New Features list as PDFNEWJAVA-33309. We will further investigate this requirement in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.