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 5:58 am

Hello,

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

The line 4: document.SaveToStream(pdfStream, Spire.Pdf.FileFormat.PDF);
is not compiled because it tells me that the class FileFormats has no value of PDF
Here is my piece of code:
Code: Select all
  Spire.Doc.Document document = new Spire.Doc.Document();
  document.LoadFromStream(content, Spire.Doc.FileFormat.Auto);
  Stream pdfStream = new MemoryStream();
  document.SaveToStream(pdfStream, Spire.Doc.FileFormat.PDF);
  pdfStream.Position = 0;
  return pdfStream;


Am I missing something, I used the logic as put in the Live Demo for converting Word to PDF ?

Also in there a problem when converting a Word document containing Arabic Text because using the version 5.2 cause me a problem in this so I have tried to use the latest version 5.3.22 but the above problem appears

Thanks and waiting for any help

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

Thu Jan 22, 2015 6:35 am

Hello,

Thanks for your inquiry.

Spire.Doc v5.3.22 is the Standard Edition which doesn't support print or conversion.
Please use the Pro Edition Spire.Doc v5.3.17 to convert .docx to .pdf.
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 6:47 am

Thanks a lot for quick reply

I will download it now

But in general is the Arabic text is handled correctly when converting docx to PDF ?

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

Thu Jan 22, 2015 6:56 am

Hello,

Yes, Spire.Doc supports display Arabic text when converting .docx to .pdf.
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