I’m facing issues while converting Arabic word document to PDF file.
My machine is installed with MS Word Arabic version. Hence doc created using Aspose.words - java version is working fine. but while I’m saving the same document with PDF extension, each and every single Arabic character is left aligned in PDF document.
Please help me
Hello
Thanks for your request. The problem might occur because Aspose.Words does not support RTL upon rendering/printing and converting to PDF. RTL is extremely complex issue, so I cannot promise you a fast fix. You will be notified as soon as it is supported.
Best regards,
hi
Any updates on RTL support for Aspose.Words while converting to PDF
Regards
Sathish
Hi Sathish,
Thank you for inquiry. Unfortunately, your issues are pending for
analysis. Once our developers analyze these issues, we will be able to
provide you an estimate. You will be notify as soon as it is fixed. Sorry
for inconvenience.<o:p></o:p>
Hey,
I’m facing the same problem, I need to convert word doc in arabic to PDF, it’s not supported in aspose for .net or for java?
Please let me know if it is possible with Aspose.
Thanks.
Hi Leen,
hi
Any updates on RTL support for Aspose.Words while converting to PDF
Regards
Sathish
Hi
Sathish,
The issues you have found earlier (filed as WORDSNET-1980) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(72)
hi Awais,
Sorry i could not upload any files for security reasons. Kindly replicate the same issue and test with any arabic text document (.doc/.docx)
Test Case:
Step 1) Load Aspose.words.jdk14.jar to oracle database (Oracle DB in Linux OS). For eg,
> host loadjava user/pwd@db -verbose -resolver “((* schema) (* PUBLIC) (* -))” -resolve /home/oracle/Aspose.Words.jdk14.jar
Step 2) File Server (Windows OS) - Mount the windows folder path to the Linux OS and provide full permission to folder (read,write,delete). for eg. dbms_java.grant_permission(‘schema’,‘SYS:java.io.FilePermission’,‘mounted folder directory in Linux’,‘read,write,delete’)
Step 3) Java source in oracle database - for eg:
create or replace and resolve java source named Schema.“JBWordEditor” AS
import com.aspose.words.*;
public class JBWordEditor
{
public static String convertDoc2Pdf(String p_doc, String p_pdf)
{
String error = “Success”;
try
{
Document doc = new Document(p_doc);
if(doc != null)
doc.save(p_pdf);
else
error = "File Not Found - "+p_doc;
}
catch(Exception ex)
{
error = ex.getMessage();
}
return error;
}
}
/
Step 4) Write a linking function to access java source by the Plsql procedure :
Create or replace package schema.PackJBWordEditor
AS
Function convertDoc2Pdf(p1 varchar2, p2 varchar2)
Return varchar2
As
language JAVA
Name ‘JBWordEditor.convertDoc2Pdf(java.lang.String,java.lang.String) returnjava.lang.String’;
End PackJBWordEditor;
/
Step 5) Write a procedure to test - for eg
declare
l_err varchar2(4000);
l_doc varchar2(4000);
l_pdf varchar2(4000);
begin
l_doc := ‘\server\doc\temp1.docx’; --(docx file in Windows file server)
l_pdf := ‘\server\doc\gen_temp1.pdf’; --(pdf file to be generated in the same Windows file server)
l_doc := replace(l_doc,’\server’,’/folder’); --(where folder in Linux OS which is already mounted)
l_doc := replace(l_doc,’’,’/’);
l_pdf := replace(l_pdf,’\server’,’/folder’); --(where folder in Linux OS which is already mounted)
l_pdf := replace(l_pdf,’’,’/’);
l_err :=schema.PackJBWordEditor.convertDoc2Pdf(l_doc,l_pdf);
DBMS_OUTPUT.put_line('Convert Doc 2 PDF : '|| l_err);
end;
Kindly do the needful asap.
thanks
Regards
Sathish
Hi ,
Hi Sathish,
The issues you have found earlier (filed as WORDSNET-8525) have been fixed in this Aspose.Words for .NET 17.3.0 update and this Aspose.Words for Java 17.3.0 update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.