Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jan 22, 2015 7:57 am

Hello,

I'm using your Spire.Doc latest version (5.3.17) to load from stream a word binary then save it to another stream in PDF for ARABIC documents

Here is my piece of code:
Code: Select all
                Spire.Doc.Document document = new Spire.Doc.Document();
                document.LoadFromStream(content, Spire.Doc.FileFormat.Docx);
                Stream pdfStream = new MemoryStream();
                document.SaveToStream(pdfStream, Spire.Doc.FileFormat.PDF);
                pdfStream.Position = 0;
                return pdfStream;



We have already purchased the license but we have this big problem in the PDF conversion please help us ASAP

P.S.: Attached the Word sample and the resulted PDF file

bavarian298
 
Posts: 8
Joined: Wed Jan 21, 2015 2:21 pm

Thu Jan 22, 2015 8:36 am

Hello,

Thanks for sharing your documents.

After some tests with "word.docx", I found out that the position of punctuation is not correct(on the right side).

And I have posted it our dev team, we will inform you if there is any update.

BTW: Here is my code snippet
Code: Select all
Stream wordStream = File.OpenRead("word.docx");
Document doc = new Document();
doc.LoadFromStream(wordStream, FileFormat.Docx2010);
MemoryStream pdfStream = new MemoryStream();
doc.SaveToStream(pdfStream, FileFormat.PDF);
pdfStream.Position = 0;
File.WriteAllBytes("4295.pdf", pdfStream.ToArray());

Screeshot:
01.png
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Thu Jan 22, 2015 9:26 am

I am trying to uyse the code you posted but the same result asa sent before, are you using the same version 5.3.17 and related DLLs, I am missing sth I dont know it ?

bavarian298
 
Posts: 8
Joined: Wed Jan 21, 2015 2:21 pm

Thu Jan 22, 2015 9:44 am

Hello,

Please provide us following information to help us resolve this issue:
-----System Information
-----Programming Environment

It would be very helpful if you can share your test project(zip and upload it to the forum, or send it to burning.liu@e-iceblue.com).
You can remove Spire dlls so that the zip file won't be very large.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Return to Spire.Doc