Hello,
Hi Yury,
Thanks for using our API’s.
I have tested the scenario using Aspose.Pdf for Java 10.6.1 in Eclipse Juno application running over Windows 7 (x64) with JDK 1.7 and I am unable to notice any issue. For your reference, I have also attached the documents generated on my end.
[Java]
Document pdfDocument = new Document("c:/pdftest/Portal_Prep_Guide.pdf");
pdfDocument.save("c:/pdftest/Portal_Prep_Guide_path_to_save.doc", com.aspose.pdf.SaveFormat.Doc);
Thank you for your response.
Hi Yury,
sudo apt-get install ttf-mscorefonts-installer// Set font folder path
String path = “/usr/share/fonts/truetype/msttcorefonts/”;
// Adding a single font directory
// com.aspose.pdf.Document.addLocalFontPath(path);
// seting the user list for standard font directories
java.util.List list = com.aspose.pdf.Document.getLocalFontPaths();
list.add(path);
com.aspose.pdf.Document.setLocalFontPaths(list);
Thank you, it helped me.
Could you explain one more question? After converting PDF to DOC, I got a .doc file which contains a textbox. Textbox I mean like the screenshot in the attachment.
Could you help me, how I can get text instead of a textbox?
Also, I get the following text after conversion:
Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2015 Aspose Pty Ltd.
How I can switch off this text message?
Thank you very much,
Yury
Hi Yury,
In order to get/update form field values, please following the instructions specified over
- Fill Form Field in a PDF Document
- Get Value from an individual Field of PDF document.
- Get values for all Fields in a PDF Document.
Now concerning to evaluation watermark issue, it appears that you are using the API in Trial mode. I would suggest you to please request a 30 days temporary license to test the API without any limitations. Once you have evaluated the API, then you may consider purchasing the license. For further details, please visit
Hi,
Hi Yury,
Thanks for providing additional information. Please check DocSaveOptions object detail, It seems you are using TextBox RecoginitionMode so it converts PDF to DOC in form text boxes to preserve the formatting as much as possible. Please use Flow document keeps the flow of original document. Please find attached sample output, hopefully it will fulfill your requirements.
Document doc = new Document(myDir+"Portal_Prep_Guide.pdf");
/* Instantiate Doc SaveOptions instance */
DocSaveOptions saveOptions = new DocSaveOptions();
// Set output file format as DOCX
saveOptions.setFormat(DocSaveOptions.DocFormat.Doc);
// Set the Recognition mode to Flow
saveOptions.setMode(DocSaveOptions.RecognitionMode.Flow);
// Save resultant DOCX file
doc.save(myDir+"Portal_Prep_Guide_flow.doc",saveOptions);
Please feel free to contact us for any further assistance.
Best Regards,